10 releases (6 breaking)
new 0.9.1 | Apr 23, 2025 |
---|---|
0.9.0 | Apr 9, 2025 |
0.8.1 | Mar 25, 2025 |
0.7.1 | Feb 13, 2025 |
0.3.0 | Aug 31, 2024 |
#118 in Magic Beans
510 downloads per month
Used in 2 crates
385KB
8K
SLoC
CDK Fake Wallet
The CDK Fake Wallet is a component of the Cashu Development Kit that provides a simulated Lightning Network backend for testing Cashu mints.
Overview
This crate implements the MintPayment
trait with a fake Lightning backend that automatically completes payments without requiring actual Lightning Network transactions. It's designed for development and testing purposes only.
Features
- Simulated Lightning Network payments
- Automatic completion of payment quotes
- Support for testing mint functionality without real funds
- Implementation of the standard
MintPayment
interface
Usage
Add this to your Cargo.toml
:
[dependencies]
cdk-fake-wallet = "*"
Warning
This is for testing purposes only!
The fake wallet should never be used in production environments as it does not perform actual Lightning Network transactions. It simply simulates the payment flow by automatically marking invoices as paid.
License
This project is licensed under the MIT License.
Dependencies
~22–38MB
~595K SLoC