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