mirror of https://github.com/zcash/zips.git
Rename signature digests to clarify differences wrt txid digests.
This commit is contained in:
parent
a779c1043d
commit
566be18f40
32
zip-0244.rst
32
zip-0244.rst
|
@ -359,7 +359,7 @@ described in detail below::
|
|||
|
||||
signature_digest
|
||||
├── header_digest
|
||||
├── transparent_digest
|
||||
├── transparent_sig_digest
|
||||
├── sprout_digest
|
||||
└── sapling_digest
|
||||
|
||||
|
@ -367,10 +367,10 @@ signature_digest
|
|||
----------------
|
||||
A BLAKE2b-256 hash of the following values ::
|
||||
|
||||
S.1: header_digest (32-byte hash output)
|
||||
S.2: transparent_digest (32-byte hash output)
|
||||
S.3: sprout_digest (32-byte hash output)
|
||||
S.4: sapling_digest (32-byte hash output)
|
||||
S.1: header_digest (32-byte hash output)
|
||||
S.2: transparent_sig_digest (32-byte hash output)
|
||||
S.3: sprout_digest (32-byte hash output)
|
||||
S.4: sapling_digest (32-byte hash output)
|
||||
|
||||
The personalization field of this hash is set to::
|
||||
|
||||
|
@ -386,8 +386,8 @@ S.1: header_digest
|
|||
``````````````````
|
||||
Identical to that specified for the transaction identifier.
|
||||
|
||||
S.2: transparent_digest
|
||||
```````````````````````
|
||||
S.2: transparent_sig_digest
|
||||
```````````````````````````
|
||||
If we are producing a hash for the signature over a transparent input,
|
||||
the value of the digest produced here depends upon the value of a ``hash_type``
|
||||
flag as in ZIP 143 [#zip-0143]_.
|
||||
|
@ -397,17 +397,17 @@ The construction of each component below depends upon the values of the
|
|||
|
||||
This digest is a BLAKE2b-256 hash of the following values ::
|
||||
|
||||
S.2a: prevouts_digest (32-byte hash)
|
||||
S.2b: sequence_digest (32-byte hash)
|
||||
S.2c: outputs_digest (32-byte hash)
|
||||
S.2a: prevouts_sig_digest (32-byte hash)
|
||||
S.2b: sequence_sig_digest (32-byte hash)
|
||||
S.2c: outputs_sig_digest (32-byte hash)
|
||||
S.2d: txin_sig_digest (32-byte hash)
|
||||
|
||||
The personalization field of this hash is set to::
|
||||
|
||||
"ZTxIdTranspaHash"
|
||||
|
||||
S.2a: prevouts_digest
|
||||
'''''''''''''''''''''
|
||||
S.2a: prevouts_sig_digest
|
||||
'''''''''''''''''''''''''
|
||||
This is a BLAKE2b-256 hash initialized with the personalization field value
|
||||
``ZTxIdPrevoutHash``.
|
||||
|
||||
|
@ -421,8 +421,8 @@ otherwise::
|
|||
the hash is immediately finalized, without being updated with any
|
||||
additional data
|
||||
|
||||
S.2b: sequence_digest
|
||||
'''''''''''''''''''''
|
||||
S.2b: sequence_sig_digest
|
||||
'''''''''''''''''''''''''
|
||||
This is a BLAKE2b-256 hash initialized with the personalization field value
|
||||
``ZTxIdSequencHash``.
|
||||
|
||||
|
@ -437,8 +437,8 @@ otherwise::
|
|||
the hash is immediately finalized, without being updated with any
|
||||
additional data
|
||||
|
||||
S.2c: outputs_digest
|
||||
''''''''''''''''''''
|
||||
S.2c: outputs_sig_digest
|
||||
''''''''''''''''''''''''
|
||||
This is a BLAKE2b-256 hash initialized with the personalization field value
|
||||
``ZTxIdOutputsHash``.
|
||||
|
||||
|
|
Loading…
Reference in New Issue