Skip to main content

Read a Snapshot From Filesystem

Run the Example

You can read a snapshot from the file system and retrieve the public key from the stored secret Ed25519 key stored at the given path by running the following command from within the client crate.

 cargo run --example cli read-snapshot --path "/path/to/snapshot.file" --client-path "client-path-0" --vault-path "vault-path" --record-path "record-path" --key "passphrase"

Expected Output

[2022-03-28T08:29:33Z INFO  cli] Loading snapshot
[2022-03-28T08:29:33Z INFO cli] Creating public key
[2022-03-28T08:29:33Z INFO cli] Public key is "smsmXBG/Ln/Yjip72OJns4PB4iejVBIzs4MOXO9IkTE=" (Base64)

Example Code

client/examples/cli/main.rs
loading...