Stronghold features a simple read-evaluate print loop (REPL) to showcase basic operations from an interaction command shell-like environment. The REPL maintains a state of a running Stronghold instance to store secrets or configuration data.
You can start REPL from a terminal inside the root folder of Stronghold by running the following command:
cargo run --example repl
Each command will show a short help message, if the entered command or parameters are incorrect.
You can use the following commands:
|help||-||Display a help message.|
|init||Initializes the underlying Stronghold system.|
|keygen||Generates a "ed25510" or "x25519" key at a location composed of "vault_path" and "record_path".|
|backup||Writes the current Stronghold state to "path_to_snapshot_location" (a path) with "passphrase".|
|restore||Loads the current Stronghold state from "path_to_snapshot_location" (a path) with "passphrase".|
|slip10derive||Derives a new key from old location and stores it into the new location. The key will be derived from the provided chain code.|
|mnemonic||-||Creates a BIP39 mnemonic and generates a seed.|
|quit||-||Exits the REPL.|
|checkrecord||Checks a record inside the vault. The command will return |
|checkvault||Checks for the presence of a vault.|