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]*ChainConfigAllChainConfigs returns configurations for all 200+ supported chains with proper EVM chain IDs where applicable
ChainName
func ChainName(id ChainID) stringChainName returns the name for a chain ID
DefaultChainConfigs
func DefaultChainConfigs() map[ChainID]*ChainConfigDefaultChainConfigs returns default configurations for major chains
GetAddressPrefix
func GetAddressPrefix(chainID ChainID, chainType ChainType) stringGetAddressPrefix returns the expected address prefix for a chain
GetAllEnrichedConfigs
func GetAllEnrichedConfigs() map[ChainID]*ChainConfigGetAllEnrichedConfigs returns all chain configs with ChainType and MPC fields populated
GetChainsByCategory
func GetChainsByCategory() map[ChainType][]*ChainConfigGetChainsByCategory 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) stringGetMPCCurve returns the MPC signing curve for a chain
InitializeDefaultAdapters
func InitializeDefaultAdapters(registry *Registry) errorInitializeDefaultAdapters initializes adapters for all supported chains
NewFHECRDTEngine
func NewFHECRDTEngine(config *AppChainConfig, encryptor Encryptor, daClient DAClient, materializer StateMaterializer) *fheCRDTEngineNewFHECRDTEngine 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) AddressFormatAlgorandAdapter
func NewAlgorandAdapter() *AlgorandAdapterfunc (a *AlgorandAdapter) ChainID() ChainIDfunc (a *AlgorandAdapter) ChainName() stringfunc (a *AlgorandAdapter) Close() errorfunc (a *AlgorandAdapter) GetBlockTime() time.Durationfunc (a *AlgorandAdapter) GetLatestFinalizedBlock(ctx context.Context) (uint64, error)func (a *AlgorandAdapter) GetRequiredConfirmations() uint64func (a *AlgorandAdapter) GetValidatorSet(ctx context.Context) (*ValidatorSet, error)func (a *AlgorandAdapter) Initialize(config *ChainConfig) errorfunc (a *AlgorandAdapter) IsFinalized(ctx context.Context, round uint64) (bool, error)func (a *AlgorandAdapter) VerificationMode() VerificationModefunc (a *AlgorandAdapter) VerifyBlockHeader(ctx context.Context, header *BlockHeader) errorfunc (a *AlgorandAdapter) VerifyEvent(ctx context.Context, event *ChainEvent) errorfunc (a *AlgorandAdapter) VerifyMessage(ctx context.Context, msg *CrossChainMessage) errorfunc (a *AlgorandAdapter) VerifyTransaction(ctx context.Context, proof *TxInclusionProof) errorAlgorandBlock
AppChain
AppChain represents a user-centric distributed SQL database
func NewAppChain(config *AppChainConfig, dbPath string, daClient DAClient) (*AppChain, error)func (a *AppChain) Close() errorfunc (a *AppChain) ComputeStateRoot() [32]bytefunc (a *AppChain) CreateCollection(ctx context.Context, schema *CollectionSchema) errorfunc (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) errorAppChainAdapter
AppChainAdapter implements ChainAdapter for AppChains
func NewAppChainAdapter(appChain *AppChain) *AppChainAdapterfunc (a *AppChainAdapter) ChainID() ChainIDfunc (a *AppChainAdapter) ChainName() stringfunc (a *AppChainAdapter) Close() errorfunc (a *AppChainAdapter) GetBlockTime() time.Durationfunc (a *AppChainAdapter) GetLatestFinalizedBlock(ctx context.Context) (uint64, error)func (a *AppChainAdapter) GetRequiredConfirmations() uint64func (a *AppChainAdapter) GetValidatorSet(ctx context.Context) (*ValidatorSet, error)func (a *AppChainAdapter) Initialize(config *ChainConfig) errorfunc (a *AppChainAdapter) IsFinalized(ctx context.Context, blockNumber uint64) (bool, error)func (a *AppChainAdapter) VerificationMode() VerificationModefunc (a *AppChainAdapter) VerifyBlockHeader(ctx context.Context, header *BlockHeader) errorfunc (a *AppChainAdapter) VerifyEvent(ctx context.Context, event *ChainEvent) errorfunc (a *AppChainAdapter) VerifyMessage(ctx context.Context, msg *CrossChainMessage) errorfunc (a *AppChainAdapter) VerifyTransaction(ctx context.Context, proof *TxInclusionProof) errorAppChainConfig
AppChainConfig configures an fheCRDT app chain
AppChainDALayer
AppChainDALayer wraps DA client with AppChain-specific functionality
func NewAppChainDALayer(appChainID ids.ID, config *DAConfig) *AppChainDALayerfunc (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() *AptosAdapterfunc (a *AptosAdapter) ChainID() ChainIDfunc (a *AptosAdapter) ChainName() stringfunc (a *AptosAdapter) Close() errorfunc (a *AptosAdapter) GetBlockTime() time.Durationfunc (a *AptosAdapter) GetLatestFinalizedBlock(ctx context.Context) (uint64, error)func (a *AptosAdapter) GetRequiredConfirmations() uint64func (a *AptosAdapter) GetValidatorSet(ctx context.Context) (*ValidatorSet, error)func (a *AptosAdapter) Initialize(config *ChainConfig) errorfunc (a *AptosAdapter) IsFinalized(ctx context.Context, block uint64) (bool, error)func (a *AptosAdapter) VerificationMode() VerificationModefunc (a *AptosAdapter) VerifyBlockHeader(ctx context.Context, header *BlockHeader) errorfunc (a *AptosAdapter) VerifyEvent(ctx context.Context, event *ChainEvent) errorfunc (a *AptosAdapter) VerifyMessage(ctx context.Context, msg *CrossChainMessage) errorfunc (a *AptosAdapter) VerifyTransaction(ctx context.Context, proof *TxInclusionProof) errorAptosBlock
AptosValidator
AssetRegistry
AssetRegistry tracks bridgeable assets across chains
func NewAssetRegistry() *AssetRegistryfunc (r *AssetRegistry) GetAsset(assetID ids.ID) (*CrossChainAsset, bool)func (r *AssetRegistry) GetAssetsByChain(chainID ChainID) []*CrossChainAssetfunc (r *AssetRegistry) GetWrappedAddress(assetID ids.ID, chainID ChainID) ([]byte, error)func (r *AssetRegistry) RegisterAsset(asset *CrossChainAsset)BSCAdapter
func NewBSCAdapter() *BSCAdapterfunc (a *BSCAdapter) ChainID() ChainIDfunc (a *BSCAdapter) ChainName() stringfunc (a *BSCAdapter) Close() errorfunc (a *BSCAdapter) GetBlockTime() time.Durationfunc (a *BSCAdapter) GetLatestFinalizedBlock(ctx context.Context) (uint64, error)func (a *BSCAdapter) GetRequiredConfirmations() uint64func (a *BSCAdapter) GetValidatorSet(ctx context.Context) (*ValidatorSet, error)func (a *BSCAdapter) Initialize(config *ChainConfig) errorfunc (a *BSCAdapter) IsFinalized(ctx context.Context, block uint64) (bool, error)func (a *BSCAdapter) VerificationMode() VerificationModefunc (a *BSCAdapter) VerifyBlockHeader(ctx context.Context, header *BlockHeader) errorfunc (a *BSCAdapter) VerifyEvent(ctx context.Context, event *ChainEvent) errorfunc (a *BSCAdapter) VerifyMessage(ctx context.Context, msg *CrossChainMessage) errorfunc (a *BSCAdapter) VerifyTransaction(ctx context.Context, proof *TxInclusionProof) errorBitcoinAdapter
BitcoinAdapter implements SPV verification for Bitcoin
func NewBitcoinAdapter() *BitcoinAdapterfunc (a *BitcoinAdapter) ChainID() ChainIDfunc (a *BitcoinAdapter) ChainName() stringfunc (a *BitcoinAdapter) Close() errorfunc (a *BitcoinAdapter) GetBlockTime() time.Durationfunc (a *BitcoinAdapter) GetLatestFinalizedBlock(ctx context.Context) (uint64, error)func (a *BitcoinAdapter) GetRequiredConfirmations() uint64func (a *BitcoinAdapter) GetValidatorSet(ctx context.Context) (*ValidatorSet, error)func (a *BitcoinAdapter) Initialize(config *ChainConfig) errorfunc (a *BitcoinAdapter) IsFinalized(ctx context.Context, blockNumber uint64) (bool, error)func (a *BitcoinAdapter) VerificationMode() VerificationModefunc (a *BitcoinAdapter) VerifyBlockHeader(ctx context.Context, header *BlockHeader) errorfunc (a *BitcoinAdapter) VerifyEvent(ctx context.Context, event *ChainEvent) errorfunc (a *BitcoinAdapter) VerifyMessage(ctx context.Context, msg *CrossChainMessage) errorfunc (a *BitcoinAdapter) VerifyTransaction(ctx context.Context, proof *TxInclusionProof) errorBitcoinCheckpoint
BitcoinCheckpoint represents a known checkpoint
BitcoinForkAdapter
func NewBitcoinForkAdapter(chainID ChainID, name string, blockTime time.Duration, confs uint64) *BitcoinForkAdapterfunc (a *BitcoinForkAdapter) ChainID() ChainIDfunc (a *BitcoinForkAdapter) ChainName() stringfunc (a *BitcoinForkAdapter) Close() errorfunc (a *BitcoinForkAdapter) GetBlockTime() time.Durationfunc (a *BitcoinForkAdapter) GetLatestFinalizedBlock(ctx context.Context) (uint64, error)func (a *BitcoinForkAdapter) GetRequiredConfirmations() uint64func (a *BitcoinForkAdapter) GetValidatorSet(ctx context.Context) (*ValidatorSet, error)func (a *BitcoinForkAdapter) Initialize(config *ChainConfig) errorfunc (a *BitcoinForkAdapter) IsFinalized(ctx context.Context, block uint64) (bool, error)func (a *BitcoinForkAdapter) VerificationMode() VerificationModefunc (a *BitcoinForkAdapter) VerifyBlockHeader(ctx context.Context, header *BlockHeader) errorfunc (a *BitcoinForkAdapter) VerifyEvent(ctx context.Context, event *ChainEvent) errorfunc (a *BitcoinForkAdapter) VerifyMessage(ctx context.Context, msg *CrossChainMessage) errorfunc (a *BitcoinForkAdapter) VerifyTransaction(ctx context.Context, proof *TxInclusionProof) errorBitcoinHeader
BitcoinHeader represents a Bitcoin block header (80 bytes)
Blob
Blob represents data stored in the DA layer
func (b *Blob) ComputeCommitment() [32]byteBlockHeader
BlockHeader represents a block header from any chain
BridgeAdapter
BridgeAdapter provides cross-chain bridge functionality using chain adapters
func NewBridgeAdapter(registry *ChainRegistry, wallet MPCWallet) *BridgeAdapterfunc (b *BridgeAdapter) ConfirmDelivery(ctx context.Context, reqID ids.ID, destTxHash [32]byte, destBlock uint64) errorfunc (b *BridgeAdapter) GetAdapter(chainID ChainID) (ChainAdapter, bool)func (b *BridgeAdapter) GetBridgeRequest(reqID ids.ID) (*BridgeRequest, error)func (b *BridgeAdapter) GetMetrics() *BridgeMetricsfunc (b *BridgeAdapter) GetPendingTransfers() []*BridgeRequestfunc (b *BridgeAdapter) GetSupportedRoutes() []*BridgeRoutefunc (b *BridgeAdapter) GetTransfersForChain(chainID ChainID, isSource bool) []*BridgeRequestfunc (b *BridgeAdapter) InitiateBridge(ctx context.Context, req *BridgeRequest) errorfunc (b *BridgeAdapter) RegisterAdapter(adapter ChainAdapter) errorfunc (b *BridgeAdapter) SignBridgeRequest(ctx context.Context, reqID ids.ID) errorfunc (b *BridgeAdapter) VerifySourceTransaction(ctx context.Context, reqID ids.ID) errorBridgeMetrics
BridgeMetrics contains metrics for the bridge adapter
BridgeRequest
BridgeRequest represents a cross-chain bridge request
func (r *BridgeRequest) Hash() [32]byteBridgeRoute
BridgeRoute represents a supported bridge route between two chains
BridgeStatus
BridgeStatus represents the status of a bridge transfer
func (s BridgeStatus) String() stringBridgeTransfer
BridgeTransfer represents a cross-chain bridge transfer
BridgeWalletAdapter
BridgeWalletAdapter adapts MPCWallet for bridge operations
func NewBridgeWalletAdapter(wallet MPCWallet, registry *ChainRegistry) *BridgeWalletAdapterfunc (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() *CapabilityManagerfunc (m *CapabilityManager) Check(partyID []byte, domain EncryptionDomain) boolfunc (m *CapabilityManager) Delegate(fromParty, toParty []byte, domains []EncryptionDomain) errorfunc (m *CapabilityManager) Grant(cap *EncryptionCapability)func (m *CapabilityManager) Revoke(partyID []byte)CardanoAdapter
func NewCardanoAdapter() *CardanoAdapterfunc (a *CardanoAdapter) ChainID() ChainIDfunc (a *CardanoAdapter) ChainName() stringfunc (a *CardanoAdapter) Close() errorfunc (a *CardanoAdapter) GetBlockTime() time.Durationfunc (a *CardanoAdapter) GetLatestFinalizedBlock(ctx context.Context) (uint64, error)func (a *CardanoAdapter) GetRequiredConfirmations() uint64func (a *CardanoAdapter) GetValidatorSet(ctx context.Context) (*ValidatorSet, error)func (a *CardanoAdapter) Initialize(config *ChainConfig) errorfunc (a *CardanoAdapter) IsFinalized(ctx context.Context, slot uint64) (bool, error)func (a *CardanoAdapter) VerificationMode() VerificationModefunc (a *CardanoAdapter) VerifyBlockHeader(ctx context.Context, header *BlockHeader) errorfunc (a *CardanoAdapter) VerifyEvent(ctx context.Context, event *ChainEvent) errorfunc (a *CardanoAdapter) VerifyMessage(ctx context.Context, msg *CrossChainMessage) errorfunc (a *CardanoAdapter) VerifyTransaction(ctx context.Context, proof *TxInclusionProof) errorCardanoBlock
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() []ChainChainAdapter
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) ChainCategoryChainConfig
ChainConfig contains configuration for a chain adapter
func EnrichChainConfig(config *ChainConfig) *ChainConfigfunc GetEVMCompatibleChains() []*ChainConfigfunc GetEnrichedChainConfig(chainID ChainID) *ChainConfigfunc GetNativePrimaryNetworks() []*ChainConfigChainEvent
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() []ChainIDfunc 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() *ChainRegistryfunc (r *ChainRegistry) GetAllConfigs() []*ChainConfigfunc (r *ChainRegistry) GetChainsByType(chainType ChainType) []*ChainConfigfunc (r *ChainRegistry) GetConfig(chainID ChainID) *ChainConfigfunc (r *ChainRegistry) GetEVMChains() []*ChainConfigfunc (r *ChainRegistry) GetNativeChains() []*ChainConfigfunc (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() ChainTaxonomyfunc NewStaticChainTaxonomy(chains []Chain) ChainTaxonomyChainType
ChainType categorizes chains by their fundamental architecture
func InferChainType(chainID ChainID) ChainTypefunc (ct ChainType) String() stringCollectionSchema
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) errorComputeAnchor
ComputeAnchor anchors compute result to chain
func (a *ComputeAnchor) Hash() [32]byteComputeCommittee
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() errorComputeRequest
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) *ConfidentialComputeEnginefunc (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) errorfunc (e *ConfidentialComputeEngine) SubmitRequest(ctx context.Context, req *ComputeRequest) errorfunc (e *ConfidentialComputeEngine) VerifyResult(result *ComputeResult) errorCosmosAdapter
CosmosAdapter implements IBC light client verification for Cosmos chains
func NewCosmosAdapter() *CosmosAdapterfunc (a *CosmosAdapter) ChainID() ChainIDfunc (a *CosmosAdapter) ChainName() stringfunc (a *CosmosAdapter) Close() errorfunc (a *CosmosAdapter) GetBlockTime() time.Durationfunc (a *CosmosAdapter) GetLatestFinalizedBlock(ctx context.Context) (uint64, error)func (a *CosmosAdapter) GetRequiredConfirmations() uint64func (a *CosmosAdapter) GetValidatorSet(ctx context.Context) (*ValidatorSet, error)func (a *CosmosAdapter) Initialize(config *ChainConfig) errorfunc (a *CosmosAdapter) IsFinalized(ctx context.Context, height uint64) (bool, error)func (a *CosmosAdapter) UpdateClientState(header *CosmosHeader, validatorSet *TendermintValidatorSet) errorfunc (a *CosmosAdapter) VerificationMode() VerificationModefunc (a *CosmosAdapter) VerifyBlockHeader(ctx context.Context, header *BlockHeader) errorfunc (a *CosmosAdapter) VerifyEvent(ctx context.Context, event *ChainEvent) errorfunc (a *CosmosAdapter) VerifyMessage(ctx context.Context, msg *CrossChainMessage) errorfunc (a *CosmosAdapter) VerifyTransaction(ctx context.Context, proof *TxInclusionProof) errorCosmosHeader
CosmosHeader represents a Cosmos/Tendermint block header
CosmosSDKAdapter
func NewCosmosSDKAdapter(chainID ChainID, name, prefix string, blockTime time.Duration) *CosmosSDKAdapterfunc (a *CosmosSDKAdapter) ChainID() ChainIDfunc (a *CosmosSDKAdapter) ChainName() stringfunc (a *CosmosSDKAdapter) Close() errorfunc (a *CosmosSDKAdapter) GetBlockTime() time.Durationfunc (a *CosmosSDKAdapter) GetLatestFinalizedBlock(ctx context.Context) (uint64, error)func (a *CosmosSDKAdapter) GetRequiredConfirmations() uint64func (a *CosmosSDKAdapter) GetValidatorSet(ctx context.Context) (*ValidatorSet, error)func (a *CosmosSDKAdapter) Initialize(config *ChainConfig) errorfunc (a *CosmosSDKAdapter) IsFinalized(ctx context.Context, block uint64) (bool, error)func (a *CosmosSDKAdapter) VerificationMode() VerificationModefunc (a *CosmosSDKAdapter) VerifyBlockHeader(ctx context.Context, header *BlockHeader) errorfunc (a *CosmosSDKAdapter) VerifyEvent(ctx context.Context, event *ChainEvent) errorfunc (a *CosmosSDKAdapter) VerifyMessage(ctx context.Context, msg *CrossChainMessage) errorfunc (a *CosmosSDKAdapter) VerifyTransaction(ctx context.Context, proof *TxInclusionProof) errorCosmosSDKBlock
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) *DACommitmentfunc (c *DACommitment) Verify(data []byte) errorDAConfig
DAConfig configures the DA layer
DAGAdapter
func NewDAGAdapter(chainID ChainID, name, consensusType string, blockTime time.Duration) *DAGAdapterfunc (a *DAGAdapter) ChainID() ChainIDfunc (a *DAGAdapter) ChainName() stringfunc (a *DAGAdapter) Close() errorfunc (a *DAGAdapter) GetBlockTime() time.Durationfunc (a *DAGAdapter) GetLatestFinalizedBlock(ctx context.Context) (uint64, error)func (a *DAGAdapter) GetRequiredConfirmations() uint64func (a *DAGAdapter) GetValidatorSet(ctx context.Context) (*ValidatorSet, error)func (a *DAGAdapter) Initialize(config *ChainConfig) errorfunc (a *DAGAdapter) IsFinalized(ctx context.Context, vertex uint64) (bool, error)func (a *DAGAdapter) VerificationMode() VerificationModefunc (a *DAGAdapter) VerifyBlockHeader(ctx context.Context, header *BlockHeader) errorfunc (a *DAGAdapter) VerifyEvent(ctx context.Context, event *ChainEvent) errorfunc (a *DAGAdapter) VerifyMessage(ctx context.Context, msg *CrossChainMessage) errorfunc (a *DAGAdapter) VerifyTransaction(ctx context.Context, proof *TxInclusionProof) errorDAGVertex
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) *DefaultDAClientfunc (c *DefaultDAClient) GetAvailabilityReceipt(ctx context.Context, pointer *DAPointer) (*DAReceipt, error)func (c *DefaultDAClient) GetMetrics() *DAMetricsfunc (c *DefaultDAClient) GetNodes() []*DANodefunc (c *DefaultDAClient) Prune(ctx context.Context, before time.Time) errorfunc (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) errorfunc (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) *DefaultEncryptorfunc (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]byteDomainKeyManager
DomainKeyManager manages encryption keys for different domains
func NewDomainKeyManager() *DomainKeyManagerfunc (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() *EVML2Adapterfunc NewBaseAdapter() *EVML2Adapterfunc NewOptimismAdapter() *EVML2Adapterfunc (a *EVML2Adapter) ChainID() ChainIDfunc (a *EVML2Adapter) ChainName() stringfunc (a *EVML2Adapter) Close() errorfunc (a *EVML2Adapter) GetBlockTime() time.Durationfunc (a *EVML2Adapter) GetLatestFinalizedBlock(ctx context.Context) (uint64, error)func (a *EVML2Adapter) GetRequiredConfirmations() uint64func (a *EVML2Adapter) GetValidatorSet(ctx context.Context) (*ValidatorSet, error)func (a *EVML2Adapter) Initialize(config *ChainConfig) errorfunc (a *EVML2Adapter) IsFinalized(ctx context.Context, block uint64) (bool, error)func (a *EVML2Adapter) VerificationMode() VerificationModefunc (a *EVML2Adapter) VerifyBlockHeader(ctx context.Context, header *BlockHeader) errorfunc (a *EVML2Adapter) VerifyEvent(ctx context.Context, event *ChainEvent) errorfunc (a *EVML2Adapter) VerifyMessage(ctx context.Context, msg *CrossChainMessage) errorfunc (a *EVML2Adapter) VerifyTransaction(ctx context.Context, proof *TxInclusionProof) errorEncryptionCapability
EncryptionCapability represents what a party can do with encrypted data
EncryptionDomain
EncryptionDomain defines the privacy boundary for data
func (d EncryptionDomain) String() stringEncryptor
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() *EthereumAdapterfunc (a *EthereumAdapter) ChainID() ChainIDfunc (a *EthereumAdapter) ChainName() stringfunc (a *EthereumAdapter) Close() errorfunc (a *EthereumAdapter) GetBlockTime() time.Durationfunc (a *EthereumAdapter) GetLatestFinalizedBlock(ctx context.Context) (uint64, error)func (a *EthereumAdapter) GetRequiredConfirmations() uint64func (a *EthereumAdapter) GetValidatorSet(ctx context.Context) (*ValidatorSet, error)func (a *EthereumAdapter) Initialize(config *ChainConfig) errorfunc (a *EthereumAdapter) IsFinalized(ctx context.Context, slot uint64) (bool, error)func (a *EthereumAdapter) ProcessLightClientUpdate(update *LightClientUpdate) errorfunc (a *EthereumAdapter) VerificationMode() VerificationModefunc (a *EthereumAdapter) VerifyBlockHeader(ctx context.Context, header *BlockHeader) errorfunc (a *EthereumAdapter) VerifyEvent(ctx context.Context, event *ChainEvent) errorfunc (a *EthereumAdapter) VerifyMessage(ctx context.Context, msg *CrossChainMessage) errorfunc (a *EthereumAdapter) VerifyTransaction(ctx context.Context, proof *TxInclusionProof) errorEthereumHeader
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) *GenericEVMAdapterfunc (a *GenericEVMAdapter) ChainID() ChainIDfunc (a *GenericEVMAdapter) ChainName() stringfunc (a *GenericEVMAdapter) Close() errorfunc (a *GenericEVMAdapter) EVMChainID() uint64func (a *GenericEVMAdapter) GetBlockTime() time.Durationfunc (a *GenericEVMAdapter) GetLatestFinalizedBlock(ctx context.Context) (uint64, error)func (a *GenericEVMAdapter) GetRequiredConfirmations() uint64func (a *GenericEVMAdapter) GetValidatorSet(ctx context.Context) (*ValidatorSet, error)func (a *GenericEVMAdapter) Initialize(config *ChainConfig) errorfunc (a *GenericEVMAdapter) IsFinalized(ctx context.Context, block uint64) (bool, error)func (a *GenericEVMAdapter) VerificationMode() VerificationModefunc (a *GenericEVMAdapter) VerifyBlockHeader(ctx context.Context, header *BlockHeader) errorfunc (a *GenericEVMAdapter) VerifyEvent(ctx context.Context, event *ChainEvent) errorfunc (a *GenericEVMAdapter) VerifyMessage(ctx context.Context, msg *CrossChainMessage) errorfunc (a *GenericEVMAdapter) VerifyTransaction(ctx context.Context, proof *TxInclusionProof) errorHeimdallCheckpoint
IBCClientState
IBCClientState represents IBC light client state
IBCConsensusState
IBCConsensusState represents IBC consensus state
ICPAdapter
func NewICPAdapter() *ICPAdapterfunc (a *ICPAdapter) ChainID() ChainIDfunc (a *ICPAdapter) ChainName() stringfunc (a *ICPAdapter) Close() errorfunc (a *ICPAdapter) GetBlockTime() time.Durationfunc (a *ICPAdapter) GetLatestFinalizedBlock(ctx context.Context) (uint64, error)func (a *ICPAdapter) GetRequiredConfirmations() uint64func (a *ICPAdapter) GetValidatorSet(ctx context.Context) (*ValidatorSet, error)func (a *ICPAdapter) Initialize(config *ChainConfig) errorfunc (a *ICPAdapter) IsFinalized(ctx context.Context, block uint64) (bool, error)func (a *ICPAdapter) VerificationMode() VerificationModefunc (a *ICPAdapter) VerifyBlockHeader(ctx context.Context, header *BlockHeader) errorfunc (a *ICPAdapter) VerifyEvent(ctx context.Context, event *ChainEvent) errorfunc (a *ICPAdapter) VerifyMessage(ctx context.Context, msg *CrossChainMessage) errorfunc (a *ICPAdapter) VerifyTransaction(ctx context.Context, proof *TxInclusionProof) errorICPBlock
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() *MoneroAdapterfunc (a *MoneroAdapter) ChainID() ChainIDfunc (a *MoneroAdapter) ChainName() stringfunc (a *MoneroAdapter) Close() errorfunc (a *MoneroAdapter) GetBlockTime() time.Durationfunc (a *MoneroAdapter) GetLatestFinalizedBlock(ctx context.Context) (uint64, error)func (a *MoneroAdapter) GetRequiredConfirmations() uint64func (a *MoneroAdapter) GetValidatorSet(ctx context.Context) (*ValidatorSet, error)func (a *MoneroAdapter) Initialize(config *ChainConfig) errorfunc (a *MoneroAdapter) IsFinalized(ctx context.Context, block uint64) (bool, error)func (a *MoneroAdapter) VerificationMode() VerificationModefunc (a *MoneroAdapter) VerifyBlockHeader(ctx context.Context, header *BlockHeader) errorfunc (a *MoneroAdapter) VerifyEvent(ctx context.Context, event *ChainEvent) errorfunc (a *MoneroAdapter) VerifyMessage(ctx context.Context, msg *CrossChainMessage) errorfunc (a *MoneroAdapter) VerifyTransaction(ctx context.Context, proof *TxInclusionProof) errorMoneroBlock
MultiChainMPCWallet
MultiChainMPCWallet implements MPCWallet for multi-chain operations
func NewMultiChainMPCWallet(signer MPCSigner, threshold, totalShares int) *MultiChainMPCWalletfunc (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() []ChainIDfunc (w *MultiChainMPCWallet) HasKeyForChain(chainID ChainID) boolfunc (w *MultiChainMPCWallet) InitializeChain(config *ChainConfig) errorfunc (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() *NEARAdapterfunc (a *NEARAdapter) ChainID() ChainIDfunc (a *NEARAdapter) ChainName() stringfunc (a *NEARAdapter) Close() errorfunc (a *NEARAdapter) GetBlockTime() time.Durationfunc (a *NEARAdapter) GetLatestFinalizedBlock(ctx context.Context) (uint64, error)func (a *NEARAdapter) GetRequiredConfirmations() uint64func (a *NEARAdapter) GetValidatorSet(ctx context.Context) (*ValidatorSet, error)func (a *NEARAdapter) Initialize(config *ChainConfig) errorfunc (a *NEARAdapter) IsFinalized(ctx context.Context, block uint64) (bool, error)func (a *NEARAdapter) VerificationMode() VerificationModefunc (a *NEARAdapter) VerifyBlockHeader(ctx context.Context, header *BlockHeader) errorfunc (a *NEARAdapter) VerifyEvent(ctx context.Context, event *ChainEvent) errorfunc (a *NEARAdapter) VerifyMessage(ctx context.Context, msg *CrossChainMessage) errorfunc (a *NEARAdapter) VerifyTransaction(ctx context.Context, proof *TxInclusionProof) errorNEARBlock
NEARChunkHeader
NEARValidator
OpBatch
OpBatch represents a batch of operations committed together
func (b *OpBatch) Hash() [32]byteOpLog
OpLog maintains the operation log for a document
func NewOpLog(docID DocumentID) *OpLogfunc (l *OpLog) Append(op *Operation) errorfunc (l *OpLog) GetBySeq(seq uint64) (*Operation, bool)func (l *OpLog) GetRange(fromSeq, toSeq uint64) []*OperationOperation
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) *ParachainAdapterfunc (a *ParachainAdapter) ChainID() ChainIDfunc (a *ParachainAdapter) ChainName() stringfunc (a *ParachainAdapter) Close() errorfunc (a *ParachainAdapter) GetBlockTime() time.Durationfunc (a *ParachainAdapter) GetLatestFinalizedBlock(ctx context.Context) (uint64, error)func (a *ParachainAdapter) GetRequiredConfirmations() uint64func (a *ParachainAdapter) GetValidatorSet(ctx context.Context) (*ValidatorSet, error)func (a *ParachainAdapter) Initialize(config *ChainConfig) errorfunc (a *ParachainAdapter) IsFinalized(ctx context.Context, block uint64) (bool, error)func (a *ParachainAdapter) VerificationMode() VerificationModefunc (a *ParachainAdapter) VerifyBlockHeader(ctx context.Context, header *BlockHeader) errorfunc (a *ParachainAdapter) VerifyEvent(ctx context.Context, event *ChainEvent) errorfunc (a *ParachainAdapter) VerifyMessage(ctx context.Context, msg *CrossChainMessage) errorfunc (a *ParachainAdapter) VerifyTransaction(ctx context.Context, proof *TxInclusionProof) errorPolkadotAdapter
PolkadotAdapter implements GRANDPA/BEEFY verification for Polkadot
func NewPolkadotAdapter() *PolkadotAdapterfunc (a *PolkadotAdapter) ChainID() ChainIDfunc (a *PolkadotAdapter) ChainName() stringfunc (a *PolkadotAdapter) Close() errorfunc (a *PolkadotAdapter) GetBlockTime() time.Durationfunc (a *PolkadotAdapter) GetLatestFinalizedBlock(ctx context.Context) (uint64, error)func (a *PolkadotAdapter) GetRequiredConfirmations() uint64func (a *PolkadotAdapter) GetValidatorSet(ctx context.Context) (*ValidatorSet, error)func (a *PolkadotAdapter) Initialize(config *ChainConfig) errorfunc (a *PolkadotAdapter) IsFinalized(ctx context.Context, block uint64) (bool, error)func (a *PolkadotAdapter) VerificationMode() VerificationModefunc (a *PolkadotAdapter) VerifyBlockHeader(ctx context.Context, header *BlockHeader) errorfunc (a *PolkadotAdapter) VerifyEvent(ctx context.Context, event *ChainEvent) errorfunc (a *PolkadotAdapter) VerifyMessage(ctx context.Context, msg *CrossChainMessage) errorfunc (a *PolkadotAdapter) VerifyTransaction(ctx context.Context, proof *TxInclusionProof) errorPolkadotAuthority
PolkadotHeader
PolygonAdapter
func NewPolygonAdapter() *PolygonAdapterfunc (a *PolygonAdapter) ChainID() ChainIDfunc (a *PolygonAdapter) ChainName() stringfunc (a *PolygonAdapter) Close() errorfunc (a *PolygonAdapter) GetBlockTime() time.Durationfunc (a *PolygonAdapter) GetLatestFinalizedBlock(ctx context.Context) (uint64, error)func (a *PolygonAdapter) GetRequiredConfirmations() uint64func (a *PolygonAdapter) GetValidatorSet(ctx context.Context) (*ValidatorSet, error)func (a *PolygonAdapter) Initialize(config *ChainConfig) errorfunc (a *PolygonAdapter) IsFinalized(ctx context.Context, block uint64) (bool, error)func (a *PolygonAdapter) VerificationMode() VerificationModefunc (a *PolygonAdapter) VerifyBlockHeader(ctx context.Context, header *BlockHeader) errorfunc (a *PolygonAdapter) VerifyEvent(ctx context.Context, event *ChainEvent) errorfunc (a *PolygonAdapter) VerifyMessage(ctx context.Context, msg *CrossChainMessage) errorfunc (a *PolygonAdapter) VerifyTransaction(ctx context.Context, proof *TxInclusionProof) errorRegistry
Registry manages chain adapters
func NewRegistry() *Registryfunc (r *Registry) Close() errorfunc (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() []ChainIDfunc (r *Registry) Register(adapter ChainAdapter, config *ChainConfig) errorfunc (r *Registry) Unregister(chainID ChainID) errorfunc (r *Registry) VerifyMessage(ctx context.Context, msg *CrossChainMessage) errorRippleAdapter
func NewRippleAdapter() *RippleAdapterfunc (a *RippleAdapter) ChainID() ChainIDfunc (a *RippleAdapter) ChainName() stringfunc (a *RippleAdapter) Close() errorfunc (a *RippleAdapter) GetBlockTime() time.Durationfunc (a *RippleAdapter) GetLatestFinalizedBlock(ctx context.Context) (uint64, error)func (a *RippleAdapter) GetRequiredConfirmations() uint64func (a *RippleAdapter) GetValidatorSet(ctx context.Context) (*ValidatorSet, error)func (a *RippleAdapter) Initialize(config *ChainConfig) errorfunc (a *RippleAdapter) IsFinalized(ctx context.Context, block uint64) (bool, error)func (a *RippleAdapter) VerificationMode() VerificationModefunc (a *RippleAdapter) VerifyBlockHeader(ctx context.Context, header *BlockHeader) errorfunc (a *RippleAdapter) VerifyEvent(ctx context.Context, event *ChainEvent) errorfunc (a *RippleAdapter) VerifyMessage(ctx context.Context, msg *CrossChainMessage) errorfunc (a *RippleAdapter) VerifyTransaction(ctx context.Context, proof *TxInclusionProof) errorSQLiteMaterializer
SQLiteMaterializer materializes CRDT state to SQLite
func NewSQLiteMaterializer(dbPath string, appChainID ids.ID, encryptor Encryptor) (*SQLiteMaterializer, error)func (m *SQLiteMaterializer) Close() errorfunc (m *SQLiteMaterializer) CreateCollection(ctx context.Context, schema *CollectionSchema) errorfunc (m *SQLiteMaterializer) GetDocument(ctx context.Context, docID DocumentID) (*Document, error)func (m *SQLiteMaterializer) Materialize(ctx context.Context, ops []*Operation) errorfunc (m *SQLiteMaterializer) Query(ctx context.Context, sqlQuery string, params []interface{}) ([]map[string]interface{}, error)func (m *SQLiteMaterializer) Restore(ctx context.Context, snapshot *StateSnapshot) errorfunc (m *SQLiteMaterializer) Snapshot(ctx context.Context) (*StateSnapshot, error)SamplingProof
SamplingProof proves data availability through random sampling
func (p *SamplingProof) Verify(blobCommitment [32]byte) errorSignedBridgeTransfer
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) SigningCurveSolanaAdapter
SolanaAdapter implements vote attestation verification for Solana
func NewSolanaAdapter() *SolanaAdapterfunc (a *SolanaAdapter) ChainID() ChainIDfunc (a *SolanaAdapter) ChainName() stringfunc (a *SolanaAdapter) Close() errorfunc (a *SolanaAdapter) GetBlockTime() time.Durationfunc (a *SolanaAdapter) GetLatestFinalizedBlock(ctx context.Context) (uint64, error)func (a *SolanaAdapter) GetRequiredConfirmations() uint64func (a *SolanaAdapter) GetValidatorSet(ctx context.Context) (*ValidatorSet, error)func (a *SolanaAdapter) Initialize(config *ChainConfig) errorfunc (a *SolanaAdapter) IsFinalized(ctx context.Context, slot uint64) (bool, error)func (a *SolanaAdapter) ProcessVoteAttestation(attestation *SolanaVoteAttestation) errorfunc (a *SolanaAdapter) UpdateValidatorSet(validators []*SolanaValidator, epoch uint64) errorfunc (a *SolanaAdapter) VerificationMode() VerificationModefunc (a *SolanaAdapter) VerifyBlockHeader(ctx context.Context, header *BlockHeader) errorfunc (a *SolanaAdapter) VerifyEvent(ctx context.Context, event *ChainEvent) errorfunc (a *SolanaAdapter) VerifyMessage(ctx context.Context, msg *CrossChainMessage) errorfunc (a *SolanaAdapter) VerifyTransaction(ctx context.Context, proof *TxInclusionProof) errorSolanaSlot
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() *StellarAdapterfunc (a *StellarAdapter) ChainID() ChainIDfunc (a *StellarAdapter) ChainName() stringfunc (a *StellarAdapter) Close() errorfunc (a *StellarAdapter) GetBlockTime() time.Durationfunc (a *StellarAdapter) GetLatestFinalizedBlock(ctx context.Context) (uint64, error)func (a *StellarAdapter) GetRequiredConfirmations() uint64func (a *StellarAdapter) GetValidatorSet(ctx context.Context) (*ValidatorSet, error)func (a *StellarAdapter) Initialize(config *ChainConfig) errorfunc (a *StellarAdapter) IsFinalized(ctx context.Context, ledger uint64) (bool, error)func (a *StellarAdapter) VerificationMode() VerificationModefunc (a *StellarAdapter) VerifyBlockHeader(ctx context.Context, header *BlockHeader) errorfunc (a *StellarAdapter) VerifyEvent(ctx context.Context, event *ChainEvent) errorfunc (a *StellarAdapter) VerifyMessage(ctx context.Context, msg *CrossChainMessage) errorfunc (a *StellarAdapter) VerifyTransaction(ctx context.Context, proof *TxInclusionProof) errorStellarLedger
StellarQuorumSet
SuiAdapter
func NewSuiAdapter() *SuiAdapterfunc (a *SuiAdapter) ChainID() ChainIDfunc (a *SuiAdapter) ChainName() stringfunc (a *SuiAdapter) Close() errorfunc (a *SuiAdapter) GetBlockTime() time.Durationfunc (a *SuiAdapter) GetLatestFinalizedBlock(ctx context.Context) (uint64, error)func (a *SuiAdapter) GetRequiredConfirmations() uint64func (a *SuiAdapter) GetValidatorSet(ctx context.Context) (*ValidatorSet, error)func (a *SuiAdapter) Initialize(config *ChainConfig) errorfunc (a *SuiAdapter) IsFinalized(ctx context.Context, checkpoint uint64) (bool, error)func (a *SuiAdapter) VerificationMode() VerificationModefunc (a *SuiAdapter) VerifyBlockHeader(ctx context.Context, header *BlockHeader) errorfunc (a *SuiAdapter) VerifyEvent(ctx context.Context, event *ChainEvent) errorfunc (a *SuiAdapter) VerifyMessage(ctx context.Context, msg *CrossChainMessage) errorfunc (a *SuiAdapter) VerifyTransaction(ctx context.Context, proof *TxInclusionProof) errorSuiCheckpoint
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() errorTEEType
TEEType defines the type of Trusted Execution Environment
func (t TEEType) String() stringTONAdapter
func NewTONAdapter() *TONAdapterfunc (a *TONAdapter) ChainID() ChainIDfunc (a *TONAdapter) ChainName() stringfunc (a *TONAdapter) Close() errorfunc (a *TONAdapter) GetBlockTime() time.Durationfunc (a *TONAdapter) GetLatestFinalizedBlock(ctx context.Context) (uint64, error)func (a *TONAdapter) GetRequiredConfirmations() uint64func (a *TONAdapter) GetValidatorSet(ctx context.Context) (*ValidatorSet, error)func (a *TONAdapter) Initialize(config *ChainConfig) errorfunc (a *TONAdapter) IsFinalized(ctx context.Context, seqno uint64) (bool, error)func (a *TONAdapter) VerificationMode() VerificationModefunc (a *TONAdapter) VerifyBlockHeader(ctx context.Context, header *BlockHeader) errorfunc (a *TONAdapter) VerifyEvent(ctx context.Context, event *ChainEvent) errorfunc (a *TONAdapter) VerifyMessage(ctx context.Context, msg *CrossChainMessage) errorfunc (a *TONAdapter) VerifyTransaction(ctx context.Context, proof *TxInclusionProof) errorTONBlock
TONValidator
TRONAdapter
func NewTRONAdapter() *TRONAdapterfunc (a *TRONAdapter) ChainID() ChainIDfunc (a *TRONAdapter) ChainName() stringfunc (a *TRONAdapter) Close() errorfunc (a *TRONAdapter) GetBlockTime() time.Durationfunc (a *TRONAdapter) GetLatestFinalizedBlock(ctx context.Context) (uint64, error)func (a *TRONAdapter) GetRequiredConfirmations() uint64func (a *TRONAdapter) GetValidatorSet(ctx context.Context) (*ValidatorSet, error)func (a *TRONAdapter) Initialize(config *ChainConfig) errorfunc (a *TRONAdapter) IsFinalized(ctx context.Context, block uint64) (bool, error)func (a *TRONAdapter) VerificationMode() VerificationModefunc (a *TRONAdapter) VerifyBlockHeader(ctx context.Context, header *BlockHeader) errorfunc (a *TRONAdapter) VerifyEvent(ctx context.Context, event *ChainEvent) errorfunc (a *TRONAdapter) VerifyMessage(ctx context.Context, msg *CrossChainMessage) errorfunc (a *TRONAdapter) VerifyTransaction(ctx context.Context, proof *TxInclusionProof) errorTRONBlock
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() *TezosAdapterfunc (a *TezosAdapter) ChainID() ChainIDfunc (a *TezosAdapter) ChainName() stringfunc (a *TezosAdapter) Close() errorfunc (a *TezosAdapter) GetBlockTime() time.Durationfunc (a *TezosAdapter) GetLatestFinalizedBlock(ctx context.Context) (uint64, error)func (a *TezosAdapter) GetRequiredConfirmations() uint64func (a *TezosAdapter) GetValidatorSet(ctx context.Context) (*ValidatorSet, error)func (a *TezosAdapter) Initialize(config *ChainConfig) errorfunc (a *TezosAdapter) IsFinalized(ctx context.Context, level uint64) (bool, error)func (a *TezosAdapter) VerificationMode() VerificationModefunc (a *TezosAdapter) VerifyBlockHeader(ctx context.Context, header *BlockHeader) errorfunc (a *TezosAdapter) VerifyEvent(ctx context.Context, event *ChainEvent) errorfunc (a *TezosAdapter) VerifyMessage(ctx context.Context, msg *CrossChainMessage) errorfunc (a *TezosAdapter) VerifyTransaction(ctx context.Context, proof *TxInclusionProof) errorTezosBaker
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) *ZKRollupAdapterfunc (a *ZKRollupAdapter) ChainID() ChainIDfunc (a *ZKRollupAdapter) ChainName() stringfunc (a *ZKRollupAdapter) Close() errorfunc (a *ZKRollupAdapter) EVMChainID() uint64func (a *ZKRollupAdapter) GetBlockTime() time.Durationfunc (a *ZKRollupAdapter) GetLatestFinalizedBlock(ctx context.Context) (uint64, error)func (a *ZKRollupAdapter) GetRequiredConfirmations() uint64func (a *ZKRollupAdapter) GetValidatorSet(ctx context.Context) (*ValidatorSet, error)func (a *ZKRollupAdapter) Initialize(config *ChainConfig) errorfunc (a *ZKRollupAdapter) IsFinalized(ctx context.Context, block uint64) (bool, error)func (a *ZKRollupAdapter) VerificationMode() VerificationModefunc (a *ZKRollupAdapter) VerifyBlockHeader(ctx context.Context, header *BlockHeader) errorfunc (a *ZKRollupAdapter) VerifyEvent(ctx context.Context, event *ChainEvent) errorfunc (a *ZKRollupAdapter) VerifyMessage(ctx context.Context, msg *CrossChainMessage) errorfunc (a *ZKRollupAdapter) VerifyTransaction(ctx context.Context, proof *TxInclusionProof) error