Skip to main content

Generate a SLIP10 Master Key

Run the Example

You can generate a new SLIP10 master key with optional size by running the following command from within the client crate.

cargo run --example cli slip10-generate --size 512 --vault-path "slip10-vault-path" --record-path "slip10-record-path"

Expected Output

[2022-06-28T14:07:17Z INFO  cli] SLIP10 seed successfully created? true

Example Code

async fn command_slip10_generate(size: Option<NonZeroUsize>, location: VaultLocation) {
let client = Client::default();

let (vault_path, record_path) = (location.vault_path, location.record_path);

let output_location =
stronghold::Location::generic(vault_path.as_bytes().to_vec(), record_path.as_bytes().to_vec());

let slip10_generate = Slip10Generate {
size_bytes:|nzu| nzu.get()),
output: output_location,

"SLIP10 seed successfully created? {}",