Documentation ¶
Index ¶
- Variables
- type BFTMetadata
- func (*BFTMetadata) Descriptor() ([]byte, []int)deprecated
- func (x *BFTMetadata) GetSignatures() []*BFTMetadataSignature
- func (x *BFTMetadata) GetValue() []byte
- func (*BFTMetadata) ProtoMessage()
- func (x *BFTMetadata) ProtoReflect() protoreflect.Message
- func (x *BFTMetadata) Reset()
- func (x *BFTMetadata) String() string
- func (m *BFTMetadata) Validate() error
- func (m *BFTMetadata) ValidateAll() error
- type BFTMetadataMultiError
- type BFTMetadataSignature
- func (*BFTMetadataSignature) Descriptor() ([]byte, []int)deprecated
- func (x *BFTMetadataSignature) GetNonce() []byte
- func (x *BFTMetadataSignature) GetSignature() []byte
- func (x *BFTMetadataSignature) GetSignatureHeader() []byte
- func (x *BFTMetadataSignature) GetSignerId() uint64
- func (*BFTMetadataSignature) ProtoMessage()
- func (x *BFTMetadataSignature) ProtoReflect() protoreflect.Message
- func (x *BFTMetadataSignature) Reset()
- func (x *BFTMetadataSignature) String() string
- func (m *BFTMetadataSignature) Validate() error
- func (m *BFTMetadataSignature) ValidateAll() error
- type BFTMetadataSignatureMultiError
- type BFTMetadataSignatureValidationError
- func (e BFTMetadataSignatureValidationError) Cause() error
- func (e BFTMetadataSignatureValidationError) Error() string
- func (e BFTMetadataSignatureValidationError) ErrorName() string
- func (e BFTMetadataSignatureValidationError) Field() string
- func (e BFTMetadataSignatureValidationError) Key() bool
- func (e BFTMetadataSignatureValidationError) Reason() string
- type BFTMetadataValidationError
- func (e BFTMetadataValidationError) Cause() error
- func (e BFTMetadataValidationError) Error() string
- func (e BFTMetadataValidationError) ErrorName() string
- func (e BFTMetadataValidationError) Field() string
- func (e BFTMetadataValidationError) Key() bool
- func (e BFTMetadataValidationError) Reason() string
Constants ¶
This section is empty.
Variables ¶
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 ¶
func (x *BFTMetadata) ProtoReflect() protoreflect.Message
func (*BFTMetadata) Reset ¶
func (x *BFTMetadata) Reset()
func (*BFTMetadata) String ¶
func (x *BFTMetadata) String() string
func (*BFTMetadata) Validate ¶
func (m *BFTMetadata) Validate() error
Validate checks the field values on BFTMetadata with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*BFTMetadata) ValidateAll ¶
func (m *BFTMetadata) ValidateAll() error
ValidateAll checks the field values on BFTMetadata with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in BFTMetadataMultiError, or nil if none found.
type BFTMetadataMultiError ¶
type BFTMetadataMultiError []error
BFTMetadataMultiError is an error wrapping multiple validation errors returned by BFTMetadata.ValidateAll() if the designated constraints aren't met.
func (BFTMetadataMultiError) AllErrors ¶
func (m BFTMetadataMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (BFTMetadataMultiError) Error ¶
func (m BFTMetadataMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
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 ¶
func (x *BFTMetadataSignature) ProtoReflect() protoreflect.Message
func (*BFTMetadataSignature) Reset ¶
func (x *BFTMetadataSignature) Reset()
func (*BFTMetadataSignature) String ¶
func (x *BFTMetadataSignature) String() string
func (*BFTMetadataSignature) Validate ¶
func (m *BFTMetadataSignature) Validate() error
Validate checks the field values on BFTMetadataSignature with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*BFTMetadataSignature) ValidateAll ¶
func (m *BFTMetadataSignature) ValidateAll() error
ValidateAll checks the field values on BFTMetadataSignature with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in BFTMetadataSignatureMultiError, or nil if none found.
type BFTMetadataSignatureMultiError ¶
type BFTMetadataSignatureMultiError []error
BFTMetadataSignatureMultiError is an error wrapping multiple validation errors returned by BFTMetadataSignature.ValidateAll() if the designated constraints aren't met.
func (BFTMetadataSignatureMultiError) AllErrors ¶
func (m BFTMetadataSignatureMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (BFTMetadataSignatureMultiError) Error ¶
func (m BFTMetadataSignatureMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type BFTMetadataSignatureValidationError ¶
type BFTMetadataSignatureValidationError struct {
// contains filtered or unexported fields
}
BFTMetadataSignatureValidationError is the validation error returned by BFTMetadataSignature.Validate if the designated constraints aren't met.
func (BFTMetadataSignatureValidationError) Cause ¶
func (e BFTMetadataSignatureValidationError) Cause() error
Cause function returns cause value.
func (BFTMetadataSignatureValidationError) Error ¶
func (e BFTMetadataSignatureValidationError) Error() string
Error satisfies the builtin error interface
func (BFTMetadataSignatureValidationError) ErrorName ¶
func (e BFTMetadataSignatureValidationError) ErrorName() string
ErrorName returns error name.
func (BFTMetadataSignatureValidationError) Field ¶
func (e BFTMetadataSignatureValidationError) Field() string
Field function returns field value.
func (BFTMetadataSignatureValidationError) Key ¶
func (e BFTMetadataSignatureValidationError) Key() bool
Key function returns key value.
func (BFTMetadataSignatureValidationError) Reason ¶
func (e BFTMetadataSignatureValidationError) Reason() string
Reason function returns reason value.
type BFTMetadataValidationError ¶
type BFTMetadataValidationError struct {
// contains filtered or unexported fields
}
BFTMetadataValidationError is the validation error returned by BFTMetadata.Validate if the designated constraints aren't met.
func (BFTMetadataValidationError) Cause ¶
func (e BFTMetadataValidationError) Cause() error
Cause function returns cause value.
func (BFTMetadataValidationError) Error ¶
func (e BFTMetadataValidationError) Error() string
Error satisfies the builtin error interface
func (BFTMetadataValidationError) ErrorName ¶
func (e BFTMetadataValidationError) ErrorName() string
ErrorName returns error name.
func (BFTMetadataValidationError) Field ¶
func (e BFTMetadataValidationError) Field() string
Field function returns field value.
func (BFTMetadataValidationError) Key ¶
func (e BFTMetadataValidationError) Key() bool
Key function returns key value.
func (BFTMetadataValidationError) Reason ¶
func (e BFTMetadataValidationError) Reason() string
Reason function returns reason value.