Skip to content

Commit

Permalink
fix: fix private key hex from Pem
Browse files Browse the repository at this point in the history
  • Loading branch information
nklomp committed Jan 11, 2023
1 parent 26cff51 commit 0204094
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/did-utils/src/x509-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export const PEMToJwk = (pem: string, visibility: KeyVisibility = 'public'): JWK
return keyto.from(pem, 'pem').toJwk(visibility)
}
export const privateKeyHexFromPEM = (PEM: string) => {
return PEMToHex(PEM, 'private')
return PEMToHex(PEM)
}

export const hexKeyFromPEMBasedJwk = (jwk: JWK, visibility: KeyVisibility = 'public'): string => {
Expand Down

0 comments on commit 0204094

Please sign in to comment.