diff --git a/docs/APDU.md b/docs/APDU.md index cd0cab9..6d8ed02 100644 --- a/docs/APDU.md +++ b/docs/APDU.md @@ -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 @@ -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`. @@ -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`