Function simfony_as_rust::jet::signature_hash_modes::annex_hash

source ยท
pub fn annex_hash(a: Ctx8, b: Option<u256>) -> Ctx8
Expand description

Continue a SHA256 hash with an optional hash by appending the following:

  • If there is no hash, then the byte 0x00.
  • If there is a hash, then the byte 0x01 followed by the given hash (32 bytes).