This guide shows how to load a private , which is stored on the device. The key must be loaded when Alice wants to some data, any encrypted content, and perform cryptographic operations.
Set up your project environment before you begin to load a Virgil Key, with the getting started guide.
In order to load the Virgil Key from the default storage:
api, err := virgilapi.New("[YOUR_ACCESS_TOKEN_HERE]")
- Alice has to load her Virgil Key from the protected storage and enter the Virgil Key's password
// load a Virgil Key from storage
aliceKey, err := api.Keys.Load("[KEY_NAME]", "[OPTIONAL_KEY_PASSWORD]")
To load a Virgil Key from a specific storage, developers need to change the storage path during Virgil SDK initialization.