common

package
v0.9.2 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_smartbft_common_common_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type BFTMetadata

type BFTMetadata struct {
	Value      []byte                  `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
	Signatures []*BFTMetadataSignature `protobuf:"bytes,2,rep,name=signatures,proto3" json:"signatures,omitempty"`
	// contains filtered or unexported fields
}

Metadata is a common structure to be used to encode block metadata

func (*BFTMetadata) Descriptor deprecated

func (*BFTMetadata) Descriptor() ([]byte, []int)

Deprecated: Use BFTMetadata.ProtoReflect.Descriptor instead.

func (*BFTMetadata) GetSignatures

func (x *BFTMetadata) GetSignatures() []*BFTMetadataSignature

func (*BFTMetadata) GetValue

func (x *BFTMetadata) GetValue() []byte

func (*BFTMetadata) ProtoMessage

func (*BFTMetadata) ProtoMessage()

func (*BFTMetadata) ProtoReflect added in v0.8.6

func (x *BFTMetadata) ProtoReflect() protoreflect.Message

func (*BFTMetadata) Reset

func (x *BFTMetadata) Reset()

func (*BFTMetadata) String

func (x *BFTMetadata) String() string

type BFTMetadataSignature

type BFTMetadataSignature struct {
	SignatureHeader []byte `protobuf:"bytes,1,opt,name=signature_header,json=signatureHeader,proto3" json:"signature_header,omitempty"` // An encoded SignatureHeader
	Signature       []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"`                                    // The signature over the concatenation of the Metadata value bytes, signatureHeader, and block header
	SignerId        uint64 `protobuf:"varint,3,opt,name=signer_id,json=signerId,proto3" json:"signer_id,omitempty"`
	Nonce           []byte `protobuf:"bytes,4,opt,name=nonce,proto3" json:"nonce,omitempty"`
	// contains filtered or unexported fields
}

func (*BFTMetadataSignature) Descriptor deprecated

func (*BFTMetadataSignature) Descriptor() ([]byte, []int)

Deprecated: Use BFTMetadataSignature.ProtoReflect.Descriptor instead.

func (*BFTMetadataSignature) GetNonce

func (x *BFTMetadataSignature) GetNonce() []byte

func (*BFTMetadataSignature) GetSignature

func (x *BFTMetadataSignature) GetSignature() []byte

func (*BFTMetadataSignature) GetSignatureHeader

func (x *BFTMetadataSignature) GetSignatureHeader() []byte

func (*BFTMetadataSignature) GetSignerId

func (x *BFTMetadataSignature) GetSignerId() uint64

func (*BFTMetadataSignature) ProtoMessage

func (*BFTMetadataSignature) ProtoMessage()

func (*BFTMetadataSignature) ProtoReflect added in v0.8.6

func (x *BFTMetadataSignature) ProtoReflect() protoreflect.Message

func (*BFTMetadataSignature) Reset

func (x *BFTMetadataSignature) Reset()

func (*BFTMetadataSignature) String

func (x *BFTMetadataSignature) String() string

Jump to

Keyboard shortcuts

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