We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 026ddb4 + b851765 commit 8658360Copy full SHA for 8658360
1 file changed
docs/examples.md
@@ -9,7 +9,7 @@ var address = privateKey.toAddress();
9
10
## Generate a address from a SHA256 hash
11
```javascript
12
-var value = new Buffer('correct horse battery staple');
+var value = Buffer.from('correct horse battery staple');
13
var hash = bitcore.crypto.Hash.sha256(value);
14
var bn = bitcore.crypto.BN.fromBuffer(hash);
15
0 commit comments