Run NodesReferencevms

chainadapter

Package chainadapter provides adapters for verifying data from external blockchains.

import "github.com/luxfi/node/vms/chainadapter"

Package chainadapter provides adapters for verifying data from external blockchains. This enables the RelayVM and OracleVM to verify cross-chain messages and oracle feeds from major blockchains including Bitcoin, Ethereum, Solana, Cosmos, and others.

Package chainadapter provides AppChain support for fheCRDT-based distributed applications. AppChains are user-centric distributed SQL databases with privacy-preserving CRDTs, similar to Firestore but for Web3 with end-to-end encryption and verifiable compute.

Package chainadapter provides fheCRDT support for privacy-preserving app chains. fheCRDT combines Fully Homomorphic Encryption with Conflict-free Replicated Data Types to enable Firestore-like distributed SQL with end-to-end encryption and verifiable compute.

Functions

AllChainConfigs

func AllChainConfigs() map[ChainID]*ChainConfig

AllChainConfigs returns configurations for all 200+ supported chains with proper EVM chain IDs where applicable

ChainName

func ChainName(id ChainID) string

ChainName returns the name for a chain ID

DefaultChainConfigs

func DefaultChainConfigs() map[ChainID]*ChainConfig

DefaultChainConfigs returns default configurations for major chains

GetAddressPrefix

func GetAddressPrefix(chainID ChainID, chainType ChainType) string

GetAddressPrefix returns the expected address prefix for a chain

GetAllEnrichedConfigs

func GetAllEnrichedConfigs() map[ChainID]*ChainConfig

GetAllEnrichedConfigs returns all chain configs with ChainType and MPC fields populated

GetChainsByCategory

func GetChainsByCategory() map[ChainType][]*ChainConfig

GetChainsByCategory returns chains grouped by their ChainType

GetEVMChainID

func GetEVMChainID(chainID ChainID) (uint64, bool)

GetEVMChainID returns the EVM chain ID for a given internal chain ID

GetMPCCurve

func GetMPCCurve(chainType ChainType) string

GetMPCCurve returns the MPC signing curve for a chain

InitializeDefaultAdapters

func InitializeDefaultAdapters(registry *Registry) error

InitializeDefaultAdapters initializes adapters for all supported chains

NewFHECRDTEngine

func NewFHECRDTEngine(config *AppChainConfig, encryptor Encryptor, daClient DAClient, materializer StateMaterializer) *fheCRDTEngine

NewFHECRDTEngine creates a new fheCRDT engine

SetDefaultChainTaxonomy

func SetDefaultChainTaxonomy(r ChainTaxonomy)

SetDefaultChainTaxonomy replaces the process-wide taxonomy. Intended for tests and operators that want to inject a custom set; passing nil resets to the lazy default.

Types

AddressFormat

AddressFormat describes how addresses are formatted on this chain

func InferAddressFormat(chainID ChainID, chainType ChainType) AddressFormat

AlgorandAdapter

func NewAlgorandAdapter() *AlgorandAdapter
func (a *AlgorandAdapter) ChainID() ChainID
func (a *AlgorandAdapter) ChainName() string
func (a *AlgorandAdapter) Close() error
func (a *AlgorandAdapter) GetBlockTime() time.Duration
func (a *AlgorandAdapter) GetLatestFinalizedBlock(ctx context.Context) (uint64, error)
func (a *AlgorandAdapter) GetRequiredConfirmations() uint64
func (a *AlgorandAdapter) GetValidatorSet(ctx context.Context) (*ValidatorSet, error)
func (a *AlgorandAdapter) Initialize(config *ChainConfig) error
func (a *AlgorandAdapter) IsFinalized(ctx context.Context, round uint64) (bool, error)
func (a *AlgorandAdapter) VerificationMode() VerificationMode
func (a *AlgorandAdapter) VerifyBlockHeader(ctx context.Context, header *BlockHeader) error
func (a *AlgorandAdapter) VerifyEvent(ctx context.Context, event *ChainEvent) error
func (a *AlgorandAdapter) VerifyMessage(ctx context.Context, msg *CrossChainMessage) error
func (a *AlgorandAdapter) VerifyTransaction(ctx context.Context, proof *TxInclusionProof) error

AlgorandBlock

AppChain

AppChain represents a user-centric distributed SQL database

func NewAppChain(config *AppChainConfig, dbPath string, daClient DAClient) (*AppChain, error)
func (a *AppChain) Close() error
func (a *AppChain) ComputeStateRoot() [32]byte
func (a *AppChain) CreateCollection(ctx context.Context, schema *CollectionSchema) error
func (a *AppChain) CreateDocument(ctx context.Context, collection, docID string, domain EncryptionDomain, data []byte) (*Document, error)
func (a *AppChain) GetDocument(ctx context.Context, collection, docID string) (*Document, error)
func (a *AppChain) Query(ctx context.Context, sql string, params ...interface{}) ([]map[string]interface{}, error)
func (a *AppChain) Sync(ctx context.Context) error

AppChainAdapter

AppChainAdapter implements ChainAdapter for AppChains

func NewAppChainAdapter(appChain *AppChain) *AppChainAdapter
func (a *AppChainAdapter) ChainID() ChainID
func (a *AppChainAdapter) ChainName() string
func (a *AppChainAdapter) Close() error
func (a *AppChainAdapter) GetBlockTime() time.Duration
func (a *AppChainAdapter) GetLatestFinalizedBlock(ctx context.Context) (uint64, error)
func (a *AppChainAdapter) GetRequiredConfirmations() uint64
func (a *AppChainAdapter) GetValidatorSet(ctx context.Context) (*ValidatorSet, error)
func (a *AppChainAdapter) Initialize(config *ChainConfig) error
func (a *AppChainAdapter) IsFinalized(ctx context.Context, blockNumber uint64) (bool, error)
func (a *AppChainAdapter) VerificationMode() VerificationMode
func (a *AppChainAdapter) VerifyBlockHeader(ctx context.Context, header *BlockHeader) error
func (a *AppChainAdapter) VerifyEvent(ctx context.Context, event *ChainEvent) error
func (a *AppChainAdapter) VerifyMessage(ctx context.Context, msg *CrossChainMessage) error
func (a *AppChainAdapter) VerifyTransaction(ctx context.Context, proof *TxInclusionProof) error

AppChainConfig

AppChainConfig configures an fheCRDT app chain

AppChainDALayer

AppChainDALayer wraps DA client with AppChain-specific functionality

func NewAppChainDALayer(appChainID ids.ID, config *DAConfig) *AppChainDALayer
func (l *AppChainDALayer) GetReceipt(ctx context.Context, pointer *DAPointer) (*DAReceipt, error)
func (l *AppChainDALayer) RetrieveOpBatch(ctx context.Context, pointer *DAPointer) (*OpBatch, error)
func (l *AppChainDALayer) StoreOpBatch(ctx context.Context, batch *OpBatch) (*DAPointer, error)
func (l *AppChainDALayer) StoreSnapshot(ctx context.Context, snapshot *StateSnapshot) (*DAPointer, error)

AppChainState

AppChainState represents the current state of an app chain

AptosAdapter

