add warning for generating addresses from sha256 hash example
This commit is contained in:
parent
f165345451
commit
b177050069
2 changed files with 4610 additions and 1 deletions
4608
package-lock.json
generated
Normal file
4608
package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load diff
|
@ -22,7 +22,8 @@ describe('bitcoinjs-lib (addresses)', function () {
|
|||
|
||||
var keyPair = new bitcoin.ECPair(d)
|
||||
var address = keyPair.getAddress()
|
||||
|
||||
// Generating addresses from SHA256 hashes is not secure if the input to the hash function is predictable
|
||||
// Do not use with predictable inputs
|
||||
assert.strictEqual(address, '1C7zdTfnkzmr13HfA2vNm5SJYRK6nEKyq8')
|
||||
})
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue