Skip to content

Commit

Permalink
doc/apdu.md: fix the SIGN/SIGN_WITH_HASH documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
spalmer25 committed Apr 23, 2024
1 parent 2b6dbf1 commit aec644a
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion doc/apdu.md
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,10 @@ accepted, the signature of the message is returned.

Messages sent in more than one packet will be refused.

If the `message` is a valid `baking message` (`Block` or `Consensus
operation`), no confirmation screens will be displayed and the
signature will be automatic.

See [the messages in the specification](signing.md#messages) and the [API](https://tezos.gitlab.io/shell/p2p_api.html).

##### Input data
Expand Down Expand Up @@ -428,4 +432,11 @@ fixed message signed by the key associated with the `path` and `P2`.
|--------|--------|------|------|
| `0x80` | `0x0e` | `__` | `__` |

Alias for `SIGN`
Runs in the same way as `SIGN` except that the value returned, when *P1* is `0x01` or `0x81`, also contains the hash of the signed operation.

#### Output data

| Length | Description |
|--------------|---------------|
| `32` | The hash |
| `<variable>` | The signature |

0 comments on commit aec644a

Please sign in to comment.