Skip to content

Commit b5ae9ba

Browse files
Added GCS sequence diagram
1 parent 22cee34 commit b5ae9ba

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

doc/gcs.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Generic Clear-Signing
2+
3+
```mermaid
4+
sequenceDiagram
5+
participant HW as Hardware Wallet
6+
participant SW as Software Wallet
7+
8+
SW ->> HW: SIGN, store only
9+
note over HW: store compressed<br/>calldata in RAM
10+
HW ->> SW: OK / KO
11+
SW ->> HW: TRANSACTION INFO
12+
HW ->> SW: OK / KO
13+
loop N times for N fields
14+
SW ->> HW: token / NFT / enum / trusted name metadatas
15+
HW ->> SW: OK / KO
16+
SW ->> HW: TX FIELD DESCRIPTION
17+
HW ->> SW: OK / KO
18+
end
19+
SW ->> HW: SIGN, start flow
20+
note left of HW: check computed fields hash
21+
note over HW: display all the<br/>formatted fields
22+
HW ->> SW: OK (with r,s,v) / KO
23+
```

0 commit comments

Comments
 (0)