Skip to content

Commit

Permalink
Merge pull request Zondax#41 from Zondax/update_docs
Browse files Browse the repository at this point in the history
update docs
  • Loading branch information
ftheirs authored Jul 8, 2022
2 parents 4bd3c80 + 3ee518f commit 05a3103
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions docs/APDUSPEC.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Kusama App
# Edgeware App

## General structure

Expand All @@ -8,7 +8,7 @@ The general structure of commands and responses is as follows:

| Field | Type | Content | Note |
| :------ | :------- | :--------------------- | ---- |
| CLA | byte (1) | Application Identifier | 0x98 |
| CLA | byte (1) | Application Identifier | 0x94 |
| INS | byte (1) | Instruction ID | |
| P1 | byte (1) | Parameter 1 | |
| P2 | byte (1) | Parameter 2 | |
Expand Down Expand Up @@ -45,7 +45,7 @@ The general structure of commands and responses is as follows:

| Field | Type | Content | Expected |
| ----- | -------- | ---------------------- | -------- |
| CLA | byte (1) | Application Identifier | 0x98 |
| CLA | byte (1) | Application Identifier | 0x94 |
| INS | byte (1) | Instruction ID | 0x00 |
| P1 | byte (1) | Parameter 1 | ignored |
| P2 | byte (1) | Parameter 2 | ignored |
Expand All @@ -70,13 +70,13 @@ The general structure of commands and responses is as follows:

| Field | Type | Content | Expected |
| ------- | -------- | ------------------------- | ---------- |
| CLA | byte (1) | Application Identifier | 0x98 |
| CLA | byte (1) | Application Identifier | 0x94 |
| INS | byte (1) | Instruction ID | 0x01 |
| P1 | byte (1) | Request User confirmation | No = 0 |
| P2 | byte (1) | Parameter 2 | ignored |
| L | byte (1) | Bytes in payload | (depends) |
| Path[0] | byte (4) | Derivation Path Data | 0x80000000 | 44 |
| Path[1] | byte (4) | Derivation Path Data | 0x80000000 | 434 |
| Path[1] | byte (4) | Derivation Path Data | 0x80000000 | 523 |
| Path[2] | byte (4) | Derivation Path Data | ? |
| Path[3] | byte (4) | Derivation Path Data | ? |
| Path[4] | byte (4) | Derivation Path Data | ? |
Expand All @@ -97,13 +97,13 @@ The general structure of commands and responses is as follows:

| Field | Type | Content | Expected |
| ------- | -------- | ------------------------- | ---------- |
| CLA | byte (1) | Application Identifier | 0x98 |
| CLA | byte (1) | Application Identifier | 0x94 |
| INS | byte (1) | Instruction ID | 0x11 |
| P1 | byte (1) | Request User confirmation | No = 0 |
| P2 | byte (1) | Parameter 2 | ignored |
| L | byte (1) | Bytes in payload | (depends) |
| Path[0] | byte (4) | Derivation Path Data | 0x80000000 | 44 |
| Path[1] | byte (4) | Derivation Path Data | 0x80000000 | 434 |
| Path[1] | byte (4) | Derivation Path Data | 0x80000000 | 523 |
| Path[2] | byte (4) | Derivation Path Data | ? |
| Path[3] | byte (4) | Derivation Path Data | ? |
| Path[4] | byte (4) | Derivation Path Data | ? |
Expand All @@ -124,7 +124,7 @@ The general structure of commands and responses is as follows:

| Field | Type | Content | Expected |
| ----- | -------- | ---------------------- | --------- |
| CLA | byte (1) | Application Identifier | 0x98 |
| CLA | byte (1) | Application Identifier | 0x94 |
| INS | byte (1) | Instruction ID | 0x02 |
| P1 | byte (1) | Payload desc | 0 = init |
| | | | 1 = add |
Expand All @@ -141,7 +141,7 @@ All other packets/chunks contain data chunks that are described below
| Field | Type | Content | Expected |
| ------- | -------- | -------------------- | -------- |
| Path[0] | byte (4) | Derivation Path Data | 44 |
| Path[1] | byte (4) | Derivation Path Data | 434 |
| Path[1] | byte (4) | Derivation Path Data | 523 |
| Path[2] | byte (4) | Derivation Path Data | ? |
| Path[3] | byte (4) | Derivation Path Data | ? |
| Path[4] | byte (4) | Derivation Path Data | ? |
Expand All @@ -167,7 +167,7 @@ All other packets/chunks contain data chunks that are described below

| Field | Type | Content | Expected |
| ----- | -------- | ---------------------- | --------- |
| CLA | byte (1) | Application Identifier | 0x98 |
| CLA | byte (1) | Application Identifier | 0x94 |
| INS | byte (1) | Instruction ID | 0x12 |
| P1 | byte (1) | Payload desc | 0 = init |
| | | | 1 = add |
Expand All @@ -184,7 +184,7 @@ All other packets/chunks contain data chunks that are described below
| Field | Type | Content | Expected |
| ------- | -------- | -------------------- | -------- |
| Path[0] | byte (4) | Derivation Path Data | 44 |
| Path[1] | byte (4) | Derivation Path Data | 434 |
| Path[1] | byte (4) | Derivation Path Data | 523 |
| Path[2] | byte (4) | Derivation Path Data | ? |
| Path[3] | byte (4) | Derivation Path Data | ? |
| Path[4] | byte (4) | Derivation Path Data | ? |
Expand All @@ -210,7 +210,7 @@ All other packets/chunks contain data chunks that are described below

| Field | Type | Content | Expected |
| ------ | --------- | ------------------------- | -------- |
| CLA | byte (1) | Application Identifier | 0x98 |
| CLA | byte (1) | Application Identifier | 0x94 |
| INS | byte (1) | Instruction ID | 0x90 |
| P1 | byte (1) | Request User confirmation | No = 0 |
| P2 | byte (1) | Parameter 2 | ignored |
Expand All @@ -229,7 +229,7 @@ All other packets/chunks contain data chunks that are described below

| Field | Type | Content | Expected |
| ------ | --------- | ------------------------- | -------- |
| CLA | byte (1) | Application Identifier | 0x98 |
| CLA | byte (1) | Application Identifier | 0x94 |
| INS | byte (1) | Instruction ID | 0x91 |
| P1 | byte (1) | Request User confirmation | No = 0 |
| P2 | byte (1) | Parameter 2 | ignored |
Expand All @@ -248,7 +248,7 @@ All other packets/chunks contain data chunks that are described below

| Field | Type | Content | Expected |
| ----- | -------- | ------------------------- | -------- |
| CLA | byte (1) | Application Identifier | 0x98 |
| CLA | byte (1) | Application Identifier | 0x94 |
| INS | byte (1) | Instruction ID | 0x92 |
| P1 | byte (1) | Request User confirmation | No = 0 |
| P2 | byte (1) | Parameter 2 | ignored |
Expand All @@ -267,7 +267,7 @@ All other packets/chunks contain data chunks that are described below

| Field | Type | Content | Expected |
| ----- | -------- | ---------------------- | --------- |
| CLA | byte (1) | Application Identifier | 0x98 |
| CLA | byte (1) | Application Identifier | 0x94 |
| INS | byte (1) | Instruction ID | 0x93 |
| P1 | byte (1) | Payload desc | 0 = init |
| | | | 1 = add |
Expand Down

0 comments on commit 05a3103

Please sign in to comment.