diff --git a/docs/offline.html b/docs/offline.html index 819cf58..781aeda 100644 --- a/docs/offline.html +++ b/docs/offline.html @@ -285,7 +285,7 @@ - + @@ -324,23 +324,23 @@ - + Sign - + - + - + @@ -383,40 +383,6 @@ el: '#app', // --- DATA --- data: { - wallet: { - tab: 0, // 0: 'mnemonic', 1: 'privatekey' - - type: 'mnemonic', // 'mnemonic', 'privatekey' - wallet: null, // HDNode for type 'mnemonic', Wallet for type 'privatekey' - - mnemonic: { - phrase: null, - phraseError: null, - passphrase: null, - path: "m/44'/60'/0'/0/0", // null, - locale: null, - }, - - derivationPath: "m/44'/60'/0'/0/{index}", - page: 0, - pageSize: 10, - - keystoreFile: null, - keystoreFilePassword: null, - keystoreFileContent: null, - - privateKey: null, - privateKeyError: null, - - randomBytesLength: 16, // 12 words - - publicKey: null, - compressedPublicKey: null, - address: null, - - hiddenUsername: null, // For HTML accessibility - }, - newWalletFromMnemonic: { phrase: null, randomBytesLength: 16, // 12 words @@ -787,17 +753,6 @@ const randomBytes = ethers.utils.randomBytes(this.newWalletFromMnemonic.randomBytesLength); this.newWalletFromMnemonic.phrase = ethers.utils.entropyToMnemonic(randomBytes); this.newWalletFromMnemonic.phraseError = null; - - // const randomBytes = ethers.utils.randomBytes(16); - // const phrase = ethers.utils.entropyToMnemonic(randomBytes); - // const node = ethers.utils.HDNode.fromMnemonic(phrase); - // console.log(moment().format("HH:mm:ss") + " newWalletFromMnemonicGenerateRandom - node: " + JSON.stringify(node, null, 2)); - // const defaultPath = "m/44'/60'/0'/0/0"; - // const wallet = node.derivePath(defaultPath); - // this.newWalletFromPrivateKey.privateKey = wallet.privateKey; - // this.newWalletFromPrivateKey.privateKeyError = null; - // this.newWalletFromPrivateKey.address = wallet.address; - // console.log(moment().format("HH:mm:ss") + " newWalletFromMnemonicGenerateRandom - this.newWalletFromPrivateKey: " + JSON.stringify(this.newWalletFromPrivateKey, null, 2)); } catch (e) { console.log(moment().format("HH:mm:ss") + " newWalletFromMnemonicGenerateRandom ERROR: " + e.message); }