Skip to main content

Crate silent_payments_psbt

Crate silent_payments_psbt 

Source
Expand description

BIP 375 PSBT integration for Silent Payments, with BIP 374 DLEQ proofs.

This crate provides:

  • BIP 375 PSBT field constants and serialization helpers (fields)
  • BIP 374 DLEQ proof newtype with generate/verify (dleq)
  • Typestate role machine: Constructor -> Updater -> Signer -> Extractor (roles)
  • Extracted output type for wallet mapping (output)
  • Per-domain error enums (error)

Re-exports§

pub use dleq::DleqProof;
pub use error::DleqError;
pub use error::PsbtError;
pub use output::ExtractedSpOutput;
pub use roles::SpPsbtConstructor;
pub use roles::SpPsbtExtractor;
pub use roles::SpPsbtSigner;
pub use roles::SpPsbtUpdater;
pub use fields::*;

Modules§

dleq
BIP 374 DLEQ proof newtype with generate and verify operations.
error
Per-domain error enums for PSBT and DLEQ operations.
fields
BIP 375 PSBT field constants and serialization helpers.
output
Result type from PSBT Silent Payment output extraction.
roles
BIP 375 PSBT role typestate machine.