Skip to content

Commit

Permalink
Use secretKey param.
Browse files Browse the repository at this point in the history
  • Loading branch information
dlongley committed Oct 30, 2023
1 parent db7086a commit 26f3a06
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 @@ -68,7 +68,7 @@ export async function fromJwk({jwk, secretKey = false} = {}) {
type: 'Multikey',
publicKeyMultibase: toPublicKeyMultibase({jwk})
};
if(jwk.d) {
if(secretKey && jwk.d) {
multikey.secretKeyMultibase = toSecretKeyMultibase({jwk});
}
return from(multikey);
Expand Down

0 comments on commit 26f3a06

Please sign in to comment.