diff --git a/packages/daf-react-native-libsodium/src/key-management-system.ts b/packages/daf-react-native-libsodium/src/key-management-system.ts index 6e6d6dd24..914c23c44 100644 --- a/packages/daf-react-native-libsodium/src/key-management-system.ts +++ b/packages/daf-react-native-libsodium/src/key-management-system.ts @@ -98,4 +98,9 @@ export class KeyManagementSystem extends AbstractKeyManagementSystem { debug('Deleting', kid) return await this.keyStore.delete(kid) } + + async importKey(serializedKey: SerializedKey) { + await this.keyStore.set(serializedKey.kid, serializedKey) + return new Key(serializedKey) + } }