Skip to main content

Crate silent_payments_descriptor

Crate silent_payments_descriptor 

Source
Expand description

BIP 392 Silent Payments descriptor parsing, generation, and annotations.

This crate provides SpDescriptor for representing SP wallet configurations as portable descriptor strings with scanning metadata (BIP 393 annotations).

§Supported Forms

  • Two-key hex: sp(02<scan_hex>,03<spend_hex>)#checksum
  • Single-key spscan: sp(spscan1q...)#checksum (scan secret derived to pubkey, then discarded)
  • Single-key spspend: Rejected (incomplete – no scan key available)

§Annotations (BIP 393)

Annotations appear after the closing paren and before the checksum: sp(...)?bh=850000&gl=20&ml=100#checksum

Re-exports§

pub use checksum::descriptor_checksum;
pub use checksum::verify_checksum;
pub use descriptor::SpDescriptor;
pub use error::DescriptorError;

Modules§

checksum
BIP 380 descriptor checksum computation.
descriptor
SpDescriptor: BIP 392 descriptor struct with BIP 393 annotations.
error
Per-domain error enum for BIP 392 descriptor operations.
parser
Hand-written parser for BIP 392 sp() descriptor expressions.