func NewAptosAdapter() *AptosAdapter
func (a *AptosAdapter) ChainID() ChainID
func (a *AptosAdapter) ChainName() string
func (a *AptosAdapter) Close() error
func (a *AptosAdapter) GetBlockTime() time.Duration
func (a *AptosAdapter) GetLatestFinalizedBlock(ctx context.Context) (uint64, error)
func (a *AptosAdapter) GetRequiredConfirmations() uint64
func (a *AptosAdapter) GetValidatorSet(ctx context.Context) (*ValidatorSet, error)
func (a *AptosAdapter) Initialize(config *ChainConfig) error
func (a *AptosAdapter) IsFinalized(ctx context.Context, block uint64) (bool, error)
func (a *AptosAdapter) VerificationMode() VerificationMode
func (a *AptosAdapter) VerifyBlockHeader(ctx context.Context, header *BlockHeader) error
func (a *AptosAdapter) VerifyEvent(ctx context.Context, event *ChainEvent) error
func (a *AptosAdapter) VerifyMessage(ctx context.Context, msg *CrossChainMessage) error
func (a *AptosAdapter) VerifyTransaction(ctx context.Context, proof *TxInclusionProof) error

AptosBlock

AptosValidator

AssetRegistry

AssetRegistry tracks bridgeable assets across chains

func NewAssetRegistry() *AssetRegistry
func (r *AssetRegistry) GetAsset(assetID ids.ID) (*CrossChainAsset, bool)
func (r *AssetRegistry) GetAssetsByChain(chainID ChainID) []*CrossChainAsset
func (r *AssetRegistry) GetWrappedAddress(assetID ids.ID, chainID ChainID) ([]byte, error)
func (r *AssetRegistry) RegisterAsset(asset *CrossChainAsset)

BSCAdapter

func NewBSCAdapter() *BSCAdapter
func (a *BSCAdapter) ChainID() ChainID
func (a *BSCAdapter) ChainName() string
func (a *BSCAdapter) Close() error
func (a *BSCAdapter) GetBlockTime() time.Duration
func (a *BSCAdapter) GetLatestFinalizedBlock(ctx context.Context) (uint64, error)
func (a *BSCAdapter) GetRequiredConfirmations() uint64
func (a *BSCAdapter) GetValidatorSet(ctx context.Context) (*ValidatorSet, error)
func (a *BSCAdapter) Initialize(config *ChainConfig) error
func (a *BSCAdapter) IsFinalized(ctx context.Context, block uint64) (bool, error)
func (a *BSCAdapter) VerificationMode() VerificationMode
func (a *BSCAdapter) VerifyBlockHeader(ctx context.Context, header *BlockHeader) error
func (a *BSCAdapter) VerifyEvent(ctx context.Context, event *ChainEvent) error
func (a *BSCAdapter) VerifyMessage(ctx context.Context, msg *CrossChainMessage) error
func (a *BSCAdapter) VerifyTransaction(ctx context.Context, proof *TxInclusionProof) error

BitcoinAdapter

BitcoinAdapter implements SPV verification for Bitcoin

func NewBitcoinAdapter() *BitcoinAdapter
func (a *BitcoinAdapter) ChainID() ChainID
func (a *BitcoinAdapter) ChainName() string
func (a *BitcoinAdapter) Close() error
func (a *BitcoinAdapter) GetBlockTime() time.Duration
func (a *BitcoinAdapter) GetLatestFinalizedBlock(ctx context.Context) (uint64, error)
func (a *BitcoinAdapter) GetRequiredConfirmations() uint64
func (a *BitcoinAdapter) GetValidatorSet(ctx context.Context) (*ValidatorSet, error)
func (a *BitcoinAdapter) Initialize(config *ChainConfig) error
func (a *BitcoinAdapter) IsFinalized(ctx context.Context, blockNumber uint64) (bool, error)
func (a *BitcoinAdapter) VerificationMode() VerificationMode
func (a *BitcoinAdapter) VerifyBlockHeader(ctx context.Context, header *BlockHeader) error
func (a *BitcoinAdapter) VerifyEvent(ctx context.Context, event *ChainEvent) error
func (a *BitcoinAdapter) VerifyMessage(ctx context.Context, msg *CrossChainMessage) error
func (a *BitcoinAdapter) VerifyTransaction(ctx context.Context, proof *TxInclusionProof) error

BitcoinCheckpoint

BitcoinCheckpoint represents a known checkpoint

BitcoinForkAdapter

func NewBitcoinForkAdapter(chainID ChainID, name string, blockTime time.Duration, confs uint64) *BitcoinForkAdapter
func (a *BitcoinForkAdapter) ChainID() ChainID
func (a *BitcoinForkAdapter) ChainName() string
func (a *BitcoinForkAdapter) Close() error
func (a *BitcoinForkAdapter) GetBlockTime() time.Duration
func (a *BitcoinForkAdapter) GetLatestFinalizedBlock(ctx context.Context) (uint64, error)
func (a *BitcoinForkAdapter) GetRequiredConfirmations() uint64
func (a *BitcoinForkAdapter) GetValidatorSet(ctx context.Context) (*ValidatorSet, error)
func (a *BitcoinForkAdapter) Initialize(config *ChainConfig) error
func (a *BitcoinForkAdapter) IsFinalized(ctx context.Context, block uint64) (bool, error)
func (a *BitcoinForkAdapter) VerificationMode() VerificationMode
func (a *BitcoinForkAdapter) VerifyBlockHeader(ctx context.Context, header *BlockHeader) error
func (a *BitcoinForkAdapter) VerifyEvent(ctx context.Context, event *ChainEvent) error
func (a *BitcoinForkAdapter) VerifyMessage(ctx context.Context, msg *CrossChainMessage) error
func (a *BitcoinForkAdapter) VerifyTransaction(ctx context.Context, proof *TxInclusionProof) error

BitcoinHeader

BitcoinHeader represents a Bitcoin block header (80 bytes)

Blob

Blob represents data stored in the DA layer

func (b *Blob) ComputeCommitment() [32]byte

BlockHeader

BlockHeader represents a block header from any chain

BridgeAdapter

BridgeAdapter provides cross-chain bridge functionality using chain adapters

func NewBridgeAdapter(registry *ChainRegistry, wallet MPCWallet) *BridgeAdapter
func (b *BridgeAdapter) ConfirmDelivery(ctx context.Context, reqID ids.ID, destTxHash [32]byte, destBlock uint64) error
func (b *BridgeAdapter) GetAdapter(chainID ChainID) (ChainAdapter, bool)
func (b *BridgeAdapter) GetBridgeRequest(reqID ids.ID) (*BridgeRequest, error)
func (b *BridgeAdapter) GetMetrics() *BridgeMetrics
func (b *BridgeAdapter) GetPendingTransfers() []*BridgeRequest
func (b *BridgeAdapter) GetSupportedRoutes() []*BridgeRoute
func (b *BridgeAdapter) GetTransfersForChain(chainID ChainID, isSource bool) []*BridgeRequest
func (b *BridgeAdapter) InitiateBridge(ctx context.Context, req *BridgeRequest) error
func (b *BridgeAdapter) RegisterAdapter(adapter ChainAdapter) error
func (b *BridgeAdapter) SignBridgeRequest(ctx context.Context, reqID ids.ID) error
func (b *BridgeAdapter) VerifySourceTransaction(ctx context.Context, reqID ids.ID) error

BridgeMetrics

BridgeMetrics contains metrics for the bridge adapter

BridgeRequest

