From aec644a95f6f82a0e19b1af1ab7eb05e889bd877 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Palmer?= Date: Tue, 23 Apr 2024 16:42:50 +0200 Subject: [PATCH] doc/apdu.md: fix the `SIGN`/`SIGN_WITH_HASH` documentation --- doc/apdu.md | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/doc/apdu.md b/doc/apdu.md index 37c098aa..61f6fa74 100644 --- a/doc/apdu.md +++ b/doc/apdu.md @@ -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 @@ -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 | +| `` | The signature |