Skip to content

feat/multisig support#65

Open
aagbotemi wants to merge 2 commits into
rust-bitcoin:masterfrom
aagbotemi:feat/multisig-support
Open

feat/multisig support#65
aagbotemi wants to merge 2 commits into
rust-bitcoin:masterfrom
aagbotemi:feat/multisig-support

Conversation

@aagbotemi

Copy link
Copy Markdown

Summary

Add multisig support to BIP-322 message signing and verification.

Changes

  • Update sign_simple_encoded and sign_full_encoded to accept wif_private_keys: &[impl AsRef<str>] and witness_script_hex: Option<&str> instead of a single WIF key
  • Add create_message_signature_p2wsh for P2WSH multisig witness construction
  • Add create_message_signature_p2sh_multisig for P2SH multisig script_sig construction
  • Add verify_full_p2wsh for P2WSH and P2SH-P2WSH multisig verification.
  • Add verify_full_p2sh_multisig for legacy P2SH multisig script_sig verification
  • Add parse_multisig to decode m-of-n parameters and public keys

Closes #25

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Implement multi-sig support

1 participant