Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export function generateCurve25519SharedSecKey(priKey: Uint8Array, pubKey: Uint8Array) {
return tweetnacl.scalarMult(priKey, pubKey);
}
exports.scalarMultiplication = function (secretKey, otherPublicKey) {
return Buffer(tweetnacl.scalarMult(secretKey, otherPublicKey))
}