Update GRIDS

2026-05-14 07:14:29 +09:00
parent 10b87b0129
commit ac7aaa7e67
+9 -11
@@ -214,17 +214,15 @@ The response to the initial GET request takes the form of a JSON object with thi
use (and then populate this field). use (and then populate this field).
- If an ID is specified, then the client should select that account or fail if it is not available. - If an ID is specified, then the client should select that account or fail if it is not available.
- The `"payload"` is the data to be signed. In the case of a - The `"payload"` is the data to be signed. In the case of a
`"tx"` request (a contract call, for example), this data `"tx"` request (a contract call, for example), this data will be transaction data encoded according to the Gajumaru
will be transaction data encoded according to the Gajumaru protocol's rules. Any Gajumaru signature routine will understand how to interpret and handle this data.
protocol's rules. Any Gajumaru signature routine will Each signature context has its own requirements:
understand how to interpret and handle this data. In the - `"tx"` signatures must be handled according to the Gajumaru protocol rules for transaction signatures.
case of a `"message"` request, this will typically be a - `"message"`signatures are for simple UTF8 strings in plain text that the client interprets as a binary string.
simple string in plain text that the client interprets as a The binary string `<<"Gajumaru Signed Message:\n">>` is prepended to the message text before the signature is performed.
binary string, prepends the binary string (Erlang binary notation) Prefixing message request payloads with this string prevents attackers from disguising transaction signature requests as text message signatures.
`<<"Gajumaru Signed Message:\n">>`, and then signs. - `"binary"` signatures are for data encoded in base64.
Prefixing message request payloads with this string prevents The contents are first decoded from base64, then the binary prefix `<<"Gajumaru Signed Binary:">>` is prepended to the binary data before the signature is performed.
attackers from disguising transaction signature requests as
text message signatures.
### Signed Data Messages (subsequent POST) ### Signed Data Messages (subsequent POST)