This file contains hidden or 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 ethers = require('ethers') | |
| var mnemonic = "........." | |
| var wallet = ethers.HDNodeWallet.fromPhrase(mnemonic) | |
| console.log({wallet}); | |
| console.log(wallet.privateKey); |
This file contains hidden or 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
| function egg(arr, callback) { | |
| this.sequence = arr.join(',') | |
| this.length = arr.length | |
| this.pressed = [] | |
| this.callback = callback | |
| this.init() | |
| } | |
| egg.prototype = { | |
| constructor: egg, |