Last active
April 28, 2022 18:56
-
-
Save libotony/18a3faa7a185407118d8f250c785c41f to your computer and use it in GitHub Desktop.
Derive dev accounts of vechain solo node
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
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