dchest / ed2curve-js

Convert Ed25519 signing keys into Curve25519 Diffie-Hellman keys

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Missing nonce in example?

VogtAI opened this issue · comments

Hey,

it seems to me that the nonce is missing in this line:

var encryptedMessage = nacl.box(anotherMessage, theirDHPublicKey, myDHSecretKey);

should be

var encryptedMessage = nacl.box(anotherMessage, nonce, theirDHPublicKey, myDHSecretKey);

Thanks, fixed.