mirror of
https://github.com/fluencelabs/js-libp2p-crypto
synced 2025-03-15 09:41:03 +00:00
fix: jwk var naming
This commit is contained in:
parent
b998f63aec
commit
8b8d0c1510
@ -19,7 +19,7 @@ function convert (key, types) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function jwk2priv (key) {
|
function jwk2priv (key) {
|
||||||
return forge.pki.setRsaPrivatKey(...convert(key, ['n', 'e', 'd', 'p', 'q', 'dP', 'dQ', 'qInv']))
|
return forge.pki.setRsaPrivateKey(...convert(key, ['n', 'e', 'd', 'p', 'q', 'dp', 'dq', 'qi']))
|
||||||
}
|
}
|
||||||
|
|
||||||
function jwk2privPem (key) {
|
function jwk2privPem (key) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user