Crate payjoin

Source
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§

directorydirectory
Types relevant to the Payjoin Directory as defined in BIP 77.
ioio
IO-related types and functions. Specifically, fetching OHTTP keys from a payjoin directory.
persist
receive
Receive Payjoin
send
Send Payjoin

Structs§

HpkeKeyPair
HpkePublicKey
OhttpKeys
PjParseError
Request
Represents data that needs to be transmitted to the receiver or payjoin directory. Ensure the Content-Length is set to the length of body. (most libraries do this automatically)
Url
A parsed URL record.

Enums§

IntoUrlError
OutputSubstitution
Whether the receiver is allowed to substitute original outputs or not.
ParseError
Errors that can occur during parsing.

Traits§

IntoUrl
Try to convert some type into a Url.
UriExt

Type Aliases§

PjUri
Uri