Skip to content

Instantly share code, notes, and snippets.

@sh4dowb
Created May 30, 2021 20:03
Show Gist options
  • Save sh4dowb/3ffe9d9df69f9a7a8f2c4898ba90c103 to your computer and use it in GitHub Desktop.
Save sh4dowb/3ffe9d9df69f9a7a8f2c4898ba90c103 to your computer and use it in GitHub Desktop.
atomic wallet get eth private key / address by mnemonic seed
// 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