Documentation ¶
Overview ¶
Package pdclpb contains proto definitions of PDCL structures.
Index ¶
- Variables
- type Commit
- func (*Commit) Descriptor() ([]byte, []int)deprecated
- func (x *Commit) GetCreated() *timestamppb.Timestamp
- func (x *Commit) GetMessagesCids() []string
- func (x *Commit) GetPreviousCommitCid() string
- func (*Commit) ProtoMessage()
- func (x *Commit) ProtoReflect() protoreflect.Message
- func (x *Commit) Reset()
- func (x *Commit) String() string
- type SignedEnvelope
- func (*SignedEnvelope) Descriptor() ([]byte, []int)deprecated
- func (x *SignedEnvelope) GetMessage() []byte
- func (x *SignedEnvelope) GetSignature() []byte
- func (x *SignedEnvelope) GetSignerId() string
- func (*SignedEnvelope) ProtoMessage()
- func (x *SignedEnvelope) ProtoReflect() protoreflect.Message
- func (x *SignedEnvelope) Reset()
- func (x *SignedEnvelope) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var File_pdcl_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Commit ¶
type Commit struct { Created *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=created,proto3" json:"created,omitempty"` PreviousCommitCid string `protobuf:"bytes,2,opt,name=previous_commit_cid,json=previousCommitCid,proto3" json:"previous_commit_cid,omitempty"` MessagesCids []string `protobuf:"bytes,3,rep,name=messages_cids,json=messagesCids,proto3" json:"messages_cids,omitempty"` // contains filtered or unexported fields }
func (*Commit) Descriptor
deprecated
func (*Commit) GetCreated ¶
func (x *Commit) GetCreated() *timestamppb.Timestamp
func (*Commit) GetMessagesCids ¶
func (*Commit) GetPreviousCommitCid ¶
func (*Commit) ProtoMessage ¶
func (*Commit) ProtoMessage()
func (*Commit) ProtoReflect ¶
func (x *Commit) ProtoReflect() protoreflect.Message
type SignedEnvelope ¶ added in v1.0.2
type SignedEnvelope struct { // message should be serialized with the same codec as SignedEnvelope is Message []byte `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"` SignerId string `protobuf:"bytes,3,opt,name=signer_id,json=signerId,proto3" json:"signer_id,omitempty"` // contains filtered or unexported fields }
SignedEnvelope is used to verify the creator of given message.
It can be used both for PDCL messages and commits.
func (*SignedEnvelope) Descriptor
deprecated
added in
v1.0.2
func (*SignedEnvelope) Descriptor() ([]byte, []int)
Deprecated: Use SignedEnvelope.ProtoReflect.Descriptor instead.
func (*SignedEnvelope) GetMessage ¶ added in v1.0.2
func (x *SignedEnvelope) GetMessage() []byte
func (*SignedEnvelope) GetSignature ¶ added in v1.0.2
func (x *SignedEnvelope) GetSignature() []byte
func (*SignedEnvelope) GetSignerId ¶ added in v1.0.2
func (x *SignedEnvelope) GetSignerId() string
func (*SignedEnvelope) ProtoMessage ¶ added in v1.0.2
func (*SignedEnvelope) ProtoMessage()
func (*SignedEnvelope) ProtoReflect ¶ added in v1.0.2
func (x *SignedEnvelope) ProtoReflect() protoreflect.Message
func (*SignedEnvelope) Reset ¶ added in v1.0.2
func (x *SignedEnvelope) Reset()
func (*SignedEnvelope) String ¶ added in v1.0.2
func (x *SignedEnvelope) String() string
Click to show internal directories.
Click to hide internal directories.