Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix doc error #8

Merged
merged 1 commit into from
Nov 14, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 3 additions & 23 deletions docs/APDU.md
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ Notice the chain ID (`0x00000405 ~ 1029`, aka mainnet) at the end.

| CLA | INS | P1 | P2 | Lc | Le |
| ---- | ---- | --------------------------------------- | ---- | -------- | -------- |
| `e0` | `03` | `00`: first data block | `08` more | variable | variable |
| `e0` | `03` | `00`: first data block | `80` more | variable | variable |
| | | `01`-`03`: subsequent data block index | `00` last | | |

##### Request payload
Expand Down Expand Up @@ -200,11 +200,11 @@ Subsequent data blocks:

#### Examples

**Command**: `e003000815058000002c800001f7800000000000000000000000`
**Command**: `e003008015058000002c800001f7800000000000000000000000`

| CLA | INS | P1 | P2 | Lc | Le |
| ------ | ------ | ------ | ------ | ------ | -------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `0xe0` | `0x03` | `0x00` | `0x08` | `0x15` | `0x05 0x8000002c 0x800001f7 0x80000000 0x00000000 0x00000000` |
| `0xe0` | `0x03` | `0x00` | `0x80` | `0x15` | `0x05 0x8000002c 0x800001f7 0x80000000 0x00000000 0x00000000` |

`44'/503'/0'/0/0` is encoded as `0x05 0x8000002c 0x800001f7 0x80000000 0x00000000 0x00000000`.

Expand All @@ -231,23 +231,3 @@ Subsequent data blocks:
```

**Response**: `00 f9071161c2dbc19dabf54d14d42944cecacf61943a9898f4f64c8aa6d23a58b6 64ea364f092d23d7a94388f2f43cf54a86fe644d221e822210fde413d406ebb6 9000`

---

The same transaction sent in two chunks:

**Command**: `e00300002b058000002c800001f7800000000000000000000000eb1284561f61b9831e84809410109fc8df283027b628`

| CLA | INS | P1 | P2 | Lc | Le |
| ------ | ------ | ------ | ------ | ------ | ------------------------------------------------------------------------------------------------------------ |
| `0xe0` | `0x03` | `0x00` | `0x00` | `0x2b` | `0x05 0x8000002c 0x800001f7 0x80000000 0x00000000 0x00000000 0xeb1284561f61b9831e84809410109fc8df283027b628` |

**Response**: `9000`

**Command**: `e0038000165cc889f5aa624eac1f55843b9aca0081800182040580`

| CLA | INS | P1 | P2 | Lc | Le |
| ------ | ------ | ------ | ------ | ------ | ------------------------------------------------ |
| `0xe0` | `0x03` | `0x80` | `0x00` | `0x16` | `0x5cc889f5aa624eac1f55843b9aca0081800182040580` |

**Response**: `00 f9071161c2dbc19dabf54d14d42944cecacf61943a9898f4f64c8aa6d23a58b6 64ea364f092d23d7a94388f2f43cf54a86fe644d221e822210fde413d406ebb6 9000`
Loading