|
1 mese fa | |
---|---|---|
.. | ||
src | 1 mese fa | |
Cargo.toml | 1 mese fa | |
README.md | 1 mese fa | |
example.config.toml | 1 mese fa |
ALPHA This library is in early development, the API will change and should be used with caution.
Cashu mint daemon implementation for the Cashu Development Kit (CDK). This binary provides a complete Cashu mint server implementation with support for multiple database backends and Lightning Network integrations.
From crates.io:
cargo install cdk-mintd
From source:
cargo install --path .
# Start with SQLite (no additional setup required)
cdk-mintd
# Set environment variables
export CDK_MINTD_DATABASE=postgres
export CDK_MINTD_DATABASE_URL="postgresql://postgres:password@localhost:5432/cdk_mint"
# Start the mint
cdk-mintd
# SQLite
docker-compose up
# PostgreSQL
docker-compose -f docker-compose.postgres.yaml up
The mint can be configured through environment variables or a configuration file. See example.config.toml
for all available options.
[database]
engine = "sqlite"
[database]
engine = "postgres"
Set CDK_MINTD_DATABASE_URL
environment variable for connection string.
[database]
engine = "redb"
[ln]
ln_backend = "fakewallet" # Options: cln, lnd, lnbits, fakewallet
# Start the mint with default configuration
cdk-mintd
# Start with custom config file
cdk-mintd --config /path/to/config.toml
# Start with specific work directory
cdk-mintd --work-dir /path/to/work/dir
# Show help
cdk-mintd --help
Key environment variables:
CDK_MINTD_DATABASE
: Database engine (sqlite/postgres/redb)CDK_MINTD_DATABASE_URL
: PostgreSQL connection stringCDK_MINTD_LN_BACKEND
: Lightning backend typeCDK_MINTD_LISTEN_HOST
: Host to bind toCDK_MINTD_LISTEN_PORT
: Port to bind toThis project is licensed under the MIT License.