BridgeRequest represents a cross-chain bridge request

func (r *BridgeRequest) Hash() [32]byte

BridgeRoute

BridgeRoute represents a supported bridge route between two chains

BridgeStatus

BridgeStatus represents the status of a bridge transfer

func (s BridgeStatus) String() string

BridgeTransfer

BridgeTransfer represents a cross-chain bridge transfer

BridgeWalletAdapter

BridgeWalletAdapter adapts MPCWallet for bridge operations

func NewBridgeWalletAdapter(wallet MPCWallet, registry *ChainRegistry) *BridgeWalletAdapter
func (b *BridgeWalletAdapter) GetBridgeAddress(chainID ChainID) (string, error)
func (b *BridgeWalletAdapter) SignBridgeTransfer(ctx context.Context, transfer *BridgeTransfer) (*SignedBridgeTransfer, error)

CRDTOpType

CRDTOpType defines the operation type within a CRDT

CRDTType

CRDTType defines the type of CRDT operation

CapabilityManager

CapabilityManager manages encryption capabilities

func NewCapabilityManager() *CapabilityManager
func (m *CapabilityManager) Check(partyID []byte, domain EncryptionDomain) bool
func (m *CapabilityManager) Delegate(fromParty, toParty []byte, domains []EncryptionDomain) error
func (m *CapabilityManager) Grant(cap *EncryptionCapability)
func (m *CapabilityManager) Revoke(partyID []byte)

CardanoAdapter

func NewCardanoAdapter() *CardanoAdapter
func (a *CardanoAdapter) ChainID() ChainID
func (a *CardanoAdapter) ChainName() string
func (a *CardanoAdapter) Close() error
func (a *CardanoAdapter) GetBlockTime() time.Duration
func (a *CardanoAdapter) GetLatestFinalizedBlock(ctx context.Context) (uint64, error)
func (a *CardanoAdapter) GetRequiredConfirmations() uint64
func (a *CardanoAdapter) GetValidatorSet(ctx context.Context) (*ValidatorSet, error)
func (a *CardanoAdapter) Initialize(config *ChainConfig) error
func (a *CardanoAdapter) IsFinalized(ctx context.Context, slot uint64) (bool, error)
func (a *CardanoAdapter) VerificationMode() VerificationMode
func (a *CardanoAdapter) VerifyBlockHeader(ctx context.Context, header *BlockHeader) error
func (a *CardanoAdapter) VerifyEvent(ctx context.Context, event *ChainEvent) error
func (a *CardanoAdapter) VerifyMessage(ctx context.Context, msg *CrossChainMessage) error
func (a *CardanoAdapter) VerifyTransaction(ctx context.Context, proof *TxInclusionProof) error

CardanoBlock

CardanoPool

Chain

Chain is one row of the supported-chain registry. Pure data plus an optional per-row adapter factory. Mirrors the precompile/bridge shape so a chain becomes one row in the seed rather than a brand-keyed const token in source.

Constructor is the data-driven dispatch seam that replaces the brand-keyed switch in NewExtendedAdapter: each row carries its own factory closure, so adding a chain with adapter support is one row edit, not a switch edit. Rows with nil Constructor have no adapter implementation in this package today; lookup returns nil cleanly.

func DefaultChainSeed() []Chain

ChainAdapter

ChainAdapter is the interface that all chain adapters must implement

func NewAdapter(chainID ChainID) (ChainAdapter, error)
func NewExtendedAdapter(chainID ChainID) (ChainAdapter, error)

ChainCategory

ChainCategory groups chains by their use case

func GetChainCategory(chainID ChainID) ChainCategory

ChainConfig

ChainConfig contains configuration for a chain adapter

func EnrichChainConfig(config *ChainConfig) *ChainConfig
func GetEVMCompatibleChains() []*ChainConfig
func GetEnrichedChainConfig(chainID ChainID) *ChainConfig
func GetNativePrimaryNetworks() []*ChainConfig

ChainEvent

ChainEvent represents an event/log from a chain

ChainID

ChainID represents a unique blockchain identifier. Values are taxonomic (1=Bitcoin family root, 2=Ethereum, ...) and stable; they are NOT EIP-155 chain IDs. The canonical id<->name binding lives in DefaultChainSeed.

func GetAllSupportedChains() []ChainID
func GetChainByEVMID(evmChainID uint64) (ChainID, bool)

ChainKeySet

ChainKeySet holds keys for a specific chain

ChainMetrics

ChainMetrics contains metrics for a chain adapter

ChainRegistry

ChainRegistry manages chain configurations

func NewChainRegistry() *ChainRegistry
func (r *ChainRegistry) GetAllConfigs() []*ChainConfig
func (r *ChainRegistry) GetChainsByType(chainType ChainType) []*ChainConfig
func (r *ChainRegistry) GetConfig(chainID ChainID) *ChainConfig
func (r *ChainRegistry) GetEVMChains() []*ChainConfig
func (r *ChainRegistry) GetNativeChains() []*ChainConfig
func (r *ChainRegistry) Register(config *ChainConfig)

ChainTaxonomy

ChainTaxonomy resolves chains by id or canonical name and enumerates the supported set. Distinct from the adapter Registry (which holds live adapter instances) and from ChainRegistry (which holds *ChainConfig values); this is the static taxonomy of supported chain rows backing the package's internal id<->name mapping.

func DefaultChainTaxonomy() ChainTaxonomy
func NewStaticChainTaxonomy(chains []Chain) ChainTaxonomy

ChainType

ChainType categorizes chains by their fundamental architecture

func InferChainType(chainID ChainID) ChainType
func (ct ChainType) String() string

CollectionSchema

CollectionSchema defines the schema for a collection

CommitmentScheme

CommitmentScheme defines the commitment scheme used

CommitteeCert

CommitteeCert represents threshold endorsement from a compute committee

func (c *CommitteeCert) Verify(committee *ComputeCommittee) error

ComputeAnchor

ComputeAnchor anchors compute result to chain

func (a *ComputeAnchor) Hash() [32]byte

ComputeCommittee

ComputeCommittee is a group that collectively attests to computation

ComputeMode

ComputeMode defines how confidential compute is performed

ComputeProof

ComputeProof represents a ZK proof of correct computation

func (p *ComputeProof) Verify() error

ComputeRequest

ComputeRequest represents a request for confidential computation

ComputeResult

ComputeResult represents the result of confidential computation

ComputeSession

ComputeSession tracks an active computation

ComputeStatus

ComputeStatus represents the status of a compute request

ConfidentialComputeEngine

ConfidentialComputeEngine handles confidential computation

func NewConfidentialComputeEngine(teeType TEEType) *ConfidentialComputeEngine
func (e *ConfidentialComputeEngine) Execute(ctx context.Context, reqID ids.ID) (*ComputeResult, error)
func (e *ConfidentialComputeEngine) GetResult(reqID ids.ID) (*ComputeResult, bool)
func (e *ConfidentialComputeEngine) RegisterCommittee(committee *ComputeCommittee) error
func (e *ConfidentialComputeEngine) SubmitRequest(ctx context.Context, req *ComputeRequest) error
func (e *ConfidentialComputeEngine) VerifyResult(result *ComputeResult) error

CosmosAdapter

CosmosAdapter implements IBC light client verification for Cosmos chains

