We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d60b2f9 commit 2c926e4Copy full SHA for 2c926e4
lib/key/private.js
@@ -190,7 +190,7 @@ function _public(cb) {
190
const pk = new PublicKey(self.protocol());
191
192
// we don't have to check sodium first because we wouldn't have this private key without it
193
- const rkey = (self.protocol instanceof V1)
+ const rkey = (self.protocol() instanceof V1)
194
? extcrypto.extract(self.raw())
195
: Buffer.from(sodium.crypto_sign_ed25519_sk_to_pk(self.raw()));
196
0 commit comments