atomic wallet get eth private key / address by mnemonic seed
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
// fuck you atomic. why can't you just be fucking normal? | |
// east home innocent snake icon curtain series brave guard program history stand | |
// BIP39 seed: | |
var seed = new Uint8Array([70, 78, 5, 155, 232, 171, 38, 78, 191, 56, 142, 102, 122, 20, 65, 239, 127, 215, 39, 174, 28, 222, 17, 150, 102, 129, 182, 172, 246, 80, 15, 19, 79, 248, 113, 244, 95, 101, 33, 96, 203, 181, 243, 63, 23, 9, 71, 102, 37, 216, 196, 6, 77, 209, 18, 2, 107, 12, 239, 38, 249, 29, 107, 249]); | |
var s = require('ethereum-cryptography/pure/hdkey').HDKey; | |
var t = require('ethereumjs-wallet'); | |
var w = s.fromMasterSeed(seed); | |
var r = new t.hdkey; | |
r._hdkey = w; | |
console.log(r.getWallet().getAddressString()); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment