Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
sign: function (privateKey, message) {
return sodium.crypto_sign_detached(message, privateKey)
},
async sign({data}) {
return chloride.crypto_sign_detached(
Buffer.from(data.buffer, data.byteOffset, data.length),
privateKey);
}
};