func NewCosmosAdapter() *CosmosAdapter
func (a *CosmosAdapter) ChainID() ChainID
func (a *CosmosAdapter) ChainName() string
func (a *CosmosAdapter) Close() error
func (a *CosmosAdapter) GetBlockTime() time.Duration
func (a *CosmosAdapter) GetLatestFinalizedBlock(ctx context.Context) (uint64, error)
func (a *CosmosAdapter) GetRequiredConfirmations() uint64
func (a *CosmosAdapter) GetValidatorSet(ctx context.Context) (*ValidatorSet, error)
func (a *CosmosAdapter) Initialize(config *ChainConfig) error
func (a *CosmosAdapter) IsFinalized(ctx context.Context, height uint64) (bool, error)
func (a *CosmosAdapter) UpdateClientState(header *CosmosHeader, validatorSet *TendermintValidatorSet) error
func (a *CosmosAdapter) VerificationMode() VerificationMode
func (a *CosmosAdapter) VerifyBlockHeader(ctx context.Context, header *BlockHeader) error
func (a *CosmosAdapter) VerifyEvent(ctx context.Context, event *ChainEvent) error
func (a *CosmosAdapter) VerifyMessage(ctx context.Context, msg *CrossChainMessage) error
func (a *CosmosAdapter) VerifyTransaction(ctx context.Context, proof *TxInclusionProof) error

CosmosHeader

CosmosHeader represents a Cosmos/Tendermint block header

CosmosSDKAdapter

func NewCosmosSDKAdapter(chainID ChainID, name, prefix string, blockTime time.Duration) *CosmosSDKAdapter
func (a *CosmosSDKAdapter) ChainID() ChainID
func (a *CosmosSDKAdapter) ChainName() string
func (a *CosmosSDKAdapter) Close() error
func (a *CosmosSDKAdapter) GetBlockTime() time.Duration
func (a *CosmosSDKAdapter) GetLatestFinalizedBlock(ctx context.Context) (uint64, error)
func (a *CosmosSDKAdapter) GetRequiredConfirmations() uint64
func (a *CosmosSDKAdapter) GetValidatorSet(ctx context.Context) (*ValidatorSet, error)
func (a *CosmosSDKAdapter) Initialize(config *ChainConfig) error
func (a *CosmosSDKAdapter) IsFinalized(ctx context.Context, block uint64) (bool, error)
func (a *CosmosSDKAdapter) VerificationMode() VerificationMode
func (a *CosmosSDKAdapter) VerifyBlockHeader(ctx context.Context, header *BlockHeader) error
func (a *CosmosSDKAdapter) VerifyEvent(ctx context.Context, event *ChainEvent) error
func (a *CosmosSDKAdapter) VerifyMessage(ctx context.Context, msg *CrossChainMessage) error
func (a *CosmosSDKAdapter) VerifyTransaction(ctx context.Context, proof *TxInclusionProof) error

CosmosSDKBlock

CosmosSDKValidator

CounterOp

CounterOp is the engine-internal counter operation payload.

CrossChainAsset

CrossChainAsset represents an asset that can be bridged

CrossChainMessage

CrossChainMessage represents a message to be relayed between chains

DAClient

DAClient interfaces with the Data Availability layer

DACommitment

DACommitment represents a cryptographic commitment to DA data

func CreateDACommitment(scheme CommitmentScheme, data []byte) *DACommitment
func (c *DACommitment) Verify(data []byte) error

DAConfig

DAConfig configures the DA layer

DAGAdapter

func NewDAGAdapter(chainID ChainID, name, consensusType string, blockTime time.Duration) *DAGAdapter
func (a *DAGAdapter) ChainID() ChainID
func (a *DAGAdapter) ChainName() string
func (a *DAGAdapter) Close() error
func (a *DAGAdapter) GetBlockTime() time.Duration
func (a *DAGAdapter) GetLatestFinalizedBlock(ctx context.Context) (uint64, error)
func (a *DAGAdapter) GetRequiredConfirmations() uint64
func (a *DAGAdapter) GetValidatorSet(ctx context.Context) (*ValidatorSet, error)
func (a *DAGAdapter) Initialize(config *ChainConfig) error
func (a *DAGAdapter) IsFinalized(ctx context.Context, vertex uint64) (bool, error)
func (a *DAGAdapter) VerificationMode() VerificationMode
func (a *DAGAdapter) VerifyBlockHeader(ctx context.Context, header *BlockHeader) error
func (a *DAGAdapter) VerifyEvent(ctx context.Context, event *ChainEvent) error
func (a *DAGAdapter) VerifyMessage(ctx context.Context, msg *CrossChainMessage) error
func (a *DAGAdapter) VerifyTransaction(ctx context.Context, proof *TxInclusionProof) error

DAGVertex

DALayerType

DALayerType defines the type of DA layer

DAMetrics

DAMetrics contains metrics for the DA layer

DANode

DANode represents a node in the DA network

DAPointer

DAPointer references data in the DA layer

DAReceipt

DAReceipt proves data availability

DataRef

DataRef references encrypted data for compute

DefaultDAClient

DefaultDAClient implements DAClient interface

func NewDefaultDAClient(config *DAConfig) *DefaultDAClient
func (c *DefaultDAClient) GetAvailabilityReceipt(ctx context.Context, pointer *DAPointer) (*DAReceipt, error)
func (c *DefaultDAClient) GetMetrics() *DAMetrics
func (c *DefaultDAClient) GetNodes() []*DANode
func (c *DefaultDAClient) Prune(ctx context.Context, before time.Time) error
func (c *DefaultDAClient) RegisterNode(node *DANode)
func (c *DefaultDAClient) Retrieve(ctx context.Context, pointer *DAPointer) ([]byte, error)
func (c *DefaultDAClient) SetReplicationPolicy(ctx context.Context, pointer *DAPointer, regions []string) error
func (c *DefaultDAClient) Store(ctx context.Context, data []byte, commitment [32]byte) (*DAPointer, error)

DefaultEncryptor

DefaultEncryptor provides default encryption implementation

func NewDefaultEncryptor(keyManager *DomainKeyManager, fheEnabled bool, scheme FHEScheme) *DefaultEncryptor
func (e *DefaultEncryptor) ComputeFHE(ctx context.Context, encrypted []byte, operation string, params []byte) ([]byte, error)
func (e *DefaultEncryptor) Decrypt(ctx context.Context, ciphertext []byte, domain EncryptionDomain, privateKey []byte) ([]byte, error)
func (e *DefaultEncryptor) DecryptChaCha(ctx context.Context, ciphertext []byte, key []byte) ([]byte, error)
func (e *DefaultEncryptor) DecryptFHE(ctx context.Context, encrypted []byte, privateKey []byte) ([]byte, error)
func (e *DefaultEncryptor) DeriveSharedKey(parties [][]byte, threshold int) ([]byte, error)
func (e *DefaultEncryptor) Encrypt(ctx context.Context, data []byte, domain EncryptionDomain, recipients [][]byte) ([]byte, error)
func (e *DefaultEncryptor) EncryptChaCha(ctx context.Context, data []byte, key []byte) ([]byte, error)
func (e *DefaultEncryptor) EncryptFHE(ctx context.Context, data []byte, scheme string) ([]byte, error)
func (e *DefaultEncryptor) GenerateDomainKey(domain EncryptionDomain) (publicKey, privateKey []byte, err error)

