This version will support Darwinia2<>Crab2 and Dawrinia2<>Ethereum2 bridge.
Darwinia2<>Crab2
Darwinia2<>Crab2 bridge is parachain to parachain bridge.
The first, you should prepare bridge config. named bridge-darwinia-crab.toml to $HOME/.bridger/ path. or you can set environment named BRIDGER_HOME=/path/to/your/bridger
Copy this template config https://github.com/darwinia-network/bridger/blob/master/.maintain/config/bridge-darwinia-crab.toml to your path. and modify darwinia.signer and crab.signer to your private key.
Then you can run flow this command to start bridge.
bridger darwinia-crab start
Darwinia2<>Ethereum2
Copy template config file https://github.com/darwinia-network/bridger/blob/master/.maintain/config/bridge-darwinia-ethereum.toml first.
ECDSA
Enabling enable_ecdsa_relay = true is sufficient if you only need to sign ECDSA messages. Afterwards, you can update darwinia_substrate.private_key and darwinia_evm.private_key with your private key,
ensuring they are the same.
⚠️ darwinia_substrate.private_key must start with 0x
If it's your first time run bridger on your machine, you need to start ECDSA signing service manually, please check this issue: #528 (comment)
# Execute this to begin to play the first role
bridger darwinia-ethereum kv put scan.darwinia.collecting-message.running true
# Execute this to begin to play the second role
bridger darwinia-ethereum kv put scan.darwinia.collecting-authorities.running true
This version will support Darwinia2<>Crab2 and Dawrinia2<>Ethereum2 bridge.
Darwinia2<>Crab2
Darwinia2<>Crab2 bridge is parachain to parachain bridge.
The first, you should prepare bridge config. named
bridge-darwinia-crab.tomlto$HOME/.bridger/path. or you can set environment namedBRIDGER_HOME=/path/to/your/bridgerCopy this template config https://github.com/darwinia-network/bridger/blob/master/.maintain/config/bridge-darwinia-crab.toml to your path. and modify
darwinia.signerandcrab.signerto your private key.Then you can run flow this command to start bridge.
Darwinia2<>Ethereum2
Copy template config file https://github.com/darwinia-network/bridger/blob/master/.maintain/config/bridge-darwinia-ethereum.toml first.
ECDSA
Enabling
enable_ecdsa_relay = trueis sufficient if you only need to sign ECDSA messages. Afterwards, you can updatedarwinia_substrate.private_keyanddarwinia_evm.private_keywith your private key,ensuring they are the same.
darwinia_substrate.private_keymust start with0xIf it's your first time run bridger on your machine, you need to start ECDSA signing service manually, please check this issue: #528 (comment)