mirror of
https://github.com/scroll-tech/scroll.git
synced 2026-01-12 23:48:15 -05:00
Co-authored-by: colinlyguo <colinlyguo@users.noreply.github.com> Co-authored-by: Xi Lin <zimpha@gmail.com> Co-authored-by: HAOYUatHZ <37070449+HAOYUatHZ@users.noreply.github.com>
Bridge
This repo contains the Scroll bridge.
In addition, launching the bridge will launch a separate instance of l2geth, and sets up a communication channel between the two, over JSON-RPC sockets.
Something we should pay attention is that all private keys inside sender instance cannot be duplicated.
Dependency
- install
abigen
go install -v github.com/scroll-tech/go-ethereum/cmd/abigen
Build
make clean
make bridge
Start
- use default ports and config.json
./build/bin/bridge --http
- use specified ports and config.json
./build/bin/bridge --config ./config.json --http --http.addr localhost --http.port 8290