Skip to content

Commit

Permalink
Merge pull request #77 from VirgilSecurity/extractKey/fix
Browse files Browse the repository at this point in the history
rework tests
  • Loading branch information
rstp-god authored Feb 22, 2023
2 parents a3199ff + f6fe145 commit b502fa2
Show file tree
Hide file tree
Showing 5 changed files with 64 additions and 60 deletions.
6 changes: 3 additions & 3 deletions src/virgil-crypto.js
Original file line number Diff line number Diff line change
Expand Up @@ -166,9 +166,9 @@ export const virgilCrypto = {
));
},

extractPublicKey(virgilPublicKey) {
const publicKeyValue = checkedGetPublicKeyValue(virgilPublicKey);
const { identifier, publicKey } = unwrapResponse(RNVirgilCrypto.extractPublicKey(publicKeyValue));
extractPublicKey(virgilPrivateKey) {
const privateKeyValue = checkedGetPrivateKeyValue(virgilPrivateKey);
const { identifier, publicKey } = unwrapResponse(RNVirgilCrypto.extractPublicKey(privateKeyValue));
return new VirgilPublicKey(identifier, publicKey);
},

Expand Down
Loading

0 comments on commit b502fa2

Please sign in to comment.