Files
cdk/crates/cdk-common
tsk d9e001bee6 refactor(cdk): implement saga pattern for melt operations (#1186)
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
2025-11-03 11:40:21 -05:00
..
2025-10-09 16:20:06 +01:00
2025-10-09 16:20:06 +01:00
2025-05-29 09:38:10 -04:00

CDK Common

crates.io Documentation MIT licensed

ALPHA This library is in early development, the API will change and should be used with caution.

Common types and utilities shared across the Cashu Development Kit (CDK) crates.

Installation

Add this to your Cargo.toml:

[dependencies]
cdk-common = "*"

Features

This crate provides common functionality used across CDK crates including:

  • Common data types and structures
  • Shared traits and interfaces
  • Utility functions
  • Error types

License

This project is licensed under the MIT License.