mirror of
https://github.com/aljazceru/cdk.git
synced 2025-12-18 21:25:09 +01:00
Restructure melt flow into a multi-step saga with compensation-based rollback. Remove ProofWriter in favor of explicit compensation actions for improved reliability and clarity in handling partial failures during melt operations. Breaks down monolithic change processing logic into smaller, focused methods: - process_change_outputs: orchestrates full change workflow - validate_change_outputs: checks for already-signed messages - calculate_change_fee_and_amounts: fetches keyset configuration - split_change_amount: splits change into denominations - prepare_blinded_messages_with_amounts: pairs amounts with blinded messages - store_change_signatures: handles TX2 database operations
CDK SQL Base
This is a private crate offering a common framework to interact with SQL databases.
This crate uses standard SQL, a generic migration framework a traits to implement blocking or non-blocking clients.
ALPHA This library is in early development, the API will change and should be used with caution.
Features
The following crate feature flags are available:
| Feature | Default | Description |
|---|---|---|
wallet |
Yes | Enable cashu wallet features |
mint |
Yes | Enable cashu mint wallet features |
auth |
Yes | Enable cashu mint auth features |
License
This project is licensed under the MIT License.