Document

Document represents a versioned document in fheCRDT

DocumentID

DocumentID uniquely identifies a document in an app chain

func (d *DocumentID) Hash() [32]byte

DomainKeyManager

DomainKeyManager manages encryption keys for different domains

func NewDomainKeyManager() *DomainKeyManager
func (m *DomainKeyManager) GenerateKeys(domain EncryptionDomain) (*DomainKeySet, error)
func (m *DomainKeyManager) GetKeys(domain EncryptionDomain) (*DomainKeySet, bool)
func (m *DomainKeyManager) SetupThresholdKey(id string, threshold, totalShares int) (*ThresholdKeySet, error)

DomainKeySet

DomainKeySet holds keys for a specific encryption domain

EVMHeader

EVML2Adapter

func NewArbitrumAdapter() *EVML2Adapter
func NewBaseAdapter() *EVML2Adapter
func NewOptimismAdapter() *EVML2Adapter
func (a *EVML2Adapter) ChainID() ChainID
func (a *EVML2Adapter) ChainName() string
func (a *EVML2Adapter) Close() error
func (a *EVML2Adapter) GetBlockTime() time.Duration
func (a *EVML2Adapter) GetLatestFinalizedBlock(ctx context.Context) (uint64, error)
func (a *EVML2Adapter) GetRequiredConfirmations() uint64
func (a *EVML2Adapter) GetValidatorSet(ctx context.Context) (*ValidatorSet, error)
func (a *EVML2Adapter) Initialize(config *ChainConfig) error
func (a *EVML2Adapter) IsFinalized(ctx context.Context, block uint64) (bool, error)
func (a *EVML2Adapter) VerificationMode() VerificationMode
func (a *EVML2Adapter) VerifyBlockHeader(ctx context.Context, header *BlockHeader) error
func (a *EVML2Adapter) VerifyEvent(ctx context.Context, event *ChainEvent) error
func (a *EVML2Adapter) VerifyMessage(ctx context.Context, msg *CrossChainMessage) error
func (a *EVML2Adapter) VerifyTransaction(ctx context.Context, proof *TxInclusionProof) error

EncryptionCapability

EncryptionCapability represents what a party can do with encrypted data

EncryptionDomain

EncryptionDomain defines the privacy boundary for data

func (d EncryptionDomain) String() string

Encryptor

Encryptor handles encryption/decryption operations

Endorsement

Endorsement is a single committee member's endorsement

EthereumAdapter

EthereumAdapter implements light client verification for Ethereum Uses sync committee signatures for finality verification

func NewEthereumAdapter() *EthereumAdapter
func (a *EthereumAdapter) ChainID() ChainID
func (a *EthereumAdapter) ChainName() string
func (a *EthereumAdapter) Close() error
func (a *EthereumAdapter) GetBlockTime() time.Duration
func (a *EthereumAdapter) GetLatestFinalizedBlock(ctx context.Context) (uint64, error)
func (a *EthereumAdapter) GetRequiredConfirmations() uint64
func (a *EthereumAdapter) GetValidatorSet(ctx context.Context) (*ValidatorSet, error)
func (a *EthereumAdapter) Initialize(config *ChainConfig) error
func (a *EthereumAdapter) IsFinalized(ctx context.Context, slot uint64) (bool, error)
func (a *EthereumAdapter) ProcessLightClientUpdate(update *LightClientUpdate) error
func (a *EthereumAdapter) VerificationMode() VerificationMode
func (a *EthereumAdapter) VerifyBlockHeader(ctx context.Context, header *BlockHeader) error
func (a *EthereumAdapter) VerifyEvent(ctx context.Context, event *ChainEvent) error
func (a *EthereumAdapter) VerifyMessage(ctx context.Context, msg *CrossChainMessage) error
func (a *EthereumAdapter) VerifyTransaction(ctx context.Context, proof *TxInclusionProof) error

EthereumHeader

EthereumHeader represents an Ethereum beacon chain header

FHEOperation

FHEOperation defines supported FHE operations

FHEScheme

FHEScheme defines the FHE scheme in use

FieldSchema

FieldSchema defines a field in a collection

GRANDPAJustification

GRANDPAPrecommit

GenericEVMAdapter

func NewGenericEVMAdapter(chainID ChainID, name string, evmID uint64, blockTime time.Duration, confs uint64, mode VerificationMode) *GenericEVMAdapter
func (a *GenericEVMAdapter) ChainID() ChainID
func (a *GenericEVMAdapter) ChainName() string
func (a *GenericEVMAdapter) Close() error
func (a *GenericEVMAdapter) EVMChainID() uint64
func (a *GenericEVMAdapter) GetBlockTime() time.Duration
func (a *GenericEVMAdapter) GetLatestFinalizedBlock(ctx context.Context) (uint64, error)
func (a *GenericEVMAdapter) GetRequiredConfirmations() uint64
func (a *GenericEVMAdapter) GetValidatorSet(ctx context.Context) (*ValidatorSet, error)
func (a *GenericEVMAdapter) Initialize(config *ChainConfig) error
func (a *GenericEVMAdapter) IsFinalized(ctx context.Context, block uint64) (bool, error)
func (a *GenericEVMAdapter) VerificationMode() VerificationMode
func (a *GenericEVMAdapter) VerifyBlockHeader(ctx context.Context, header *BlockHeader) error
func (a *GenericEVMAdapter) VerifyEvent(ctx context.Context, event *ChainEvent) error
func (a *GenericEVMAdapter) VerifyMessage(ctx context.Context, msg *CrossChainMessage) error
func (a *GenericEVMAdapter) VerifyTransaction(ctx context.Context, proof *TxInclusionProof) error

HeimdallCheckpoint

IBCClientState

IBCClientState represents IBC light client state

IBCConsensusState

IBCConsensusState represents IBC consensus state

ICPAdapter

func NewICPAdapter() *ICPAdapter
func (a *ICPAdapter) ChainID() ChainID
func (a *ICPAdapter) ChainName() string
func (a *ICPAdapter) Close() error
func (a *ICPAdapter) GetBlockTime() time.Duration
func (a *ICPAdapter) GetLatestFinalizedBlock(ctx context.Context) (uint64, error)
func (a *ICPAdapter) GetRequiredConfirmations() uint64
func (a *ICPAdapter) GetValidatorSet(ctx context.Context) (*ValidatorSet, error)
func (a *ICPAdapter) Initialize(config *ChainConfig) error
func (a *ICPAdapter) IsFinalized(ctx context.Context, block uint64) (bool, error)
func (a *ICPAdapter) VerificationMode() VerificationMode
func (a *ICPAdapter) VerifyBlockHeader(ctx context.Context, header *BlockHeader) error
func (a *ICPAdapter) VerifyEvent(ctx context.Context, event *ChainEvent) error
func (a *ICPAdapter) VerifyMessage(ctx context.Context, msg *CrossChainMessage) error
func (a *ICPAdapter) VerifyTransaction(ctx context.Context, proof *TxInclusionProof) error

ICPBlock

ICPNet

IndexSchema

IndexSchema defines an index on a collection

LightClientUpdate

LightClientUpdate represents a light client update

MPCKeyShare

MPCKeyShare represents a threshold key share for MPC signing

MPCSigner

MPCSigner is the interface for MPC signing operations

MPCWallet

MPCWallet represents a multi-chain MPC wallet that can sign for any supported chain

MoneroAdapter

func NewMoneroAdapter() *MoneroAdapter
func (a *MoneroAdapter) ChainID() ChainID
func (a *MoneroAdapter) ChainName() string
func (a *MoneroAdapter) Close() error
func (a *MoneroAdapter) GetBlockTime() time.Duration
func (a *MoneroAdapter) GetLatestFinalizedBlock(ctx context.Context) (uint64, error)
func (a *MoneroAdapter) GetRequiredConfirmations() uint64
func (a *MoneroAdapter) GetValidatorSet(ctx context.Context) (*ValidatorSet, error)
func (a *MoneroAdapter) Initialize(config *ChainConfig) error
func (a *MoneroAdapter) IsFinalized(ctx context.Context, block uint64) (bool, error)
func (a *MoneroAdapter) VerificationMode() VerificationMode
func (a *MoneroAdapter) VerifyBlockHeader(ctx context.Context, header *BlockHeader) error
func (a *MoneroAdapter) VerifyEvent(ctx context.Context, event *ChainEvent) error
func (a *MoneroAdapter) VerifyMessage(ctx context.Context, msg *CrossChainMessage) error
func (a *MoneroAdapter) VerifyTransaction(ctx context.Context, proof *TxInclusionProof) error

MoneroBlock

MultiChainMPCWallet

MultiChainMPCWallet implements MPCWallet for multi-chain operations

func NewMultiChainMPCWallet(signer MPCSigner, threshold, totalShares int) *MultiChainMPCWallet
func (w *MultiChainMPCWallet) GetAddress(chainID ChainID) (string, error)
func (w *MultiChainMPCWallet) GetChainKeySet(chainID ChainID) (*ChainKeySet, error)
func (w *MultiChainMPCWallet) GetPublicKey(chainID ChainID) ([]byte, error)
func (w *MultiChainMPCWallet) GetSupportedChains() []ChainID
func (w *MultiChainMPCWallet) HasKeyForChain(chainID ChainID) bool
func (w *MultiChainMPCWallet) InitializeChain(config *ChainConfig) error
func (w *MultiChainMPCWallet) SignMessage(ctx context.Context, chainID ChainID, message []byte) ([]byte, error)
func (w *MultiChainMPCWallet) SignTransaction(ctx context.Context, chainID ChainID, tx *UnsignedTransaction) (*SignedTransaction, error)

NEARAdapter

func NewNEARAdapter() *NEARAdapter
func (a *NEARAdapter) ChainID() ChainID
func (a *NEARAdapter) ChainName() string
func (a *NEARAdapter) Close() error
func (a *NEARAdapter) GetBlockTime() time.Duration
func (a *NEARAdapter) GetLatestFinalizedBlock(ctx context.Context) (uint64, error)
func (a *NEARAdapter) GetRequiredConfirmations() uint64
func (a *NEARAdapter) GetValidatorSet(ctx context.Context) (*ValidatorSet, error)
func (a *NEARAdapter) Initialize(config *ChainConfig) error
func (a *NEARAdapter) IsFinalized(ctx context.Context, block uint64) (bool, error)
func (a *NEARAdapter) VerificationMode() VerificationMode
func (a *NEARAdapter) VerifyBlockHeader(ctx context.Context, header *BlockHeader) error
func (a *NEARAdapter) VerifyEvent(ctx context.Context, event *ChainEvent) error
func (a *NEARAdapter) VerifyMessage(ctx context.Context, msg *CrossChainMessage) error
func (a *NEARAdapter) VerifyTransaction(ctx context.Context, proof *TxInclusionProof) error

NEARBlock

NEARChunkHeader

NEARValidator

OpBatch

OpBatch represents a batch of operations committed together

func (b *OpBatch) Hash() [32]byte

OpLog

OpLog maintains the operation log for a document

func NewOpLog(docID DocumentID) *OpLog
func (l *OpLog) Append(op *Operation) error
func (l *OpLog) GetBySeq(seq uint64) (*Operation, bool)
func (l *OpLog) GetRange(fromSeq, toSeq uint64) []*Operation

Operation

Operation represents a CRDT operation in the op-log

OracleDataPoint

OracleDataPoint represents a price/data point from an oracle source

ParachainAdapter

func NewParachainAdapter(chainID ChainID, name string, paraID uint32, blockTime time.Duration) *ParachainAdapter
func (a *ParachainAdapter) ChainID() ChainID
func (a *ParachainAdapter) ChainName() string
func (a *ParachainAdapter) Close() error
func (a *ParachainAdapter) GetBlockTime() time.Duration
func (a *ParachainAdapter) GetLatestFinalizedBlock(ctx context.Context) (uint64, error)
func (a *ParachainAdapter) GetRequiredConfirmations() uint64
func (a *ParachainAdapter) GetValidatorSet(ctx context.Context) (*ValidatorSet, error)
func (a *ParachainAdapter) Initialize(config *ChainConfig) error
func (a *ParachainAdapter) IsFinalized(ctx context.Context, block uint64) (bool, error)
func (a *ParachainAdapter) VerificationMode() VerificationMode
func (a *ParachainAdapter) VerifyBlockHeader(ctx context.Context, header *BlockHeader) error
func (a *ParachainAdapter) VerifyEvent(ctx context.Context, event *ChainEvent) error
func (a *ParachainAdapter) VerifyMessage(ctx context.Context, msg *CrossChainMessage) error
func (a *ParachainAdapter) VerifyTransaction(ctx context.Context, proof *TxInclusionProof) error

PolkadotAdapter

PolkadotAdapter implements GRANDPA/BEEFY verification for Polkadot

func NewPolkadotAdapter() *PolkadotAdapter
func (a *PolkadotAdapter) ChainID() ChainID
func (a *PolkadotAdapter) ChainName() string
func (a *PolkadotAdapter) Close() error
func (a *PolkadotAdapter) GetBlockTime() time.Duration
func (a *PolkadotAdapter) GetLatestFinalizedBlock(ctx context.Context) (uint64, error)
func (a *PolkadotAdapter) GetRequiredConfirmations() uint64
func (a *PolkadotAdapter) GetValidatorSet(ctx context.Context) (*ValidatorSet, error)
func (a *PolkadotAdapter) Initialize(config *ChainConfig) error
func (a *PolkadotAdapter) IsFinalized(ctx context.Context, block uint64) (bool, error)
func (a *PolkadotAdapter) VerificationMode() VerificationMode
func (a *PolkadotAdapter) VerifyBlockHeader(ctx context.Context, header *BlockHeader) error
func (a *PolkadotAdapter) VerifyEvent(ctx context.Context, event *ChainEvent) error
func (a *PolkadotAdapter) VerifyMessage(ctx context.Context, msg *CrossChainMessage) error
func (a *PolkadotAdapter) VerifyTransaction(ctx context.Context, proof *TxInclusionProof) error

PolkadotAuthority

PolkadotHeader

PolygonAdapter

