thesimplekid 7b4951041e Rust docs (#681) 4 semanas atrás
..
src 7b4951041e Rust docs (#681) 4 semanas atrás
Cargo.toml 7b4951041e Rust docs (#681) 4 semanas atrás
README.md 7b4951041e Rust docs (#681) 4 semanas atrás

README.md

CDK Fake Wallet

crates.io Documentation

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.