types

package
v0.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 14, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Aggregator

type Aggregator interface {
	// CollectResponseSignature collects the response signature from the operator
	CollectResponseSignature(response *ResponseWithSignature, result chan<- ValidatedResponse) error
}

Aggregator defines the interface for signature collection and aggregation services in the distributed validation system. It handles the process of collecting signatures from operators and aggregating them into a single validated response.

type ResponseWithSignature

type ResponseWithSignature struct {
	Data        []byte
	Digest      [32]byte
	Signature   *bls.Signature
	OperatorID  [32]byte
	RequestData avsitypes.DVSRequest
}

ResponseWithSignature encapsulates a response with its signature from an operator. It contains the original data, a cryptographic digest, the BLS signature, operator identification, and the original request that triggered this response.

type ValidatedResponse

type ValidatedResponse struct {
	Data                        []byte
	Err                         *rpctypes.RPCError
	Hash                        []byte
	NonSignersPubkeysG1         []*bls.G1Point
	GroupApksG1                 []*bls.G1Point
	SignersApkG2                *bls.G2Point
	SignersAggSigG1             *bls.Signature
	NonSignerGroupBitmapIndices []uint32
	GroupApkIndices             []uint32
	TotalStakeIndices           []uint32
	NonSignerStakeIndices       [][]uint32
}

ValidatedResponse represents the result of a successful signature aggregation. It contains the aggregated data, any errors encountered, cryptographic hash, public keys of non-signers, group aggregate public keys, signer information, and various bitmap indices used for on-chain verification.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL