pdclpb

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package pdclpb contains proto definitions of PDCL structures.

Index

Constants

This section is empty.

Variables

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) Descriptor() ([]byte, []int)

Deprecated: Use Commit.ProtoReflect.Descriptor instead.

func (*Commit) GetCreated

func (x *Commit) GetCreated() *timestamppb.Timestamp

func (*Commit) GetMessagesCids

func (x *Commit) GetMessagesCids() []string

func (*Commit) GetPreviousCommitCid

func (x *Commit) GetPreviousCommitCid() string

func (*Commit) ProtoMessage

func (*Commit) ProtoMessage()

func (*Commit) ProtoReflect

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

func (*Commit) Reset

func (x *Commit) Reset()

func (*Commit) String

func (x *Commit) String() string

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

Jump to

Keyboard shortcuts

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