Closed iocmet closed 1 year ago
fixed now
UnhandledPromiseRejectionWarning: TypeError: unsupported input type for key
The error looks self explanatory 😀
Your application supplied an incorrect nonce size.
what a nonce
i am trying to encode opus packets via libsodium and i get the secret key from discord voice gateway
but now i get this error: unsupported input type for key
const sodium = require('libsodium-wrappers') sodium.crypto_secretbox_easy(opuspacket, b, skey)
TypeError: sodium.crypto_secretbox_easy is not a function