pub fn output_hash(a: u32) -> Option<u256>
Expand description
Return the SHA256 hash of the following:
- The serialization of the output’s asset and amount fields.
- The serialization of the output’s nonce field.
- The SHA256 hash of the output’s scriptPubKey.
- The SHA256 hash of the output’s range proof.
Return None
if the output does not exist.
Note: the result of output_surjection_proofs_hash
is specifically excluded because surjection proofs are dependent on the inputs as well as the output.
§Cost
2849 mWU (milli weight units)