https://github.com/rust-bitcoin/bip322
Implements BIP322 generic message signing and verification
https://github.com/rust-bitcoin/bip322
bitcoin rust
Last synced: 4 months ago
JSON representation
Implements BIP322 generic message signing and verification
- Host: GitHub
- URL: https://github.com/rust-bitcoin/bip322
- Owner: rust-bitcoin
- Created: 2024-07-22T22:17:48.000Z (12 months ago)
- Default Branch: master
- Last Pushed: 2025-02-02T16:30:51.000Z (5 months ago)
- Last Synced: 2025-03-01T05:41:29.869Z (5 months ago)
- Topics: bitcoin, rust
- Language: Rust
- Homepage: http://bip322.rs
- Size: 1.23 MB
- Stars: 21
- Watchers: 2
- Forks: 7
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# BIP-322
Implements
[BIP-322](https://github.com/bitcoin/bips/blob/master/bip-0322.mediawiki),
generic message signing and verification.## Types of Signatures
At the moment this crate supports `P2TR`, `P2WPKH` and `P2SH-P2WPKH` single-sig
addresses. Feedback through issues or PRs on the interface design and security
is welcome and encouraged.- [x] simple
- [x] full
- [ ] full (proof-of-funds)
- [ ] legacy (BIP-137)The goal is to provide a full signing and verifying library similar to
[this](https://github.com/ACken2/bip322-js/tree/main) Javascript library.## Test Vectors
- from Bitcoin Core [repo](https://github.com/bitcoin/bitcoin/blob/29b28d07fa958b89e1c7916fda5d8654474cf495/src/test/util_tests.cpp#L2747)
- from [bip322-js](https://github.com/ACken2/bip322-js/blob/main/test/Verifier.test.ts)
- from [BIP-322](https://github.com/bitcoin/bips/blob/master/bip-0322.mediawiki#test-vectors)## MSRV
At the moment the Minimum Supported Rust Version (MSRV) is 1.63. You can check
it by running `just msrv`.