Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

github.com/icon-project/btp2

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/icon-project/btp2

  • v1.0.9
  • Source
  • Go
  • Socket score

Version published
Created
Source

Relay System for BTP 2.0

Introduction

This is a reference relay implementation for BTP 2.0 protocol.

Target chains

  • ICON (BTP Block)
  • Hardhat (EVM-compatible chain)

Terminologies

WordDescription
BTPBlockchain Transmission Protocol, see ICON BTP Standard.
BTP MessageA verified message which is delivered by the relay
Service MessageA payload in a BTP Message
Relay MessageA message including BTP Messages with proofs for that, and other block update messages.
Network AddressA string to identify blockchain network
ex) 0x1.icon
BTP AddressA string of URL for locating an account of the blockchain network
ex) btp://0x1.icon/cx87ed9048b594b95199f326fc76e76a9d33dd665b

Components

  • BTP Message Center (BMC) - smart contract

    • Receive BTP messages through transactions.
    • Send BTP messages through events.
  • BTP Message Verifier (BMV) - smart contract

    • Update blockchain verification information
    • Verify delivered BTP message and decode it
  • BTP Service Handler (BSH) - smart contract

    • Handle service messages related to the service.
    • Send service messages through the BMC
  • BTP Message Relay (BMR) - external software (implemented by this repository)

    • Monitor BTP events
    • Gather proofs for the events
    • Send BTP Relay Message

Getting Started

  1. git clone https://github.com/icon-project/btp2.git --recurse-submodules
  2. cd btp2
  3. make relay

E2E Testing Demo

Repository Structure

repository structure

References

FAQs

Package last updated on 04 Jul 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc