db

package
v0.2.6 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 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")
)
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 (*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"`
	VoteCounted          bool                                         `protobuf:"varint,3,opt,name=vote_counted,json=voteCounted,proto3" json:"vote_counted,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) GetVoteCounted added in v0.2.4

func (m *AttestationContainer_SignaturePair) GetVoteCounted() bool

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

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

Jump to

Keyboard shortcuts

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