diff --git a/docs/examples.md b/docs/examples.md index 962736f42..82f47744e 100644 --- a/docs/examples.md +++ b/docs/examples.md @@ -9,7 +9,7 @@ var address = privateKey.toAddress(); ## Generate a address from a SHA256 hash ```javascript -var value = new Buffer('correct horse battery staple'); +var value = Buffer.from('correct horse battery staple'); var hash = bitcore.crypto.Hash.sha256(value); var bn = bitcore.crypto.BN.fromBuffer(hash);