From 90b869b6a1677b132dfbe070e80471b0add698fd Mon Sep 17 00:00:00 2001 From: Michael Vines Date: Tue, 2 Oct 2018 21:01:58 -0700 Subject: [PATCH] fix: avoid Buffer(), use Buffer.alloc() instead --- src/publickey.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/publickey.js b/src/publickey.js index 27f50ce69b86..a37b3560f1df 100644 --- a/src/publickey.js +++ b/src/publickey.js @@ -68,7 +68,7 @@ export class PublicKey { return b; } - const zeroPad = new Buffer(32); + const zeroPad = Buffer.alloc(32); b.copy(zeroPad); return zeroPad; }