Skip to content

Commit

Permalink
Do not load private d from publicKeyJwk.
Browse files Browse the repository at this point in the history
  • Loading branch information
dlongley committed Mar 18, 2024
1 parent 7d04d9b commit 11bd557
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export async function from(key) {
if(multikey.type !== 'Multikey') {
// attempt loading from JWK if `publicKeyJwk` is present
if(multikey.publicKeyJwk) {
return fromJwk({jwk: multikey.publicKeyJwk, secretKey: true});
return fromJwk({jwk: multikey.publicKeyJwk, secretKey: false});
}
if(multikey.type) {
multikey = await toMultikey({keyPair: multikey});
Expand Down

0 comments on commit 11bd557

Please sign in to comment.