This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var bitcore = require('bitcore'); | |
| var password = 'an example of an insecure password'; | |
| var privateKey = bitcore.util.sha256(password); | |
| var key = new bitcore.Key(); | |
| key.private = privateKey; | |
| key.regenerateSync(); | |
| var addr = new bitcore.Address.fromKey(key); |