Function ergo_headless_dapp_framework::encoding::hash_and_serialize_p2s [−][src]
pub fn hash_and_serialize_p2s(address: &P2SAddressString) -> Result<Constant>
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