Crates.io | bip78 |
lib.rs | bip78 |
version | 0.1.0-preview |
source | src |
created_at | 2021-07-28 16:55:55.454734 |
updated_at | 2021-07-28 16:55:55.454734 |
description | Library implementing PayJoin (BIP78) protocol. |
homepage | https://github.com/Kixunil/payjoin |
repository | https://github.com/Kixunil/payjoin |
max_upload_size | |
id | 428430 |
size | 65,965 |
While I don't think there's a huge risk running it, don't rely on its security for now! Please at least review the code that verifies there's no overpayment and let me know you did.
unsafe
code or well-tested/analyzed/proven/... unsafe
code
- [ ] Warning-free
- [ ] CI
- [ ] Integration tests
- [ ] Fuzzing
- [ ] Coverage measurementThis is a library and an example binary implementing BIP78 PayJoin. The library is perfectly IO-agnostic - in fact, it does no IO. The primary goal of such design is to make it easy to unit test. While we're not there yet, it already has infinitely more tests than the PayJoin PR against Electrum. :P
Additional advantage is 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 but I want to add receiver too.
The provided binary is currently quickly hacked together tool that performs PayJoin using Bitcoin Core wallet. The intention is to develop it further over time to support other backends (LND internal wallet comes to mind).
Contributions welcome!
MITNFA with disclaimer: if you use this library in production without review you agree to be publicly shamed and ridiculed for doing so. The reviewer(s) must demonstrate good knowledge of Rust and relevant Bitcoin protocol details.