Commit f191603
committed
docs: clarify include_hash_inputs returns hex-encoded bytes
The previous proto comment described v2 hash_input as "canonical JSON
content", which would suggest the field holds a raw JSON string.
hash_input is actually hex-encoded bytes of the digest pre-image, so
clients must hex-decode first before interpreting the payload (UTF-8
JSON for v2, the v1 binary concat for v1). Spell out the encoding and
the verification recipe so relying parties don't guess wrong.1 parent 270aaf8 commit f191603
1 file changed
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
171 | 171 | | |
172 | 172 | | |
173 | 173 | | |
174 | | - | |
175 | | - | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
176 | 178 | | |
177 | 179 | | |
178 | 180 | | |
| |||
0 commit comments