Back to Fuels Rs

Encrypting and Storing Keys

docs/src/wallets/keystore.md

0.77.0288 B
Original Source

Encrypting and Storing Keys

The code below shows how to:

  • Encrypt and store your key using a master password.
  • Ensure that the key can be retrieved later with the proper credentials.
rust,ignore
{{#include ../../../examples/wallets/src/lib.rs:create_and_store_mnemonic_key}}