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 6a53cb79aea968226d90fdcddeda2e6682666fc9
parent 2282b8983d531c9b7ced8a80f7e1a993b37886e1
Author: finwo <finwo@pm.me>
Date:   Mon, 10 Aug 2020 11:35:16 +0200

Fixed test

Diffstat:
Mtest.js | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/test.js b/test.js @@ -122,8 +122,8 @@ test('Key Exchange',async t => { const Bob = await lib.createKeyPair(BobSeed); const Charlie = await lib.createKeyPair(CharlieSeed); - const AliceBobSecret = await lib.key_exchange(Alice.publicKey, Bob.secretKey); - const BobAliceSecret = await lib.key_exchange(Bob.publicKey, Alice.secretKey); + const AliceBobSecret = await lib.keyExchange(Alice.publicKey, Bob.secretKey); + const BobAliceSecret = await lib.keyExchange(Bob.publicKey, Alice.secretKey); t.ok(AliceBobSecret.equals(BobAliceSecret), 'Alice and Bob generate the same shared secret'); });