forked from hyperledger-cacti/cacti
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs(whitepaper): put use-cases in W3C standard format
WORK IN PROGRESS As per the change proposal #2 from @takeutak, @sfuji822 Signed-off-by: Peter Somogyvari <peter.somogyvari@accenture.com>
- Loading branch information
Showing
2 changed files
with
84 additions
and
2 deletions.
There are no files selected for viewing
69 changes: 69 additions & 0 deletions
69
docs/whitepaper/use-case-sequence-diagram-fabric-quorum-asset-transfer.puml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
@startuml Sequence Diagram - Fabric Quorum Asset Transfer | ||
|
||
title Hyperledger Blockchain Integration Framework\nSequence Diagram - Fabric Quorum Asset Transfer | ||
|
||
actor User_A as a | ||
|
||
box "BIF" #LightGray | ||
entity "API Server" as apis | ||
entity "Validator" as v | ||
end box | ||
|
||
box "Ledgers" | ||
entity BIF_Contract_Fabric as c1 | ||
entity BIF_Contract_Quorum as c2 | ||
database Fabric_Ledger as d1 | ||
database Quorum_Ledger as d2 | ||
end box | ||
|
||
autoactivate on | ||
|
||
== Authenticate == | ||
|
||
a -> apis: Authenticate | ||
return Auth. Token | ||
|
||
== Lock Fabric Asset == | ||
|
||
a -> apis: Lock Fabric Asset | ||
|
||
apis -> v: Lock Fabric Asset | ||
v -> c1: Invoke Contract: Lock Fabric Asset | ||
c1 -> d1: Write to Ledger State \n(Asset.locked=true) | ||
return Ledger Updated OK | ||
return Locked Fabric Asset | ||
return Locked Fabric Asset | ||
return Locked Fabric Asset | ||
|
||
autoactivate off | ||
a -> a: Verify Signatures\nof BIF Validators | ||
critical Signatures Valid | ||
a -> a: <color green>Proceed with Execution</color> | ||
else Signatures Invalid | ||
a -> a: <color red>Abort Process,\n<color red>possible MITM\n<color red>attack in progress | ||
end | ||
autoactivate on | ||
|
||
== Create Quorum Asset == | ||
|
||
a -> apis: Create Quorum Asset | ||
|
||
apis -> v: Create Quorum Asset | ||
|
||
autoactivate off | ||
v -> v: Verify Signatures\nof BIF Validators | ||
critical Signatures Valid | ||
v -> v: <color green>Continue | ||
else Signatures Invalid | ||
v -> v: <color red>Abort | ||
end | ||
autoactivate on | ||
|
||
v -> c2: Invoke Contract: Create Asset | ||
c2 -> d2: Write Asset to Ledger State | ||
return Ledger Updated OK | ||
return Quorum Asset, Metadata | ||
return Quorum Asset, Metadata | ||
return Quorum Asset, Metadata | ||
|
||
@enduml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters