diff options
author | Florian Dold <florian@dold.me> | 2021-11-04 20:02:04 +0100 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2021-11-04 20:16:17 +0100 |
commit | 11e8060ab156e5033c7dd5cd607648d584540883 (patch) | |
tree | 79c671ac6f12c3b4ef4a1a00e8694f69ac736cc8 /packages/anastasis-core/src/reducer-types.ts | |
parent | 9ba0e8597dc0cb902bec3cd8f1090fc5746f790c (diff) | |
download | wallet-core-11e8060ab156e5033c7dd5cd607648d584540883.tar.xz |
anastasis-core: fix upload fee computation, prepare for payments
Diffstat (limited to 'packages/anastasis-core/src/reducer-types.ts')
-rw-r--r-- | packages/anastasis-core/src/reducer-types.ts | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/packages/anastasis-core/src/reducer-types.ts b/packages/anastasis-core/src/reducer-types.ts index 08e61cefe..318e00f89 100644 --- a/packages/anastasis-core/src/reducer-types.ts +++ b/packages/anastasis-core/src/reducer-types.ts @@ -68,6 +68,13 @@ export interface ReducerStateBackup { policies?: Policy[]; /** + * Map from truth key (`${methodIndex}/${providerUrl}`) to + * the truth metadata. + */ + truth_metadata?: Record<string, TruthMetaData>; + recovery_document?: RecoveryDocument; + + /** * Policy providers are providers that we checked to be functional * and that are actually used in policies. */ @@ -198,6 +205,35 @@ export interface ReducerStateRecovery { authentication_providers?: { [url: string]: AuthenticationProviderStatus }; } +/** + * Truth data as stored in the reducer. + */ +export interface TruthMetaData { + uuid: string; + + key_share: string; + + policy_index: number; + + pol_method_index: number; + + /** + * Nonce used for encrypting the truth. + */ + nonce: string; + + /** + * Key that the truth (i.e. secret question answer, email address, mobile number, ...) + * is encrypted with when stored at the provider. + */ + truth_key: string; + + /** + * Truth-specific salt. + */ + truth_salt: string; +} + export interface ReducerStateError { backup_state?: undefined; recovery_state?: undefined; |