Skip to content

iotubeproject/solana-tube

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

70 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The Solana bridge program consists of two parts: the token program and the validator program. The token program manages Solana (native/spl-token) assets on the ioTube bridge. The validator program oversees off-chain witnesses of events on other chains and validates their proof for the actions of the token program (transfer/mint/burn).

Description

Solana-IoTeX bridge, leveraged on the ioTube Bridge architecture, operates on the existing witnesses network with Solana client support. Once two-thirds of witnesses sign the event, a consensus is reached, and the relayer submits the data and signatures to the contract. When bridging assets from Solana to IoTeX, witnesses use the secp256k1 elliptic curve to sign the data, which can be verified in EVM smart contracts; in the opposite direction, the ed25519 elliptic curve is used.

Workflow

whiteboard_exported_image

Getting Started

Dependencies

Building program

  • Token: cd token/ctoken/program/ && cargo build-bpf

  • Validator: cd validator/ && make build

Deploying program

  • Token: cd token/ctoken/ && solana program deploy ./target/deploy/ctoken.so

  • Validator: cd validator/ && make deploy

License

This project is licensed under the Apache License 2.0

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •