From 11e47ad38ae1bf84389e99bd346c8e1986e61b1e Mon Sep 17 00:00:00 2001 From: Edmund Edgar Date: Thu, 13 Jun 2024 06:32:59 +0000 Subject: [PATCH] delete export pk script, we probably won't need it again --- src/scripts/exportPK.js | 16 ---------------- 1 file changed, 16 deletions(-) delete mode 100644 src/scripts/exportPK.js diff --git a/src/scripts/exportPK.js b/src/scripts/exportPK.js deleted file mode 100644 index a942703..0000000 --- a/src/scripts/exportPK.js +++ /dev/null @@ -1,16 +0,0 @@ -/* eslint-disable no-console */ - -const keythereum = require('keythereum'); - -/* - * Specify a data directory (optional; defaults to ~/.ethereum) - * const datadir = '/home/ubuntu/zkevm/zkevm-config'; - * const file = datadir + '/' + 'aggregator.keystore'; - */ - -const addr = '0x5669c63e3b461cf50696ad0378fe2e66b982d4a7'; -// Synchronous -const keyObject = keythereum.importFromFile(addr); - -const privateKey = keythereum.recover('password', keyObject); -console.log(privateKey.toString('hex'));