This project is used to initialized the scroll/go-ethereum quickly.
# Linux typically has wget installed
wget -q -O - https://git.io/vQhTU | bash
# macOS typically has curl installed
curl -L https://git.io/vQhTU | bash
or
wget -q -O - https://raw.githubusercontent.com/canha/golang-tools-install-script/master/goinstall.sh | bash
# or...
curl https://raw.githubusercontent.com/canha/golang-tools-install-script/master/goinstall.sh | bash
git clone https://github.com/bradyjoestar/scroll-geth-init.git
cd scroll-geth-init
git clone https://github.com/bradyjoestar/go-ethereum.git
cd go-ethereum
make all
# rm -rf /usr/bin/geth
cp -r build/bin/geth /usr/bin/geth_zkscroll
# for mac
# cp -r build/bin/geth /opt/homebrew/bin/geth_zkscroll
cd ..
geth_zkscroll init genesis.json
export BLOCK_SIGNER_KEY=6587ae678cf4fc9a33000cdbf9f35226b71dcc6a4684a31203241f9bcfd55d27
export BLOCK_SIGNER_ADDRESS=0x00000398232E2064F896018496b4b44b3D62751F
echo "Importing private key"
echo $BLOCK_SIGNER_KEY > key.prv
echo "pwd" > password
geth_zkscroll account import --password ./password ./key.prv
geth_zkscroll \
--verbosity=6 \
--password ./password \
--allow-insecure-unlock \
--unlock $BLOCK_SIGNER_ADDRESS \
--mine \
--miner.etherbase $BLOCK_SIGNER_ADDRESS \
--no-discover
geth_zkscroll \
--verbosity=6 \
--password ./password \
--allow-insecure-unlock \
--unlock $BLOCK_SIGNER_ADDRESS \
--mine \
--miner.etherbase $BLOCK_SIGNER_ADDRESS \
--nodiscover --http --http.addr 0.0.0.0