Skip to content

Implement P2PKH support and legacy signing method#66

Open
aagbotemi wants to merge 5 commits into
rust-bitcoin:masterfrom
aagbotemi:feat/p2pkh-support
Open

Implement P2PKH support and legacy signing method#66
aagbotemi wants to merge 5 commits into
rust-bitcoin:masterfrom
aagbotemi:feat/p2pkh-support

Conversation

@aagbotemi

Copy link
Copy Markdown

Summary

Add BIP-137 legacy message signing/verification and BIP-322 P2PKH support.
Rebased on #65.

Changes

  • Add sign_legacy_encoded and verify_legacy_encoded for the BIP-137 legacy format
  • Add create_message_signature_p2pkh / verify_full_p2pkh for BIP-322 P2PKH signing and verification
  • Add InvalidRecoveryFlag and LegacyRecover error variants

Note

Legacy is restricted to P2PKH, both sign and verify reject non-P2PKH addresses.

Closes #35
Closes #36

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 P2PKH (Legacy) Any plans to add ECDSA support in this?

1 participant