Documentation ¶
Index ¶
- Constants
- Variables
- func ComputeClusterIDHash(address common.Address, operatorIds []uint64) []byte
- func ComputeQuorumAndPartialQuorum(committeeSize int) (quorum uint64, partialQuorum uint64)
- func DeserializeBLSPublicKey(b []byte) (bls.PublicKey, error)
- func GetDefaultDomain() spectypes.DomainType
- func ReconstructSignature(ps *specssv.PartialSigContainer, root [32]byte, validatorPubKey []byte) ([]byte, error)
- func SetDefaultDomain(d spectypes.DomainType)
- func ValidCommitteeSize(committeeSize int) bool
- func VerifyByOperators(s spectypes.Signature, data spectypes.MessageSignature, ...) error
- func VerifyReconstructedSignature(sig *bls.Sign, validatorPubKey []byte, root [32]byte) error
- type EventMsg
- type EventType
- type ExecuteDutyData
- type Metadata
- type SSVShare
- type TimeoutData
Constants ¶
const ()
Variables ¶
var ( MetricsSignaturesVerifications = promauto.NewCounterVec(prometheus.CounterOpts{ Name: "ssv_signature_verifications", Help: "Number of signatures verifications", }, []string{}) )
Functions ¶
func ComputeClusterIDHash ¶ added in v0.4.7
ComputeClusterIDHash will compute cluster ID hash with given owner address and operator ids
func ComputeQuorumAndPartialQuorum ¶ added in v0.5.4
func DeserializeBLSPublicKey ¶ added in v0.4.7
DeserializeBLSPublicKey deserializes a bls.PublicKey from bytes, caching the result to avoid repeated deserialization.
func GetDefaultDomain ¶
func GetDefaultDomain() spectypes.DomainType
GetDefaultDomain returns the global domain used across the system DEPRECATED: use networkconfig.NetworkConfig.Domain instead
func ReconstructSignature ¶ added in v0.4.7
func SetDefaultDomain ¶
func SetDefaultDomain(d spectypes.DomainType)
SetDefaultDomain updates the global domain used across the system allows injecting domain for testnets DEPRECATED: use networkconfig.NetworkConfig.Domain instead
func ValidCommitteeSize ¶ added in v1.1.0
func VerifyByOperators ¶ added in v0.4.7
func VerifyByOperators(s spectypes.Signature, data spectypes.MessageSignature, domain spectypes.DomainType, sigType spectypes.SignatureType, operators []*spectypes.Operator) error
VerifyByOperators verifies signature by the provided operators This is a copy of a function with the same name from the spec, except for it's use of DeserializeBLSPublicKey function and bounded.CGO
TODO: rethink this function and consider moving/refactoring it.
Types ¶
type EventMsg ¶
func (*EventMsg) GetExecuteDutyData ¶
func (m *EventMsg) GetExecuteDutyData() (*ExecuteDutyData, error)
func (*EventMsg) GetTimeoutData ¶
func (m *EventMsg) GetTimeoutData() (*TimeoutData, error)
type ExecuteDutyData ¶
type Metadata ¶
type Metadata struct { BeaconMetadata *beaconprotocol.ValidatorMetadata OwnerAddress common.Address Liquidated bool }
Metadata represents metadata of SSVShare.
type SSVShare ¶
type SSVShare struct {}
SSVShare is a combination of spectypes.Share and its Metadata.
func (*SSVShare) BelongsToOperator ¶
func (s *SSVShare) BelongsToOperator(operatorID spectypes.OperatorID) bool
BelongsToOperator checks whether the share belongs to operator.
func (*SSVShare) HasBeaconMetadata ¶
HasBeaconMetadata checks whether the BeaconMetadata field is not nil.
func (*SSVShare) SetFeeRecipient ¶ added in v0.4.7
func (s *SSVShare) SetFeeRecipient(feeRecipient bellatrix.ExecutionAddress)