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
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidLengthAttestationContainer = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowAttestationContainer = 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
Click to show internal directories.
Click to hide internal directories.