You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add Oblivious HTTP support for enhanced privacy between wallets and mints.
- Add ohttp-gateway crate: OHTTP gateway server that can be embedded in
cdk-mintd or run standalone, handling BHTTP encapsulation/decapsulation
and key management
- Add ohttp-client crate: client library for OHTTP key discovery and
request encapsulation
- Add OHTTP transport layer in cdk wallet for routing requests through
an OHTTP relay
- Add OhttpSettings (NUT-26) to MintInfo for advertising OHTTP support
- Add MintBuilder::with_ohttp() for configuring OHTTP on the mint side
- Add ohttp_gateway config section to cdk-mintd
- Add --ohttp-relay CLI flag to cdk-cli
- Wire OHTTP gateway router into cdk-mintd when enabled
Copy file name to clipboardExpand all lines: crates/cdk-cli/README.md
+95-2Lines changed: 95 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -571,12 +571,105 @@ cdk-cli burn
571
571
cdk-cli restore <MINT_URL>
572
572
```
573
573
574
+
574
575
## License
575
576
576
577
Code is under the [MIT License](../../LICENSE)
577
578
578
-
## Contribution
579
+
## Contributing
579
580
580
581
All contributions are welcome.
581
582
582
-
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, shall be licensed as above, without any additional terms or conditions.
583
+
### Basic Commands
584
+
585
+
Check wallet balance:
586
+
```bash
587
+
cdk-cli balance
588
+
```
589
+
590
+
Send tokens:
591
+
```bash
592
+
cdk-cli send --amount 100
593
+
```
594
+
595
+
Receive tokens:
596
+
```bash
597
+
cdk-cli receive <TOKEN>
598
+
```
599
+
600
+
### OHTTP Support
601
+
602
+
The CLI supports OHTTP (Oblivious HTTP) for enhanced privacy when communicating with mints. OHTTP is enabled by default and automatically used when:
603
+
604
+
1. The mint supports OHTTP (advertised in mint info)
605
+
2. You provide an OHTTP relay URL using `--ohttp-relay`
606
+
607
+
#### OHTTP Usage
608
+
609
+
To use OHTTP, simply provide a relay URL. The CLI will automatically detect if the mint supports OHTTP and configure the connection appropriately:
610
+
611
+
```bash
612
+
# Use OHTTP relay - CLI auto-detects OHTTP support and gateway URL from mint
0 commit comments