2 releases

0.0.1 Jul 2, 2025
0.0.0 Apr 14, 2025

#5 in #payjoin

Download history 118/week @ 2025-04-09 42/week @ 2025-04-16 174/week @ 2025-04-23 119/week @ 2025-04-30 132/week @ 2025-05-07 88/week @ 2025-05-14 116/week @ 2025-05-21 327/week @ 2025-05-28 377/week @ 2025-06-04 404/week @ 2025-06-11 279/week @ 2025-06-18 655/week @ 2025-06-25 159/week @ 2025-07-02

1,583 downloads per month
Used in 2 crates

MIT license

540KB
11K SLoC

payjoin-test-utils

A collection of testing utilities for Payjoin protocol implementations.

Overview

The payjoin-test-utils crate provides commonly used testing fixtures for Payjoin development and testing, including:

  • Local OHTTP relay and Payjoin directory services
  • Bitcoin Core node and wallet management
  • Official test vectors
  • HTTP client configuration for testing
  • Tracing setup for debugging

Features

  • Test Services: Easily spin up and manage OHTTP relay and Payjoin Directory test services required for Payjoin testing
  • Bitcoin Core Integration: Initialize and configure Bitcoin nodes for testing
  • Wallet Management: Create and fund wallets for sender and receiver testing
  • OHTTP Relay: Set up local OHTTP relay services
  • Directory Service: Configure Payjoin directory services
  • Test Vectors: Get access to official Payjoin test vectors

Usage

For examples of using the TestServices, switch to the appropriate payjoin-test-utils tag in rust-payjoin and view the e2e or integration tests there.

Minimum Supported Rust Version (MSRV)

This crate supports Rust 1.63.0 and above.

License

MIT

Dependencies

~36–53MB
~1M SLoC