diff options
author | Florian Dold <florian@dold.me> | 2021-11-04 20:16:11 +0100 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2021-11-04 20:16:17 +0100 |
commit | b94dc8f9e26219b1f54e1456f8d7be00d333aa80 (patch) | |
tree | ea2d7796610ab6ffa30837f4c8f8f465d154de7d /packages/anastasis-core/src/reducer-types.ts | |
parent | 11e8060ab156e5033c7dd5cd607648d584540883 (diff) | |
download | wallet-core-b94dc8f9e26219b1f54e1456f8d7be00d333aa80.tar.xz |
anastasis-core: factor out recovery data computation into separate step
Diffstat (limited to 'packages/anastasis-core/src/reducer-types.ts')
-rw-r--r-- | packages/anastasis-core/src/reducer-types.ts | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/packages/anastasis-core/src/reducer-types.ts b/packages/anastasis-core/src/reducer-types.ts index 318e00f89..56b27898e 100644 --- a/packages/anastasis-core/src/reducer-types.ts +++ b/packages/anastasis-core/src/reducer-types.ts @@ -67,12 +67,14 @@ export interface ReducerStateBackup { secret_name?: string; policies?: Policy[]; - /** - * Map from truth key (`${methodIndex}/${providerUrl}`) to - * the truth metadata. - */ - truth_metadata?: Record<string, TruthMetaData>; - recovery_document?: RecoveryDocument; + recovery_data?: { + /** + * 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 |