Bitcoin transaction signer built on the [bitcoin] crate.
[Signer] wraps a [PrivateKey] and uses the global [secp256k1] context
for all cryptographic operations — ECDSA, Schnorr, PSBT, and BIP-137
message signing.
Zero hand-rolled cryptography.
Signing methods
| Method | Description |
|---|---|
[Signer::sign_ecdsa] |
secp256k1 ECDSA signature |
[Signer::sign_schnorr] |
BIP-340 Schnorr signature (Taproot) |
[Signer::sign_message] |
BIP-137 Bitcoin Signed Message |
[Signer::verify_message] |
Verify a BIP-137 message |
[Signer::sign_psbt] |
Sign all applicable PSBT inputs |
Deref
Signer implements Deref<Target = PrivateKey>, giving direct access
to all [PrivateKey] methods (e.g. to_wif(), public_key()).