Skip to content

Commit e290482

Browse files
authoredNov 10, 2020
fix: Import DID support for daf-react-native-libsodium (#257)
1 parent 9f7dac4 commit e290482

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed
 

‎packages/daf-react-native-libsodium/src/key-management-system.ts

+5
Original file line numberDiff line numberDiff line change
@@ -98,4 +98,9 @@ export class KeyManagementSystem extends AbstractKeyManagementSystem {
9898
debug('Deleting', kid)
9999
return await this.keyStore.delete(kid)
100100
}
101+
102+
async importKey(serializedKey: SerializedKey) {
103+
await this.keyStore.set(serializedKey.kid, serializedKey)
104+
return new Key(serializedKey)
105+
}
101106
}

0 commit comments

Comments
 (0)