Crate bitcoin_bosd

Source
Expand description

§Bitcoin Binary Output Script Descriptor (BOSD)

BOSD uses a simple binary format consisting of a 1-byte type tag followed by a cryptographic payload. The format is designed to be compact and efficiently represent standard Bitcoin output types:

TypePayload Length(s)Payload InterpretationSpend TypeMainnet Address Prefix
0..=80OP_RETURN payload(N/A)(N/A)
120pubkey hashP2PKH1...
220script hashP2SH3...
320, 32SegWit v0 hashP2WPKH, P2WSHbc1q...
432SegWit v1 public keyP2TRbc1p...

Re-exports§

pub use descriptor::Descriptor;
pub use descriptor::DescriptorType;
pub use error::DescriptorError;

Modules§

address
Address to Descriptor safe conversions.
descriptor
Bitcoin Output Script Descriptor (BOSD)
error
Error types for the Bitcoin BOSD library.
serde
Custom serialization and deserialization for Descriptor using serde.