The injected runtime environment (crypto, keystore, store, clock, RNG) the wallet runs against.
Everything the wallet needs, injected so tests can pin the clock, RNG and keys.
Definition env.h:26
int lite_vault_open(lite_env *env, const char *alias)
Ensures the vault's AES and signing keys exist and a valid encrypted record is stored.
int lite_vault_reset(lite_env *env, const char *alias)
Replaces vault contents with an encrypted "{}" under freshly generated keys.
int lite_vault_set(lite_env *env, const char *alias, const char *key, const char *val)
Read-modify-write of one field. Verifies the current record first; resets on tamper....
long lite_vault_get(lite_env *env, const char *alias, const char *key, char *out, size_t cap)
Reads one top-level string field into out. Returns length, LITE_ERR_ABSENT, or LITE_ERR_TAMPER.
@ LITE_ERR_ABSENT
Requested field/record not present.
Definition vault.h:15
@ LITE_ERR_TAMPER
Signature invalid; the vault was reset as a side effect.
Definition vault.h:16
@ LITE_ERR
Generic failure.
Definition vault.h:14
@ LITE_OK
Success.
Definition vault.h:13