db

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2019 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

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 (*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 (*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 (*AttestationContainer_SignaturePair) Size

func (*AttestationContainer_SignaturePair) 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 (*AttestationContainer_SignaturePair) XXX_Size

func (*AttestationContainer_SignaturePair) XXX_Unmarshal

func (m *AttestationContainer_SignaturePair) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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