Function pubkey_to_scripthash

Source
pub fn pubkey_to_scripthash(public_key: &Secp256r1PublicKey) -> ScriptHash
Expand description

Converts a public key to a script hash.

§Arguments

  • public_key - A Secp256r1PublicKey instance.

§Returns

A ScriptHash instance representing the script hash of the verification script.