Skip to content

Commit

Permalink
fix: Import DID support for daf-react-native-libsodium (#257)
Browse files Browse the repository at this point in the history
  • Loading branch information
devrajsinghrawat authored Nov 10, 2020
1 parent 9f7dac4 commit e290482
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}

0 comments on commit e290482

Please sign in to comment.