Documentation ¶
Index ¶
- func ComputeClusterIDHash(ownerAddress []byte, operatorIds []uint64) ([]byte, error)
- 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 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 State
- type TimeoutData
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ComputeClusterIDHash ¶ added in v0.4.7
ComputeClusterIDHash will compute cluster ID hash with given owner address and operator ids
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
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
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 FeeRecipient bellatrix.ExecutionAddress }
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)
type State ¶
type State struct { ID []byte // instance Identifier Round specqbft.Round Height specqbft.Height LastPreparedRound specqbft.Round LastPreparedValue []byte ProposalAcceptedForCurrentRound *specqbft.SignedMessage Decided bool DecidedValue []byte ProposeContainer *specqbft.MsgContainer PrepareContainer *specqbft.MsgContainer CommitContainer *specqbft.MsgContainer RoundChangeContainer *specqbft.MsgContainer }