diff --git a/CLAUDE.md b/CLAUDE.md new file mode 100644 index 0000000..817fcc3 --- /dev/null +++ b/CLAUDE.md @@ -0,0 +1,51 @@ +# Claude - blockchain-cli + +## Projet +Rust CLI pour interagir avec le blockchain node via REST API. +Partie d'un ecosysteme de 3 repos. + +## Architecture +``` +blockchain-cli/ +└── src/ + ├── main.rs # Clap parsing + dispatch + ├── commands/ # Subcommands: wallet, tx, mining, blocks, node + ├── client.rs # NodeClient (reqwest HTTP) + ├── display.rs # Colored output (owo-colors + comfy-table) + ├── config.rs # Node URL, wallet dir + └── error.rs # anyhow errors +``` + +## Design +- **Zero lib dependency** : communique UNIQUEMENT via HTTP avec le node +- **clap 4 derive** pour le parsing CLI +- **reqwest** pour HTTP +- **owo-colors + comfy-table** pour output formaté + +## Commands +``` +blockchain-cli wallet create +blockchain-cli wallet balance
+blockchain-cli tx send