6 releases

0.9.1 Apr 23, 2025
0.9.0 Apr 9, 2025
0.8.1 Mar 25, 2025
0.7.1 Feb 13, 2025

#15 in #key-set

Download history 153/week @ 2025-02-03 201/week @ 2025-02-10 33/week @ 2025-02-17 42/week @ 2025-02-24 33/week @ 2025-03-03 16/week @ 2025-03-10 24/week @ 2025-03-17 402/week @ 2025-03-24 107/week @ 2025-03-31 312/week @ 2025-04-07 94/week @ 2025-04-14 200/week @ 2025-04-21 101/week @ 2025-04-28

712 downloads per month
Used in 15 crates (4 directly)

MIT license

420KB
9K SLoC

CDK Common

crates.io Documentation MIT licensed

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, and Melted
  • 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.

Dependencies

~19MB
~319K SLoC