Skip to content

Commit

Permalink
fix: Mixup with pk and sk
Browse files Browse the repository at this point in the history
  • Loading branch information
simonas-notcat committed Feb 18, 2020
1 parent 6e17fde commit e9b912f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,9 @@ export class KeyManagementSystem extends AbstractKeyManagementSystem {
const keyPairEd25519 = (await sodium.crypto_sign_keypair()) as any
serializedKey = {
type,
kid: Buffer.from(keyPairEd25519.sk, 'base64').toString('hex'),
kid: Buffer.from(keyPairEd25519.pk, 'base64').toString('hex'),
publicKeyHex: Buffer.from(keyPairEd25519.pk, 'base64').toString('hex'),
privateKeyHex: Buffer.from(keyPairEd25519.pk, 'base64').toString('hex'),
privateKeyHex: Buffer.from(keyPairEd25519.sk, 'base64').toString('hex'),
}
break
case 'Secp256k1':
Expand Down

0 comments on commit e9b912f

Please sign in to comment.