web3c.js
web3c.js copied to clipboard
Update use of `Buffer()`
Our tests output the following warning
Key Manager
(node:247) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
e.g., https://circleci.com/gh/oasislabs/web3c.js/309?utm_campaign=vcs-integration-link&utm_medium=referral&utm_source=github-build-link
We should update our use of Buffer to address this warning.
new Buffer() gets used in
crypto/node/siv_ctr.js
test/siv_ctr.js
i think the main reason the old api was nice is for the tests where it can auto-convert base64 data back into a binary typed array.