Skip to content

Instantly share code, notes, and snippets.

@libotony
Last active April 28, 2022 18:56
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save libotony/18a3faa7a185407118d8f250c785c41f to your computer and use it in GitHub Desktop.
Save libotony/18a3faa7a185407118d8f250c785c41f to your computer and use it in GitHub Desktop.
Derive dev accounts of vechain solo node
import { HDNode } from 'thor-devkit'
const words = 'denial kitchen pet squirrel other broom bar gas better priority spoil cross'
const hdNode = HDNode.fromMnemonic(words.split(' '))
for (let i = 0; i < 10; i++){
const priv = hdNode.derive(i).privateKey
console.log('0x'+ priv?.toString('hex'))
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment