mirror of
https://github.com/aljazceru/cdk.git
synced 2025-12-24 08:05:02 +01:00
* feat: Add created_time and paid_time fields to MintQuote struct * feat: Add serde default of 0 for created_time in MintQuote * feat: Add created_time and paid_time to MintQuote and MeltQuote structs * feat: Add paid_time update when setting melt quote state to Paid * fix: Update melt quote state with current Unix timestamp * feat: Add paid_time update for mint quote when state is set to Paid * feat: Add issued_time field to MintQuote conversion from SQLite row * feat: Add issued_time tracking for MintQuoteState::Issued state * feat: Add migration script for mint time of quotes * feat: Add timestamp columns to mint_quote and melt_quote tables * feat: Add timestamp columns to `add_mint_quote` method * refactor: Improve code formatting and readability in mint quote state update logic * feat: Add created_time and paid_time columns to melt_quote query * feat: time on mint and melt quotes * feat: Add migration script for mint created time signature feat: Add created_time column to blind_signature table feat: Add created_time to blind_signature insertion feat: Add created_time column to proof table and update insert query feat: time on mint and melt quotes * feat: Add new table to track blind signature creation time * feat: Add timestamp tracking for proofs in ReDB database * feat: redb proof time * chore: fmt
CDK Common
Common types, traits, and utilities for the Cashu Development Kit (CDK).
Overview
The cdk-common crate provides shared functionality used across the CDK crates. It contains core data structures, error types, and utility functions that are essential for implementing Cashu wallets and mints.
Features
- Core Data Types: Implementations of fundamental Cashu types like
MintUrl,ProofInfo, andMelted - Error Handling: Comprehensive error types for Cashu operations
- Database Abstractions: Traits for database operations used by wallets and mints
- NUT Implementations: Common functionality for Cashu NUTs (Notation, Usage, and Terminology)
Usage
Add this to your Cargo.toml:
[dependencies]
cdk-common = "*"
Components
The crate includes several key modules:
- common: Core data structures used throughout the CDK
- database: Traits for database operations
- error: Error types and handling
- mint_url: Implementation of the MintUrl type
- nuts: Common functionality for Cashu NUTs
License
This project is licensed under the MIT License.