Skip to content

Latest commit

 

History

History
78 lines (56 loc) · 1.73 KB

bmr.md

File metadata and controls

78 lines (56 loc) · 1.73 KB

BMR (BTP Message Relay)

Introduction

  • Relay direction setting ( both,front,reverse )
  • Monitor BTP events
  • Send BTP Relay Message
  • Gather proofs for the events

Platform preparation

  • GoLang 1.19

    Mac OSX

    brew install go
    

Source checkout

First of all, you need to check out the source.

git clone https://github.com/icon-project/btp2.git --recurse-submodules

Build

cd ${PROJECT_ROOT}
make relay

Output binaries are placed under bin/ directory.

Docker Image Build

cd ${PROJECT_ROOT}
make relay-image

Relay CLI

Tutorial

Relay start

Create network configuration

${PROJECT_ROOT}/bin/relay save ./config/relay_config.json

Configuration setting

  1. 'relay_config' setting [Relay config]

  2. 'chains_config' setting

Key Description
address BTPAddress ( btp://${Network}/${BMC Address} )
endpoint Network endpoint
key_store Relay keystore
key_password Relay keystore password
type BTP2 contract type

Relay Start

${PROJECT_ROOT}/bin/relay start --config ./config/relay_config.json