pub fn public_keys_to_scripthash(
public_keys: &mut [Secp256r1PublicKey],
threshold: usize,
) -> ScriptHash
Expand description
Converts a list of public keys to a script hash using a given threshold.
§Arguments
public_keys
- A mutable slice ofSecp256r1PublicKey
instances.threshold
- The minimum number of signatures required to validate the transaction.
§Returns
A ScriptHash
instance representing the script hash of the MultiSig script.