supercop.ts

cross-compiled javascript implementation of ed25519 based on supercop-ref10
git clone git://git.finwo.net/lib/supercop.ts
Log | Files | Refs | README | LICENSE

commit 2861000d41daf603a6dffc9900a533ae3e44334e
parent dad22f28305784cc0a21e69505a2a19d8fbbaf27
Author: finwo <finwo@pm.me>
Date:   Fri,  9 Jun 2023 22:17:42 +0200

Fix missing await in readme

Diffstat:
MREADME.md | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/README.md b/README.md @@ -10,9 +10,9 @@ For when you don't want to dig through the whole API reference import { createSeed, KeyPair } from 'supercop'; // Create keypairs, usable for keyExchange, signing and verifying -const alice = KeyPair.create(createSeed()); -const bob = KeyPair.create(createSeed()); -const charlie = KeyPair.from(JSON.parse(fs.readFileSync('path-to-file.json'))); +const alice = await KeyPair.create(createSeed()); +const bob = await KeyPair.create(createSeed()); +const charlie = await KeyPair.from(JSON.parse(fs.readFileSync('path-to-file.json'))); // Save bob's key, will become charlie's key in the next run fs.writeFileSync('path-to-file.json', JSON.stringify(bob));