Created
September 4, 2015 01:18
-
-
Save Anderson-Juhasc/f35f7942dbe8fda8b3c0 to your computer and use it in GitHub Desktop.
This file contains 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 Address = Bitcore.Address; | |
var HDPrivateKey = Bitcore.HDPrivateKey; | |
var hdPrivateKey = new HDPrivateKey.fromSeed("bf8e06fd8c0dafbc831933422895ad68c0874439e177f136f8f756b360de94f8"); | |
var hdPublicKey = hdPrivateKey.hdPublicKey; | |
var address = new Address(hdPublicKey.derive( Math.floor(Date.now() / 1000) ).publicKey); | |
var derivedAddress = new Address(hdPublicKey.derive( Math.floor(Date.now() / 1000) ).publicKey); | |
console.log(address); | |
console.log(derivedAddress); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment