Skip to content

Commit 6743966

Browse files
Added new APDUs to doc
1 parent ee9fd30 commit 6743966

File tree

1 file changed

+121
-2
lines changed

1 file changed

+121
-2
lines changed

doc/ethapp.adoc

Lines changed: 121 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,15 +113,21 @@ The input data is the RLP encoded transaction (as per https://github.com/ethereu
113113
114114
[width="80%"]
115115
|==============================================================================================================================
116-
| *CLA* | *INS* | *P1* | *P2* | *Lc* | *Le*
116+
| *CLA* | *INS* | *P1* | *P2* | *Lc* | *Le*
117117
| E0 | 04 | 00 : first transaction data block
118118
119119
80 : subsequent transaction data block
120-
| 00 | variable | variable
120+
| 00 : process & start flow
121+
122+
01 : store only
123+
124+
02 : start flow | variable | variable
121125
|==============================================================================================================================
122126
123127
'Input data (first transaction data block)'
124128
129+
If P2 == 0x02, then no data is provided.
130+
125131
[width="80%"]
126132
|==============================================================================================================================
127133
| *Description* | *Length*
@@ -143,6 +149,8 @@ The input data is the RLP encoded transaction (as per https://github.com/ethereu
143149
144150
'Output data'
145151
152+
If P2 == 0x01, then no data is returned.
153+
146154
[width="80%"]
147155
|==============================================================================================================================
148156
| *Description* | *Length*
@@ -1070,6 +1078,117 @@ _Output data_
10701078
None
10711079
10721080
1081+
### PROVIDE ENUM VALUE
1082+
1083+
_Command_
1084+
1085+
[width="80%"]
1086+
|==============================================================
1087+
| *CLA* | *INS* | *P1* | *P2* | *LC*
1088+
| E0 | 24 | 01 : first chunk
1089+
1090+
00 : following chunk
1091+
| 00 | 00
1092+
|==============================================================
1093+
1094+
_Input data_
1095+
1096+
##### If P1 == first chunk
1097+
1098+
[width="80%"]
1099+
|==========================================
1100+
| *Description* | *Length (byte)*
1101+
| Payload length | 2
1102+
| TLV payload | variable
1103+
|==========================================
1104+
1105+
##### If P1 == following chunk
1106+
1107+
[width="80%"]
1108+
|==========================================
1109+
| *Description* | *Length (byte)*
1110+
| TLV payload | variable
1111+
|==========================================
1112+
1113+
_Output data_
1114+
1115+
None
1116+
1117+
1118+
### TRANSACTION INFO
1119+
1120+
_Command_
1121+
1122+
[width="80%"]
1123+
|==============================================================
1124+
| *CLA* | *INS* | *P1* | *P2* | *LC*
1125+
| E0 | 26 | 01 : first chunk
1126+
1127+
00 : following chunk
1128+
| 00 | 00
1129+
|==============================================================
1130+
1131+
_Input data_
1132+
1133+
##### If P1 == first chunk
1134+
1135+
[width="80%"]
1136+
|==========================================
1137+
| *Description* | *Length (byte)*
1138+
| Payload length | 2
1139+
| TLV payload | variable
1140+
|==========================================
1141+
1142+
##### If P1 == following chunk
1143+
1144+
[width="80%"]
1145+
|==========================================
1146+
| *Description* | *Length (byte)*
1147+
| TLV payload | variable
1148+
|==========================================
1149+
1150+
_Output data_
1151+
1152+
None
1153+
1154+
1155+
### TRANSACTION FIELD DESCRIPTION
1156+
1157+
_Command_
1158+
1159+
[width="80%"]
1160+
|==============================================================
1161+
| *CLA* | *INS* | *P1* | *P2* | *LC*
1162+
| E0 | 28 | 01 : first chunk
1163+
1164+
00 : following chunk
1165+
| 00 | 00
1166+
|==============================================================
1167+
1168+
_Input data_
1169+
1170+
##### If P1 == first chunk
1171+
1172+
[width="80%"]
1173+
|==========================================
1174+
| *Description* | *Length (byte)*
1175+
| Payload length | 2
1176+
| TLV payload | variable
1177+
|==========================================
1178+
1179+
##### If P1 == following chunk
1180+
1181+
[width="80%"]
1182+
|==========================================
1183+
| *Description* | *Length (byte)*
1184+
| TLV payload | variable
1185+
|==========================================
1186+
1187+
_Output data_
1188+
1189+
None
1190+
1191+
10731192
### PROVIDE NETWORK CONFIGURATION
10741193
10751194
#### Description

0 commit comments

Comments
 (0)