Function get_spk_hash

Source
pub fn get_spk_hash(spk: &ScriptBuf) -> Hash
Expand description

Computes the SHA-256 digest of a script, reverses its bytes, and returns a Hash from bitcoin_hashes.

The source to the specification can be found in the Electrum protocol documentation, and it is used to identify scripts in the Electrum Protocol.