func NewPolygonAdapter() *PolygonAdapter
func (a *PolygonAdapter) ChainID() ChainID
func (a *PolygonAdapter) ChainName() string
func (a *PolygonAdapter) Close() error
func (a *PolygonAdapter) GetBlockTime() time.Duration
func (a *PolygonAdapter) GetLatestFinalizedBlock(ctx context.Context) (uint64, error)
func (a *PolygonAdapter) GetRequiredConfirmations() uint64
func (a *PolygonAdapter) GetValidatorSet(ctx context.Context) (*ValidatorSet, error)
func (a *PolygonAdapter) Initialize(config *ChainConfig) error
func (a *PolygonAdapter) IsFinalized(ctx context.Context, block uint64) (bool, error)
func (a *PolygonAdapter) VerificationMode() VerificationMode
func (a *PolygonAdapter) VerifyBlockHeader(ctx context.Context, header *BlockHeader) error
func (a *PolygonAdapter) VerifyEvent(ctx context.Context, event *ChainEvent) error
func (a *PolygonAdapter) VerifyMessage(ctx context.Context, msg *CrossChainMessage) error
func (a *PolygonAdapter) VerifyTransaction(ctx context.Context, proof *TxInclusionProof) error

Registry

Registry manages chain adapters

func NewRegistry() *Registry
func (r *Registry) Close() error
func (r *Registry) Get(chainID ChainID) (ChainAdapter, error)
func (r *Registry) GetConfig(chainID ChainID) (*ChainConfig, error)
func (r *Registry) GetMetrics(chainID ChainID) (*ChainMetrics, error)
func (r *Registry) List() []ChainID
func (r *Registry) Register(adapter ChainAdapter, config *ChainConfig) error
func (r *Registry) Unregister(chainID ChainID) error
func (r *Registry) VerifyMessage(ctx context.Context, msg *CrossChainMessage) error

RippleAdapter

func NewRippleAdapter() *RippleAdapter
func (a *RippleAdapter) ChainID() ChainID
func (a *RippleAdapter) ChainName() string
func (a *RippleAdapter) Close() error
func (a *RippleAdapter) GetBlockTime() time.Duration
func (a *RippleAdapter) GetLatestFinalizedBlock(ctx context.Context) (uint64, error)
func (a *RippleAdapter) GetRequiredConfirmations() uint64
func (a *RippleAdapter) GetValidatorSet(ctx context.Context) (*ValidatorSet, error)
func (a *RippleAdapter) Initialize(config *ChainConfig) error
func (a *RippleAdapter) IsFinalized(ctx context.Context, block uint64) (bool, error)
func (a *RippleAdapter) VerificationMode() VerificationMode
func (a *RippleAdapter) VerifyBlockHeader(ctx context.Context, header *BlockHeader) error
func (a *RippleAdapter) VerifyEvent(ctx context.Context, event *ChainEvent) error
func (a *RippleAdapter) VerifyMessage(ctx context.Context, msg *CrossChainMessage) error
func (a *RippleAdapter) VerifyTransaction(ctx context.Context, proof *TxInclusionProof) error

SQLiteMaterializer

SQLiteMaterializer materializes CRDT state to SQLite

func NewSQLiteMaterializer(dbPath string, appChainID ids.ID, encryptor Encryptor) (*SQLiteMaterializer, error)
func (m *SQLiteMaterializer) Close() error
func (m *SQLiteMaterializer) CreateCollection(ctx context.Context, schema *CollectionSchema) error
func (m *SQLiteMaterializer) GetDocument(ctx context.Context, docID DocumentID) (*Document, error)
func (m *SQLiteMaterializer) Materialize(ctx context.Context, ops []*Operation) error
func (m *SQLiteMaterializer) Query(ctx context.Context, sqlQuery string, params []interface{}) ([]map[string]interface{}, error)
func (m *SQLiteMaterializer) Restore(ctx context.Context, snapshot *StateSnapshot) error
func (m *SQLiteMaterializer) Snapshot(ctx context.Context) (*StateSnapshot, error)

SamplingProof

SamplingProof proves data availability through random sampling

func (p *SamplingProof) Verify(blobCommitment [32]byte) error

SignedBridgeTransfer

SignedBridgeTransfer represents a signed bridge transfer

SignedTransaction

SignedTransaction represents a signed transaction

SigningCurve

SigningCurve represents the elliptic curve used for signing

func GetSigningCurve(chainType ChainType) SigningCurve

SolanaAdapter

SolanaAdapter implements vote attestation verification for Solana

func NewSolanaAdapter() *SolanaAdapter
func (a *SolanaAdapter) ChainID() ChainID
func (a *SolanaAdapter) ChainName() string
func (a *SolanaAdapter) Close() error
func (a *SolanaAdapter) GetBlockTime() time.Duration
func (a *SolanaAdapter) GetLatestFinalizedBlock(ctx context.Context) (uint64, error)
func (a *SolanaAdapter) GetRequiredConfirmations() uint64
func (a *SolanaAdapter) GetValidatorSet(ctx context.Context) (*ValidatorSet, error)
func (a *SolanaAdapter) Initialize(config *ChainConfig) error
func (a *SolanaAdapter) IsFinalized(ctx context.Context, slot uint64) (bool, error)
func (a *SolanaAdapter) ProcessVoteAttestation(attestation *SolanaVoteAttestation) error
func (a *SolanaAdapter) UpdateValidatorSet(validators []*SolanaValidator, epoch uint64) error
func (a *SolanaAdapter) VerificationMode() VerificationMode
func (a *SolanaAdapter) VerifyBlockHeader(ctx context.Context, header *BlockHeader) error
func (a *SolanaAdapter) VerifyEvent(ctx context.Context, event *ChainEvent) error
func (a *SolanaAdapter) VerifyMessage(ctx context.Context, msg *CrossChainMessage) error
func (a *SolanaAdapter) VerifyTransaction(ctx context.Context, proof *TxInclusionProof) error

SolanaSlot

SolanaSlot represents a Solana slot (block)

SolanaValidator

SolanaValidator represents a Solana validator

SolanaVote

SolanaVote represents a validator vote

SolanaVoteAttestation

SolanaVoteAttestation contains aggregated votes for a slot

StateMaterializer

StateMaterializer materializes CRDT state to local storage

StateSnapshot

StateSnapshot represents a point-in-time snapshot

StellarAdapter

func NewStellarAdapter() *StellarAdapter
func (a *StellarAdapter) ChainID() ChainID
func (a *StellarAdapter) ChainName() string
func (a *StellarAdapter) Close() error
func (a *StellarAdapter) GetBlockTime() time.Duration
func (a *StellarAdapter) GetLatestFinalizedBlock(ctx context.Context) (uint64, error)
func (a *StellarAdapter) GetRequiredConfirmations() uint64
func (a *StellarAdapter) GetValidatorSet(ctx context.Context) (*ValidatorSet, error)
func (a *StellarAdapter) Initialize(config *ChainConfig) error
func (a *StellarAdapter) IsFinalized(ctx context.Context, ledger uint64) (bool, error)
func (a *StellarAdapter) VerificationMode() VerificationMode
func (a *StellarAdapter) VerifyBlockHeader(ctx context.Context, header *BlockHeader) error
func (a *StellarAdapter) VerifyEvent(ctx context.Context, event *ChainEvent) error
func (a *StellarAdapter) VerifyMessage(ctx context.Context, msg *CrossChainMessage) error
func (a *StellarAdapter) VerifyTransaction(ctx context.Context, proof *TxInclusionProof) error

StellarLedger

StellarQuorumSet

SuiAdapter

