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:
| Type | Payload Length(s) | Payload Interpretation | Spend Type | Mainnet Address Prefix |
|---|---|---|---|---|
| 0 | ..=100_000 | OP_RETURN payload | (N/A) | (N/A) |
| 1 | 20 | Pubkey Hash | P2PKH | 1... |
| 2 | 20 | Script Hash | P2SH | 3... |
| 3 | 20, 32 | SegWit v0 Hash | P2WPKH, P2WSH | bc1q... |
| 4 | 0, 32 | SegWit v1 Public Key | P2A, P2TR | bc1p... |
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
Descriptorusingserde.