update docs

This commit is contained in:
2025-05-08 16:28:13 +03:00
parent a86a247180
commit 54f604f16a
5 changed files with 29 additions and 176 deletions

View File

@@ -12,7 +12,7 @@ This directory contains example scripts and documentation for the WebAssembly Cr
The `rhai/` directory contains example Rhai scripts that can be executed using the CLI:
```bash
crypto-cli script --path scripts/rhai/example.rhai
hero-vault scripts/rhai/example.rhai
```
These scripts demonstrate how to use the cryptographic functions exposed to the Rhai scripting engine, including:
@@ -43,13 +43,13 @@ You can create your own Rhai scripts to automate cryptographic operations. The f
### Key Space Management
- `create_key_space(name)`: Create a new key space
- `create_key_space(name, password)`: Create a new key space with password
- `encrypt_key_space(password)`: Encrypt the current key space
- `decrypt_key_space(encrypted, password)`: Decrypt and load a key space
### Keypair Operations
- `create_keypair(name)`: Create a new keypair
- `create_keypair(name, password)`: Create a new keypair
- `select_keypair(name)`: Select a keypair for use
- `list_keypairs()`: List all keypairs in the current space

View File

@@ -43,7 +43,7 @@ if load_key_space(space_name, password) {
## Key Space Storage
Key spaces are stored in the `~/.crypto-cli/key-spaces/` directory by default. Each key space is stored in a separate JSON file named after the key space (e.g., `my_space.json`).
Key spaces are stored in the `~/.hero-vault/key-spaces/` directory by default. Each key space is stored in a separate JSON file named after the key space (e.g., `my_space.json`).
## Security