Skip to content

Instantly share code, notes, and snippets.

Avatar
🦊

Shengchao s749312025

🦊
View GitHub Profile
@s749312025
s749312025 / getWalletForMnemonic.js
Created April 5, 2023 02:44
get wallet for mnemonic
View getWalletForMnemonic.js
var ethers = require('ethers')
var mnemonic = "........."
var wallet = ethers.HDNodeWallet.fromPhrase(mnemonic)
console.log({wallet});
console.log(wallet.privateKey);
@s749312025
s749312025 / 彩蛋.js
Last active January 29, 2021 10:25
页面彩蛋
View 彩蛋.js
function egg(arr, callback) {
this.sequence = arr.join(',')
this.length = arr.length
this.pressed = []
this.callback = callback
this.init()
}
egg.prototype = {
constructor: egg,