|
@@ -1,43 +1,51 @@
|
|
|
-# Cashu Mint Management RPC
|
|
|
+# CDK Mint RPC
|
|
|
|
|
|
-This crate is a gRPC client and server to control and manage a CDK mint. This crate exposes a server component that can be imported as a library component, see its usage in `cdk-mintd`. The client can be used as a CLI by running `cargo r --bin cdk-mint-cli`.
|
|
|
+[](https://crates.io/crates/cdk-mint-rpc)
|
|
|
+[](https://docs.rs/cdk-mint-rpc)
|
|
|
+[](https://github.com/cashubtc/cdk/blob/main/LICENSE)
|
|
|
|
|
|
-The server can be run with or without certificate authentication. For running with authentication, see the [Certificate Generation Guide](./CERTIFICATES.md) for instructions on creating the necessary certificates using the included `generate_certs.sh` script.
|
|
|
+**ALPHA** This library is in early development, the API will change and should be used with caution.
|
|
|
|
|
|
-## Overview
|
|
|
+gRPC server and CLI client for managing Cashu mints in the Cashu Development Kit (CDK).
|
|
|
|
|
|
-The cdk-mint-rpc crate provides:
|
|
|
+## Components
|
|
|
|
|
|
-1. A gRPC server for managing Cashu mints
|
|
|
-2. A CLI client (`cdk-mint-cli`) for interacting with the gRPC server
|
|
|
+This crate includes:
|
|
|
+- gRPC server for mint management
|
|
|
+- CLI client for interacting with the gRPC server
|
|
|
+- Protocol definitions for mint management
|
|
|
|
|
|
-This allows mint operators to manage their Cashu mint instances remotely through a secure gRPC interface.
|
|
|
+## Installation
|
|
|
|
|
|
-## Features
|
|
|
+From crates.io:
|
|
|
+```bash
|
|
|
+cargo install cdk-mint-cli
|
|
|
+```
|
|
|
|
|
|
-- Remote mint management via gRPC
|
|
|
-- Secure authentication
|
|
|
-- Command-line interface for common mint operations
|
|
|
-- Integration with other CDK components
|
|
|
+As a library:
|
|
|
+```toml
|
|
|
+[dependencies]
|
|
|
+cdk-mint-rpc = "*"
|
|
|
+```
|
|
|
|
|
|
## Usage
|
|
|
|
|
|
-### CLI Client
|
|
|
-
|
|
|
-The `cdk-mint-cli` provides a command-line interface for interacting with the mint:
|
|
|
+### CLI
|
|
|
|
|
|
```bash
|
|
|
-# Using cargo to run the CLI with a specific address
|
|
|
-cargo r --bin cdk-mint-cli -- --addr https://127.0.0.1:8086 get-info
|
|
|
+# Show available commands
|
|
|
+cdk-mint-cli --help
|
|
|
+
|
|
|
+# Get mint info
|
|
|
+cdk-mint-cli info
|
|
|
+
|
|
|
+# Manage keysets
|
|
|
+cdk-mint-cli keysets list
|
|
|
```
|
|
|
|
|
|
-## Related Crates
|
|
|
|
|
|
-This crate is part of the Cashu Development Kit (CDK) ecosystem:
|
|
|
|
|
|
-- [cdk](../cdk/): Core Cashu protocol implementation
|
|
|
-- [cdk-mintd](../cdk-mintd/): Cashu Mint Binary
|
|
|
|
|
|
## License
|
|
|
|
|
|
-MIT License
|
|
|
+This project is licensed under the [MIT License](../../LICENSE).
|