Skip to content

Commit 22cee34

Browse files
Added PROXY_INFO struct in doc
1 parent d3fa641 commit 22cee34

File tree

2 files changed

+22
-9
lines changed

2 files changed

+22
-9
lines changed

doc/ethapp.adoc

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1225,19 +1225,19 @@ _Input data_
12251225
##### If P1 == first chunk
12261226
12271227
[width="80%"]
1228-
|==========================================
1229-
| *Description* | *Length (byte)*
1230-
| Payload length | 2
1231-
| TLV payload | variable
1232-
|==========================================
1228+
|====================================================================
1229+
| *Description* | *Length (byte)*
1230+
| struct size (BE) | 2
1231+
| link:tlv_structs.md#proxy_info[PROXY_INFO struct] | variable
1232+
|====================================================================
12331233
12341234
##### If P1 == following chunk
12351235
12361236
[width="80%"]
1237-
|==========================================
1238-
| *Description* | *Length (byte)*
1239-
| TLV payload | variable
1240-
|==========================================
1237+
|====================================================================
1238+
| *Description* | *Length (byte)*
1239+
| link:tlv_structs.md#proxy_info[PROXY_INFO struct] | variable
1240+
|====================================================================
12411241
12421242
_Output data_
12431243

doc/tlv_structs.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -299,3 +299,16 @@ In version 1 of the protocol:
299299
|---------|------|-----------------|--------------------------|----------|-----------------|
300300
| START | 0x01 | int16 | start index (inclusive) | x | |
301301
| END | 0x02 | int16 | end index (exclusive) | x | |
302+
303+
## PROXY_INFO
304+
305+
| Name | Tag | Payload type | Description | Optional |
306+
|----------------|------|-----------------|---------------------------------|----------|
307+
| STRUCT_TYPE | 0x01 | uint8 | structure type | |
308+
| STRUCT_VERSION | 0x02 | uint8 | structure version | |
309+
| CHALLENGE | 0x12 | uint32 | challenge to ensure freshness | |
310+
| ADDRESS | 0x22 | uint8[20] | proxy contract address | |
311+
| CHAIN_ID | 0x23 | uint64 | EVM chain identifier | |
312+
| SELECTOR | 0x28 | uint[4] | function selector | x |
313+
| IMPL_ADDRESS | 0x29 | uint8[20] | implementation contract address | |
314+
| SIGNATURE | 0x15 | uint8[] | signature of the structure | |

0 commit comments

Comments
 (0)