func NewSuiAdapter() *SuiAdapter
func (a *SuiAdapter) ChainID() ChainID
func (a *SuiAdapter) ChainName() string
func (a *SuiAdapter) Close() error
func (a *SuiAdapter) GetBlockTime() time.Duration
func (a *SuiAdapter) GetLatestFinalizedBlock(ctx context.Context) (uint64, error)
func (a *SuiAdapter) GetRequiredConfirmations() uint64
func (a *SuiAdapter) GetValidatorSet(ctx context.Context) (*ValidatorSet, error)
func (a *SuiAdapter) Initialize(config *ChainConfig) error
func (a *SuiAdapter) IsFinalized(ctx context.Context, checkpoint uint64) (bool, error)
func (a *SuiAdapter) VerificationMode() VerificationMode
func (a *SuiAdapter) VerifyBlockHeader(ctx context.Context, header *BlockHeader) error
func (a *SuiAdapter) VerifyEvent(ctx context.Context, event *ChainEvent) error
func (a *SuiAdapter) VerifyMessage(ctx context.Context, msg *CrossChainMessage) error
func (a *SuiAdapter) VerifyTransaction(ctx context.Context, proof *TxInclusionProof) error

SuiCheckpoint

SuiValidator

SyncAggregate

SyncAggregate represents sync committee aggregate signature

SyncCommittee

SyncCommittee represents an Ethereum sync committee

TEEAttestation

TEEAttestation contains attestation evidence from a TEE

func (a *TEEAttestation) Verify() error

TEEType

TEEType defines the type of Trusted Execution Environment

func (t TEEType) String() string

TONAdapter

func NewTONAdapter() *TONAdapter
func (a *TONAdapter) ChainID() ChainID
func (a *TONAdapter) ChainName() string
func (a *TONAdapter) Close() error
func (a *TONAdapter) GetBlockTime() time.Duration
func (a *TONAdapter) GetLatestFinalizedBlock(ctx context.Context) (uint64, error)
func (a *TONAdapter) GetRequiredConfirmations() uint64
func (a *TONAdapter) GetValidatorSet(ctx context.Context) (*ValidatorSet, error)
func (a *TONAdapter) Initialize(config *ChainConfig) error
func (a *TONAdapter) IsFinalized(ctx context.Context, seqno uint64) (bool, error)
func (a *TONAdapter) VerificationMode() VerificationMode
func (a *TONAdapter) VerifyBlockHeader(ctx context.Context, header *BlockHeader) error
func (a *TONAdapter) VerifyEvent(ctx context.Context, event *ChainEvent) error
func (a *TONAdapter) VerifyMessage(ctx context.Context, msg *CrossChainMessage) error
func (a *TONAdapter) VerifyTransaction(ctx context.Context, proof *TxInclusionProof) error

TONBlock

TONValidator

TRONAdapter

func NewTRONAdapter() *TRONAdapter
func (a *TRONAdapter) ChainID() ChainID
func (a *TRONAdapter) ChainName() string
func (a *TRONAdapter) Close() error
func (a *TRONAdapter) GetBlockTime() time.Duration
func (a *TRONAdapter) GetLatestFinalizedBlock(ctx context.Context) (uint64, error)
func (a *TRONAdapter) GetRequiredConfirmations() uint64
func (a *TRONAdapter) GetValidatorSet(ctx context.Context) (*ValidatorSet, error)
func (a *TRONAdapter) Initialize(config *ChainConfig) error
func (a *TRONAdapter) IsFinalized(ctx context.Context, block uint64) (bool, error)
func (a *TRONAdapter) VerificationMode() VerificationMode
func (a *TRONAdapter) VerifyBlockHeader(ctx context.Context, header *BlockHeader) error
func (a *TRONAdapter) VerifyEvent(ctx context.Context, event *ChainEvent) error
func (a *TRONAdapter) VerifyMessage(ctx context.Context, msg *CrossChainMessage) error
func (a *TRONAdapter) VerifyTransaction(ctx context.Context, proof *TxInclusionProof) error

TRONBlock

TRONSuperRep

TendermintCommit

TendermintCommit represents commit signatures

TendermintValidator

TendermintValidator represents a single validator

TendermintValidatorSet

TendermintValidatorSet represents Tendermint validator set

TendermintVote

TendermintVote represents a validator vote

TezosAdapter

func NewTezosAdapter() *TezosAdapter
func (a *TezosAdapter) ChainID() ChainID
func (a *TezosAdapter) ChainName() string
func (a *TezosAdapter) Close() error
func (a *TezosAdapter) GetBlockTime() time.Duration
func (a *TezosAdapter) GetLatestFinalizedBlock(ctx context.Context) (uint64, error)
func (a *TezosAdapter) GetRequiredConfirmations() uint64
func (a *TezosAdapter) GetValidatorSet(ctx context.Context) (*ValidatorSet, error)
func (a *TezosAdapter) Initialize(config *ChainConfig) error
func (a *TezosAdapter) IsFinalized(ctx context.Context, level uint64) (bool, error)
func (a *TezosAdapter) VerificationMode() VerificationMode
func (a *TezosAdapter) VerifyBlockHeader(ctx context.Context, header *BlockHeader) error
func (a *TezosAdapter) VerifyEvent(ctx context.Context, event *ChainEvent) error
func (a *TezosAdapter) VerifyMessage(ctx context.Context, msg *CrossChainMessage) error
func (a *TezosAdapter) VerifyTransaction(ctx context.Context, proof *TxInclusionProof) error

TezosBaker

TezosBlock

ThresholdKeySet

ThresholdKeySet holds keys for threshold/MPC access

TxInclusionProof

TxInclusionProof proves a transaction was included in a block

UnsignedTransaction

UnsignedTransaction represents a transaction to be signed

Validator

Validator represents a single validator

ValidatorSet

ValidatorSet represents a validator set for PoS chains

VerificationMode

VerificationMode indicates how chain data is verified

XRPLedger

XRPValidator

ZKBatch

ZKRollupAdapter

func NewZKRollupAdapter(chainID ChainID, name string, evmID uint64, proofSystem string) *ZKRollupAdapter
func (a *ZKRollupAdapter) ChainID() ChainID
func (a *ZKRollupAdapter) ChainName() string
func (a *ZKRollupAdapter) Close() error
func (a *ZKRollupAdapter) EVMChainID() uint64
func (a *ZKRollupAdapter) GetBlockTime() time.Duration
func (a *ZKRollupAdapter) GetLatestFinalizedBlock(ctx context.Context) (uint64, error)
func (a *ZKRollupAdapter) GetRequiredConfirmations() uint64
func (a *ZKRollupAdapter) GetValidatorSet(ctx context.Context) (*ValidatorSet, error)
func (a *ZKRollupAdapter) Initialize(config *ChainConfig) error
func (a *ZKRollupAdapter) IsFinalized(ctx context.Context, block uint64) (bool, error)
func (a *ZKRollupAdapter) VerificationMode() VerificationMode
func (a *ZKRollupAdapter) VerifyBlockHeader(ctx context.Context, header *BlockHeader) error
func (a *ZKRollupAdapter) VerifyEvent(ctx context.Context, event *ChainEvent) error
func (a *ZKRollupAdapter) VerifyMessage(ctx context.Context, msg *CrossChainMessage) error
func (a *ZKRollupAdapter) VerifyTransaction(ctx context.Context, proof *TxInclusionProof) error