Crates.io | payjoin |
lib.rs | payjoin |
version | 0.13.1 |
source | src |
created_at | 2022-12-28 20:53:01.058387 |
updated_at | 2024-08-13 20:20:01.722342 |
description | Payjoin Library for the BIP78 Pay to Endpoint protocol. |
homepage | |
repository | https://github.com/payjoin/rust-payjoin |
max_upload_size | |
id | 746981 |
size | 198,953 |
This is a library and a client binary for bitcoind implementing BIP78 Payjoin.
The library is perfectly IO-agnostic—in fact, it does no IO. The primary goal of such design is to be easy to unit test. While not there yet, it already has infinitely more tests than the Payjoin PR against Electrum. :P
It doesn't care whether you use async
, blocking, tokio
, sync-std
hyper
, actix
or whatever.
There are already too many frameworks in Rust so it's best avoiding directly introducing them into library code.
The library currently only contains sender implementation and a partial receiver.
The payjoin-cli binary performs no-frills Payjoin using Bitcoin Core wallet. The payjoin crate also supports other wallet software like LND.
Use at your own risk. this crate has not yet been reviewed by independent Rust and Bitcoin security professionals.
While I don't think there is a huge risk running it, don't rely on its security for now!
Seeking review of the code that verifies there is no overpayment. Contributions are welcome!
unsafe
code or well-tested/analyzed/proven/... unsafe
codeThe payjoin
library and payjoin-cli
should always compile with any combination of features on Rust 1.63.0.
To build and test with the MSRV you will need to pin the below dependency versions:
payjoin
cargo update -p regex --precise 1.9.6
cargo update -p which --precise 4.4.0
payjoin-cli
cargo update -p home --precise 0.5.5
cargo update -p regex --precise 1.9.6
cargo update -p which --precise 4.4.0
cargo update -p time@0.3.36 --precise 0.3.20
cargo update -p tokio --precise 1.38.1
MIT