Skip to content

Commit 2c926e4

Browse files
committed
Minor fix.
1 parent d60b2f9 commit 2c926e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/key/private.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ function _public(cb) {
190190
const pk = new PublicKey(self.protocol());
191191

192192
// 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)
193+
const rkey = (self.protocol() instanceof V1)
194194
? extcrypto.extract(self.raw())
195195
: Buffer.from(sodium.crypto_sign_ed25519_sk_to_pk(self.raw()));
196196

0 commit comments

Comments
 (0)