Documentation ¶
Index ¶
- Variables
- type AttestationContainer
- func (ac *AttestationContainer) Contains(att *ethpb.Attestation) bool
- func (*AttestationContainer) Descriptor() ([]byte, []int)
- func (m *AttestationContainer) GetData() *v1alpha1.AttestationData
- func (m *AttestationContainer) GetSignaturePairs() []*AttestationContainer_SignaturePair
- func (ac *AttestationContainer) InsertAttestation(att *ethpb.Attestation)
- func (m *AttestationContainer) Marshal() (dAtA []byte, err error)
- func (m *AttestationContainer) MarshalTo(dAtA []byte) (int, error)
- func (*AttestationContainer) ProtoMessage()
- func (m *AttestationContainer) Reset()
- func (m *AttestationContainer) Size() (n int)
- func (m *AttestationContainer) String() string
- func (ac *AttestationContainer) ToAttestations() []*ethpb.Attestation
- func (m *AttestationContainer) Unmarshal(dAtA []byte) error
- func (m *AttestationContainer) XXX_DiscardUnknown()
- func (m *AttestationContainer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *AttestationContainer) XXX_Merge(src proto.Message)
- func (m *AttestationContainer) XXX_Size() int
- func (m *AttestationContainer) XXX_Unmarshal(b []byte) error
- type AttestationContainer_SignaturePair
- func (*AttestationContainer_SignaturePair) Descriptor() ([]byte, []int)
- func (m *AttestationContainer_SignaturePair) GetAggregationBits() github_com_prysmaticlabs_go_bitfield.Bitlist
- func (m *AttestationContainer_SignaturePair) GetSignature() []byte
- func (m *AttestationContainer_SignaturePair) Marshal() (dAtA []byte, err error)
- func (m *AttestationContainer_SignaturePair) MarshalTo(dAtA []byte) (int, error)
- func (*AttestationContainer_SignaturePair) ProtoMessage()
- func (m *AttestationContainer_SignaturePair) Reset()
- func (m *AttestationContainer_SignaturePair) Size() (n int)
- func (m *AttestationContainer_SignaturePair) String() string
- func (m *AttestationContainer_SignaturePair) Unmarshal(dAtA []byte) error
- func (m *AttestationContainer_SignaturePair) XXX_DiscardUnknown()
- func (m *AttestationContainer_SignaturePair) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *AttestationContainer_SignaturePair) XXX_Merge(src proto.Message)
- func (m *AttestationContainer_SignaturePair) XXX_Size() int
- func (m *AttestationContainer_SignaturePair) XXX_Unmarshal(b []byte) error
- type FinalizedBlockRootContainer
- func (*FinalizedBlockRootContainer) Descriptor() ([]byte, []int)
- func (m *FinalizedBlockRootContainer) GetChildRoot() []byte
- func (m *FinalizedBlockRootContainer) GetParentRoot() []byte
- func (m *FinalizedBlockRootContainer) Marshal() (dAtA []byte, err error)
- func (m *FinalizedBlockRootContainer) MarshalTo(dAtA []byte) (int, error)
- func (*FinalizedBlockRootContainer) ProtoMessage()
- func (m *FinalizedBlockRootContainer) Reset()
- func (m *FinalizedBlockRootContainer) Size() (n int)
- func (m *FinalizedBlockRootContainer) String() string
- func (m *FinalizedBlockRootContainer) Unmarshal(dAtA []byte) error
- func (m *FinalizedBlockRootContainer) XXX_DiscardUnknown()
- func (m *FinalizedBlockRootContainer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *FinalizedBlockRootContainer) XXX_Merge(src proto.Message)
- func (m *FinalizedBlockRootContainer) XXX_Size() int
- func (m *FinalizedBlockRootContainer) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidLengthAttestationContainer = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowAttestationContainer = fmt.Errorf("proto: integer overflow") )
View Source
var ( ErrInvalidLengthFinalizedBlockRootContainer = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowFinalizedBlockRootContainer = fmt.Errorf("proto: integer overflow") )
Functions ¶
This section is empty.
Types ¶
type AttestationContainer ¶
type AttestationContainer struct { Data *v1alpha1.AttestationData `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` SignaturePairs []*AttestationContainer_SignaturePair `protobuf:"bytes,2,rep,name=signature_pairs,json=signaturePairs,proto3" json:"signature_pairs,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func NewContainerFromAttestations ¶
func NewContainerFromAttestations(atts []*ethpb.Attestation) *AttestationContainer
NewContainerFromAttestations creates a new attestation contain with signature pairs from the given list of attestations.
func (*AttestationContainer) Contains ¶
func (ac *AttestationContainer) Contains(att *ethpb.Attestation) bool
Contains returns true if the attestation bits are fully contained in some attestations.
func (*AttestationContainer) Descriptor ¶
func (*AttestationContainer) Descriptor() ([]byte, []int)
func (*AttestationContainer) GetData ¶
func (m *AttestationContainer) GetData() *v1alpha1.AttestationData
func (*AttestationContainer) GetSignaturePairs ¶
func (m *AttestationContainer) GetSignaturePairs() []*AttestationContainer_SignaturePair
func (*AttestationContainer) InsertAttestation ¶
func (ac *AttestationContainer) InsertAttestation(att *ethpb.Attestation)
InsertAttestation if bitfields do not exist already.
func (*AttestationContainer) Marshal ¶
func (m *AttestationContainer) Marshal() (dAtA []byte, err error)
func (*AttestationContainer) MarshalTo ¶
func (m *AttestationContainer) MarshalTo(dAtA []byte) (int, error)
func (*AttestationContainer) ProtoMessage ¶
func (*AttestationContainer) ProtoMessage()
func (*AttestationContainer) Reset ¶
func (m *AttestationContainer) Reset()
func (*AttestationContainer) Size ¶
func (m *AttestationContainer) Size() (n int)
func (*AttestationContainer) String ¶
func (m *AttestationContainer) String() string
func (*AttestationContainer) ToAttestations ¶
func (ac *AttestationContainer) ToAttestations() []*ethpb.Attestation
ToAttestations converts an attestationContainer signature pairs to full attestations.
func (*AttestationContainer) Unmarshal ¶
func (m *AttestationContainer) Unmarshal(dAtA []byte) error
func (*AttestationContainer) XXX_DiscardUnknown ¶
func (m *AttestationContainer) XXX_DiscardUnknown()
func (*AttestationContainer) XXX_Marshal ¶
func (m *AttestationContainer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*AttestationContainer) XXX_Merge ¶
func (m *AttestationContainer) XXX_Merge(src proto.Message)
func (*AttestationContainer) XXX_Size ¶
func (m *AttestationContainer) XXX_Size() int
func (*AttestationContainer) XXX_Unmarshal ¶
func (m *AttestationContainer) XXX_Unmarshal(b []byte) error
type AttestationContainer_SignaturePair ¶
type AttestationContainer_SignaturePair struct { AggregationBits github_com_prysmaticlabs_go_bitfield.Bitlist `` /* 160-byte string literal not displayed */ Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*AttestationContainer_SignaturePair) Descriptor ¶
func (*AttestationContainer_SignaturePair) Descriptor() ([]byte, []int)
func (*AttestationContainer_SignaturePair) GetAggregationBits ¶
func (m *AttestationContainer_SignaturePair) GetAggregationBits() github_com_prysmaticlabs_go_bitfield.Bitlist
func (*AttestationContainer_SignaturePair) GetSignature ¶
func (m *AttestationContainer_SignaturePair) GetSignature() []byte
func (*AttestationContainer_SignaturePair) Marshal ¶
func (m *AttestationContainer_SignaturePair) Marshal() (dAtA []byte, err error)
func (*AttestationContainer_SignaturePair) MarshalTo ¶
func (m *AttestationContainer_SignaturePair) MarshalTo(dAtA []byte) (int, error)
func (*AttestationContainer_SignaturePair) ProtoMessage ¶
func (*AttestationContainer_SignaturePair) ProtoMessage()
func (*AttestationContainer_SignaturePair) Reset ¶
func (m *AttestationContainer_SignaturePair) Reset()
func (*AttestationContainer_SignaturePair) Size ¶
func (m *AttestationContainer_SignaturePair) Size() (n int)
func (*AttestationContainer_SignaturePair) String ¶
func (m *AttestationContainer_SignaturePair) String() string
func (*AttestationContainer_SignaturePair) Unmarshal ¶
func (m *AttestationContainer_SignaturePair) Unmarshal(dAtA []byte) error
func (*AttestationContainer_SignaturePair) XXX_DiscardUnknown ¶
func (m *AttestationContainer_SignaturePair) XXX_DiscardUnknown()
func (*AttestationContainer_SignaturePair) XXX_Marshal ¶
func (m *AttestationContainer_SignaturePair) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*AttestationContainer_SignaturePair) XXX_Merge ¶
func (m *AttestationContainer_SignaturePair) XXX_Merge(src proto.Message)
func (*AttestationContainer_SignaturePair) XXX_Size ¶
func (m *AttestationContainer_SignaturePair) XXX_Size() int
func (*AttestationContainer_SignaturePair) XXX_Unmarshal ¶
func (m *AttestationContainer_SignaturePair) XXX_Unmarshal(b []byte) error
type FinalizedBlockRootContainer ¶ added in v0.2.3
type FinalizedBlockRootContainer struct { ParentRoot []byte `protobuf:"bytes,1,opt,name=parent_root,json=parentRoot,proto3" json:"parent_root,omitempty"` ChildRoot []byte `protobuf:"bytes,2,opt,name=child_root,json=childRoot,proto3" json:"child_root,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*FinalizedBlockRootContainer) Descriptor ¶ added in v0.2.3
func (*FinalizedBlockRootContainer) Descriptor() ([]byte, []int)
func (*FinalizedBlockRootContainer) GetChildRoot ¶ added in v0.2.3
func (m *FinalizedBlockRootContainer) GetChildRoot() []byte
func (*FinalizedBlockRootContainer) GetParentRoot ¶ added in v0.2.3
func (m *FinalizedBlockRootContainer) GetParentRoot() []byte
func (*FinalizedBlockRootContainer) Marshal ¶ added in v0.2.3
func (m *FinalizedBlockRootContainer) Marshal() (dAtA []byte, err error)
func (*FinalizedBlockRootContainer) MarshalTo ¶ added in v0.2.3
func (m *FinalizedBlockRootContainer) MarshalTo(dAtA []byte) (int, error)
func (*FinalizedBlockRootContainer) ProtoMessage ¶ added in v0.2.3
func (*FinalizedBlockRootContainer) ProtoMessage()
func (*FinalizedBlockRootContainer) Reset ¶ added in v0.2.3
func (m *FinalizedBlockRootContainer) Reset()
func (*FinalizedBlockRootContainer) Size ¶ added in v0.2.3
func (m *FinalizedBlockRootContainer) Size() (n int)
func (*FinalizedBlockRootContainer) String ¶ added in v0.2.3
func (m *FinalizedBlockRootContainer) String() string
func (*FinalizedBlockRootContainer) Unmarshal ¶ added in v0.2.3
func (m *FinalizedBlockRootContainer) Unmarshal(dAtA []byte) error
func (*FinalizedBlockRootContainer) XXX_DiscardUnknown ¶ added in v0.2.3
func (m *FinalizedBlockRootContainer) XXX_DiscardUnknown()
func (*FinalizedBlockRootContainer) XXX_Marshal ¶ added in v0.2.3
func (m *FinalizedBlockRootContainer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*FinalizedBlockRootContainer) XXX_Merge ¶ added in v0.2.3
func (m *FinalizedBlockRootContainer) XXX_Merge(src proto.Message)
func (*FinalizedBlockRootContainer) XXX_Size ¶ added in v0.2.3
func (m *FinalizedBlockRootContainer) XXX_Size() int
func (*FinalizedBlockRootContainer) XXX_Unmarshal ¶ added in v0.2.3
func (m *FinalizedBlockRootContainer) XXX_Unmarshal(b []byte) error
Click to show internal directories.
Click to hide internal directories.