Skip to content

Commit

Permalink
Sign message doc update
Browse files Browse the repository at this point in the history
  • Loading branch information
coderofstuff committed Dec 27, 2023
1 parent ce1ea0b commit a12d186
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions doc/COMMANDS.md
Original file line number Diff line number Diff line change
Expand Up @@ -134,12 +134,13 @@ Transactions signed with ECDSA are currently not supported.

| CLA | INS | P1 | P2 | Lc | CData |
| --- | --- | --- | --- | --- | --- |
| 0xE0 | 0x07 | 0x00 | 0x00 | var | `address_type (1)` \|\| `address_index (4)` \|\|<br>`message_len (1 bytes)` \|\| `message (var bytes)` |
| 0xE0 | 0x07 | 0x00 | 0x00 | var | `address_type (1)` \|\| `address_index (4)` \|\|<br>`account (4)` \|\|<br>`message_len (1 bytes)` \|\| `message (var bytes)` |

| CData Part | Description |
| --- | --- |
| `address_type` | Either `00` for Receive Address or `01` for Change Address |
| `address_index` | Any value from `00000000` to `11111111` |
| `address_index` | Any value from `00000000` to `FFFFFFFF` |
| `account` | Any value from `80000000` to `FFFFFFFF` |
| `message_len` | How long the message is. Must be a value from `1` to `128`, inclusive |
| `message` | The message to sign |

Expand Down

0 comments on commit a12d186

Please sign in to comment.