byteball / headless-obyte

Headless Obyte wallet
https://developer.obyte.org
MIT License
26 stars 42 forks source link

Fix "Buffer() is deprecated" warning #35

Closed DrSensor closed 5 years ago

DrSensor commented 5 years ago

https://nodejs.org/en/docs/guides/buffer-constructor-deprecation/#what-is-wrong-with-the-buffer-constructor

.
.
db version 21, software version 21
-----------------------
(node:22357) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(),
 or Buffer.from() methods instead.
setDevicePrivateKey
.
.