Skip to content

Commit

Permalink
fix: Await crypto_sign_keypair
Browse files Browse the repository at this point in the history
  • Loading branch information
simonas-notcat committed Feb 18, 2020
1 parent 4f37de0 commit c97ba6b
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -60,7 +60,7 @@ export class KeyManagementSystem extends AbstractKeyManagementSystem {
switch (type) {
case 'Ed25519':
await sodium.ready
const keyPairEd25519 = sodium.crypto_sign_keypair()
const keyPairEd25519 = await sodium.crypto_sign_keypair()
serializedKey = {
type,
kid: Buffer.from(keyPairEd25519.publicKey).toString('hex'),
Expand Down

0 comments on commit c97ba6b

Please sign in to comment.