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§

Modules§

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