Expand description
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()).
Re-exports§
Structs§
- Address
- A Bitcoin address.
- Compressed
Public Key - An always-compressed Bitcoin ECDSA public key
- Private
Key - A Bitcoin ECDSA private key
- Psbt
- A Partially Signed Transaction.
- Public
Key - A Bitcoin ECDSA public key
- Signer
- Bitcoin transaction signer.
- Transaction
- Bitcoin transaction.
Enums§
- Address
Type - BIP-137 address type for message signing.
- Error
- Errors that can occur during Bitcoin signing operations.
- Network
- The cryptocurrency network to act on.
- Network
Kind - What kind of network we are on.