Expand description
§Payjoin implementation in Rust
Supercharge payment batching to save you fees and preserve your privacy.
This library implements both BIP 78 Payjoin V1 and BIP 77 Payjoin V2.
Only the latest BIP 77 Payjoin V2 is enabled by default. To use BIP 78 Payjoin V1, enable the v1
feature.
The library is perfectly IO-agnostic — in fact, it does no IO by default without the io
feature.
Types relevant to a Payjoin Directory as defined in BIP 77 are available in the directory
module enabled by
the directory
feature.
§Disclaimer ⚠️ WIP
Use at your own risk. This crate has not yet been reviewed by independent Rust and Bitcoin security professionals.
Re-exports§
pub extern crate bitcoin;
Modules§
- directory
directory
- Types relevant to the Payjoin Directory as defined in BIP 77.
- io
io
- IO-related types and functions. Specifically, fetching OHTTP keys from a payjoin directory.
- persist
- receive
- Receive Payjoin
- send
- Send Payjoin
Structs§
- Hpke
KeyPair - Hpke
Public Key - Ohttp
Keys - PjParse
Error - Request
- Represents data that needs to be transmitted to the receiver or payjoin directory.
Ensure the
Content-Length
is set to the length ofbody
. (most libraries do this automatically) - Url
- A parsed URL record.
Enums§
- Into
UrlError - Output
Substitution - Whether the receiver is allowed to substitute original outputs or not.
- Parse
Error - Errors that can occur during parsing.