pub fn hash_and_serialize_p2s(address: &P2SAddressString) -> Result<Constant>
Expand description

Given a P2S address, extract its ErgoTree, serialize it into hex-encoded bytes, hash it with blake2b_256, and then prepare it to be used in a register as a Constant