darwinia-network / bridger

Relayer client implementation for Darwinia LCMP protocols.
https://rust-docs.darwinia.network/bridger
GNU General Public License v3.0
11 stars 10 forks source link

Upgrade guide for release v0.8.0 #581

Open fewensa opened 1 year ago

fewensa commented 1 year ago

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: https://github.com/darwinia-network/bridger/issues/528#issuecomment-1261839790

# 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