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).
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.
-
Token:
cd token/ctoken/program/ && cargo build-bpf
-
Validator:
cd validator/ && make build
-
Token:
cd token/ctoken/ && solana program deploy ./target/deploy/ctoken.so
-
Validator:
cd validator/ && make deploy
This project is licensed under the Apache License 2.0