Skip to main content

Module cross_chain

Module cross_chain 

Source
Expand description

Cross-Chain Right Transfer

Implements the lock-and-prove protocol for transferring Rights between chains:

  1. Lock — Source chain consumes seal, emits CrossChainLockEvent
  2. Prove — Client generates inclusion proof
  3. Verify — Destination chain verifies proof, checks registry, mints new Right
  4. Registry — Records transfer, prevents cross-chain double-spend

Re-exports§

pub use crate::seal_registry::SealConsumption;
pub use crate::seal_registry::CrossChainSealRegistry;

Structs§

AptosLedgerProof
Aptos ledger info proof of transaction execution.
BitcoinMerkleProof
Bitcoin Merkle proof of transaction inclusion in a block.
CrossChainFinalityProof
Finality proof confirming source transaction is finalized.
CrossChainLockEvent
Event emitted when a Right is locked on the source chain for cross-chain transfer.
CrossChainRegistry
Cross-chain seal registry.
CrossChainRegistryEntry
Entry in the cross-chain seal registry recording a completed transfer.
CrossChainTransfer
Cross-chain transfer orchestrator.
CrossChainTransferProof
Complete proof bundle submitted to the destination chain.
CrossChainTransferResult
Result of a successful cross-chain transfer.
EthereumMPTProof
Ethereum MPT proof of receipt inclusion in state.
SuiCheckpointProof
Sui checkpoint proof of transaction effects certification.

Enums§

ChainId
Chain identifier for cross-chain transfers.
CrossChainError
Errors that can occur during cross-chain transfer.
InclusionProof
Inclusion proof — chain-specific format.

Traits§

LockProvider
Trait for locking a Right on a source chain.
MintProvider
Trait for minting a Right on a destination chain.
TransferVerifier
Trait for verifying cross-chain transfer proofs.