pb

package
v0.0.0-...-6b2b62e Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2022 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Overview

Package pb provides pb for chestnut.

Index

Constants

This section is empty.

Variables

View Source
var (
	PackageType_name = map[int32]string{
		0: "TRX",
		1: "BLOCK",
	}
	PackageType_value = map[string]int32{
		"TRX":   0,
		"BLOCK": 1,
	}
)

Enum value maps for PackageType.

View Source
var (
	TrxType_name = map[int32]string{
		0: "POST",
		1: "AUTH",
		2: "SCHEMA",
		3: "PRODUCER",
		4: "ANNOUNCE",
		5: "REQ_BLOCK_FORWARD",
		6: "REQ_BLOCK_BACKWARD",
		7: "REQ_BLOCK_RESP",
		8: "BLOCK_SYNCED",
		9: "BLOCK_PRODUCED",
	}
	TrxType_value = map[string]int32{
		"POST":               0,
		"AUTH":               1,
		"SCHEMA":             2,
		"PRODUCER":           3,
		"ANNOUNCE":           4,
		"REQ_BLOCK_FORWARD":  5,
		"REQ_BLOCK_BACKWARD": 6,
		"REQ_BLOCK_RESP":     7,
		"BLOCK_SYNCED":       8,
		"BLOCK_PRODUCED":     9,
	}
)

Enum value maps for TrxType.

View Source
var (
	AnnounceType_name = map[int32]string{
		0: "AS_USER",
		1: "AS_PRODUCER",
	}
	AnnounceType_value = map[string]int32{
		"AS_USER":     0,
		"AS_PRODUCER": 1,
	}
)

Enum value maps for AnnounceType.

View Source
var (
	ApproveType_name = map[int32]string{
		0: "ANNOUNCED",
		1: "APPROVED",
		2: "REJECTED",
	}
	ApproveType_value = map[string]int32{
		"ANNOUNCED": 0,
		"APPROVED":  1,
		"REJECTED":  2,
	}
)

Enum value maps for ApproveType.

View Source
var (
	ActionType_name = map[int32]string{
		0: "ADD",
		1: "REMOVE",
	}
	ActionType_value = map[string]int32{
		"ADD":    0,
		"REMOVE": 1,
	}
)

Enum value maps for ActionType.

View Source
var (
	ReqBlkResult_name = map[int32]string{
		0: "BLOCK_IN_TRX",
		1: "BLOCK_NOT_FOUND",
	}
	ReqBlkResult_value = map[string]int32{
		"BLOCK_IN_TRX":    0,
		"BLOCK_NOT_FOUND": 1,
	}
)

Enum value maps for ReqBlkResult.

View Source
var (
	GroupEncryptType_name = map[int32]string{
		0: "PUBLIC",
		1: "PRIVATE",
	}
	GroupEncryptType_value = map[string]int32{
		"PUBLIC":  0,
		"PRIVATE": 1,
	}
)

Enum value maps for GroupEncryptType.

View Source
var (
	GroupConsenseType_name = map[int32]string{
		0: "POA",
		1: "POS",
	}
	GroupConsenseType_value = map[string]int32{
		"POA": 0,
		"POS": 1,
	}
)

Enum value maps for GroupConsenseType.

View Source
var (
	RoleV0_name = map[int32]string{
		0: "GROUP_PRODUCER",
		1: "GROUP_USER",
	}
	RoleV0_value = map[string]int32{
		"GROUP_PRODUCER": 0,
		"GROUP_USER":     1,
	}
)

Enum value maps for RoleV0.

View Source
var File_activity_stream_proto protoreflect.FileDescriptor
View Source
var File_chain_proto protoreflect.FileDescriptor

Functions

func BytesToMessage

func BytesToMessage(trxid string, content []byte) (proto.Message, string, error)

func ContentToBytes

func ContentToBytes(content proto.Message) ([]byte, error)

Types

type ActionType

type ActionType int32
const (
	ActionType_ADD    ActionType = 0
	ActionType_REMOVE ActionType = 1
)

func (ActionType) Descriptor

func (ActionType) Descriptor() protoreflect.EnumDescriptor

func (ActionType) Enum

func (x ActionType) Enum() *ActionType

func (ActionType) EnumDescriptor deprecated

func (ActionType) EnumDescriptor() ([]byte, []int)

Deprecated: Use ActionType.Descriptor instead.

func (ActionType) Number

func (x ActionType) Number() protoreflect.EnumNumber

func (ActionType) String

func (x ActionType) String() string

func (ActionType) Type

type Activity

type Activity struct {
	Id           string                 `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Type         string                 `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"`
	Attachments  []*Object              `protobuf:"bytes,3,rep,name=attachments,proto3" json:"attachments,omitempty"`
	AttributedTo []*Object              `protobuf:"bytes,4,rep,name=attributedTo,proto3" json:"attributedTo,omitempty"`
	Audience     *Object                `protobuf:"bytes,5,opt,name=audience,proto3" json:"audience,omitempty"`
	Content      string                 `protobuf:"bytes,6,opt,name=content,proto3" json:"content,omitempty"`
	Context      *Object                `protobuf:"bytes,7,opt,name=context,proto3" json:"context,omitempty"`
	Name         string                 `protobuf:"bytes,8,opt,name=name,proto3" json:"name,omitempty"`
	Endtime      *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=endtime,proto3" json:"endtime,omitempty"`
	Generator    *Object                `protobuf:"bytes,10,opt,name=generator,proto3" json:"generator,omitempty"`
	Icon         []*Object              `protobuf:"bytes,11,rep,name=icon,proto3" json:"icon,omitempty"`
	Image        []*Object              `protobuf:"bytes,12,rep,name=image,proto3" json:"image,omitempty"`
	InReplyTo    *Object                `protobuf:"bytes,13,opt,name=inReplyTo,proto3" json:"inReplyTo,omitempty"`
	Location     *Object                `protobuf:"bytes,14,opt,name=location,proto3" json:"location,omitempty"`
	Preview      *Object                `protobuf:"bytes,15,opt,name=preview,proto3" json:"preview,omitempty"`
	Published    *timestamppb.Timestamp `protobuf:"bytes,16,opt,name=published,proto3" json:"published,omitempty"`
	//Collection replies  = 16
	Replies    *Object                `protobuf:"bytes,17,opt,name=replies,proto3" json:"replies,omitempty"`
	StartTime  *timestamppb.Timestamp `protobuf:"bytes,18,opt,name=startTime,proto3" json:"startTime,omitempty"`
	Summary    string                 `protobuf:"bytes,19,opt,name=summary,proto3" json:"summary,omitempty"`
	Tag        []*Object              `protobuf:"bytes,20,rep,name=tag,proto3" json:"tag,omitempty"`
	Updated    *timestamppb.Timestamp `protobuf:"bytes,21,opt,name=updated,proto3" json:"updated,omitempty"`
	Url        []*Link                `protobuf:"bytes,22,rep,name=url,proto3" json:"url,omitempty"`
	To         []*Object              `protobuf:"bytes,23,rep,name=to,proto3" json:"to,omitempty"`
	Bto        []*Object              `protobuf:"bytes,24,rep,name=bto,proto3" json:"bto,omitempty"`
	Cc         []*Object              `protobuf:"bytes,25,rep,name=cc,proto3" json:"cc,omitempty"`
	Bcc        []*Object              `protobuf:"bytes,26,rep,name=bcc,proto3" json:"bcc,omitempty"`
	MediaType  string                 `protobuf:"bytes,27,opt,name=mediaType,proto3" json:"mediaType,omitempty"`
	Duration   string                 `protobuf:"bytes,28,opt,name=duration,proto3" json:"duration,omitempty"`
	Actor      *Object                `protobuf:"bytes,29,opt,name=actor,proto3" json:"actor,omitempty"`
	Object     *Object                `protobuf:"bytes,30,opt,name=object,proto3" json:"object,omitempty"`
	Target     *Object                `protobuf:"bytes,31,opt,name=target,proto3" json:"target,omitempty"`
	Result     *Object                `protobuf:"bytes,32,opt,name=result,proto3" json:"result,omitempty"`
	Origin     *Object                `protobuf:"bytes,33,opt,name=origin,proto3" json:"origin,omitempty"`
	Instrument *Object                `protobuf:"bytes,34,opt,name=instrument,proto3" json:"instrument,omitempty"`
	Person     *Person                `protobuf:"bytes,35,opt,name=person,proto3" json:"person,omitempty"`
	// contains filtered or unexported fields
}

func (*Activity) Descriptor deprecated

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

Deprecated: Use Activity.ProtoReflect.Descriptor instead.

func (*Activity) GetActor

func (x *Activity) GetActor() *Object

func (*Activity) GetAttachments

func (x *Activity) GetAttachments() []*Object

func (*Activity) GetAttributedTo

func (x *Activity) GetAttributedTo() []*Object

func (*Activity) GetAudience

func (x *Activity) GetAudience() *Object

func (*Activity) GetBcc

func (x *Activity) GetBcc() []*Object

func (*Activity) GetBto

func (x *Activity) GetBto() []*Object

func (*Activity) GetCc

func (x *Activity) GetCc() []*Object

func (*Activity) GetContent

func (x *Activity) GetContent() string

func (*Activity) GetContext

func (x *Activity) GetContext() *Object

func (*Activity) GetDuration

func (x *Activity) GetDuration() string

func (*Activity) GetEndtime

func (x *Activity) GetEndtime() *timestamppb.Timestamp

func (*Activity) GetGenerator

func (x *Activity) GetGenerator() *Object

func (*Activity) GetIcon

func (x *Activity) GetIcon() []*Object

func (*Activity) GetId

func (x *Activity) GetId() string

func (*Activity) GetImage

func (x *Activity) GetImage() []*Object

func (*Activity) GetInReplyTo

func (x *Activity) GetInReplyTo() *Object

func (*Activity) GetInstrument

func (x *Activity) GetInstrument() *Object

func (*Activity) GetLocation

func (x *Activity) GetLocation() *Object

func (*Activity) GetMediaType

func (x *Activity) GetMediaType() string

func (*Activity) GetName

func (x *Activity) GetName() string

func (*Activity) GetObject

func (x *Activity) GetObject() *Object

func (*Activity) GetOrigin

func (x *Activity) GetOrigin() *Object

func (*Activity) GetPerson

func (x *Activity) GetPerson() *Person

func (*Activity) GetPreview

func (x *Activity) GetPreview() *Object

func (*Activity) GetPublished

func (x *Activity) GetPublished() *timestamppb.Timestamp

func (*Activity) GetReplies

func (x *Activity) GetReplies() *Object

func (*Activity) GetResult

func (x *Activity) GetResult() *Object

func (*Activity) GetStartTime

func (x *Activity) GetStartTime() *timestamppb.Timestamp

func (*Activity) GetSummary

func (x *Activity) GetSummary() string

func (*Activity) GetTag

func (x *Activity) GetTag() []*Object

func (*Activity) GetTarget

func (x *Activity) GetTarget() *Object

func (*Activity) GetTo

func (x *Activity) GetTo() []*Object

func (*Activity) GetType

func (x *Activity) GetType() string

func (*Activity) GetUpdated

func (x *Activity) GetUpdated() *timestamppb.Timestamp

func (*Activity) GetUrl

func (x *Activity) GetUrl() []*Link

func (*Activity) ProtoMessage

func (*Activity) ProtoMessage()

func (*Activity) ProtoReflect

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

func (*Activity) Reset

func (x *Activity) Reset()

func (*Activity) String

func (x *Activity) String() string

type AnnounceItem

type AnnounceItem struct {
	GroupId            string       `protobuf:"bytes,1,opt,name=GroupId,proto3" json:"GroupId,omitempty"`
	SignPubkey         string       `protobuf:"bytes,2,opt,name=SignPubkey,proto3" json:"SignPubkey,omitempty"`
	EncryptPubkey      string       `protobuf:"bytes,3,opt,name=EncryptPubkey,proto3" json:"EncryptPubkey,omitempty"`
	AnnouncerSignature string       `protobuf:"bytes,4,opt,name=AnnouncerSignature,proto3" json:"AnnouncerSignature,omitempty"`
	Type               AnnounceType `protobuf:"varint,5,opt,name=Type,proto3,enum=chestnut.pb.AnnounceType" json:"Type,omitempty"`
	OwnerPubkey        string       `protobuf:"bytes,6,opt,name=OwnerPubkey,proto3" json:"OwnerPubkey,omitempty"`
	OwnerSignature     string       `protobuf:"bytes,7,opt,name=OwnerSignature,proto3" json:"OwnerSignature,omitempty"`
	Result             ApproveType  `protobuf:"varint,8,opt,name=Result,proto3,enum=chestnut.pb.ApproveType" json:"Result,omitempty"`
	TimeStamp          int64        `protobuf:"varint,9,opt,name=TimeStamp,proto3" json:"TimeStamp,omitempty"`
	Action             ActionType   `protobuf:"varint,10,opt,name=Action,proto3,enum=chestnut.pb.ActionType" json:"Action,omitempty"`
	Memo               string       `protobuf:"bytes,11,opt,name=Memo,proto3" json:"Memo,omitempty"`
	// contains filtered or unexported fields
}

func (*AnnounceItem) Descriptor deprecated

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

Deprecated: Use AnnounceItem.ProtoReflect.Descriptor instead.

func (*AnnounceItem) GetAction

func (x *AnnounceItem) GetAction() ActionType

func (*AnnounceItem) GetAnnouncerSignature

func (x *AnnounceItem) GetAnnouncerSignature() string

func (*AnnounceItem) GetEncryptPubkey

func (x *AnnounceItem) GetEncryptPubkey() string

func (*AnnounceItem) GetGroupId

func (x *AnnounceItem) GetGroupId() string

func (*AnnounceItem) GetMemo

func (x *AnnounceItem) GetMemo() string

func (*AnnounceItem) GetOwnerPubkey

func (x *AnnounceItem) GetOwnerPubkey() string

func (*AnnounceItem) GetOwnerSignature

func (x *AnnounceItem) GetOwnerSignature() string

func (*AnnounceItem) GetResult

func (x *AnnounceItem) GetResult() ApproveType

func (*AnnounceItem) GetSignPubkey

func (x *AnnounceItem) GetSignPubkey() string

func (*AnnounceItem) GetTimeStamp

func (x *AnnounceItem) GetTimeStamp() int64

func (*AnnounceItem) GetType

func (x *AnnounceItem) GetType() AnnounceType

func (*AnnounceItem) ProtoMessage

func (*AnnounceItem) ProtoMessage()

func (*AnnounceItem) ProtoReflect

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

func (*AnnounceItem) Reset

func (x *AnnounceItem) Reset()

func (*AnnounceItem) String

func (x *AnnounceItem) String() string

type AnnounceType

type AnnounceType int32
const (
	AnnounceType_AS_USER     AnnounceType = 0
	AnnounceType_AS_PRODUCER AnnounceType = 1
)

func (AnnounceType) Descriptor

func (AnnounceType) Enum

func (x AnnounceType) Enum() *AnnounceType

func (AnnounceType) EnumDescriptor deprecated

func (AnnounceType) EnumDescriptor() ([]byte, []int)

Deprecated: Use AnnounceType.Descriptor instead.

func (AnnounceType) Number

func (AnnounceType) String

func (x AnnounceType) String() string

func (AnnounceType) Type

type AnyObj

type AnyObj struct {
	Any *anypb.Any `protobuf:"bytes,1,opt,name=any,proto3" json:"any,omitempty"`
	// contains filtered or unexported fields
}

func (*AnyObj) Descriptor deprecated

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

Deprecated: Use AnyObj.ProtoReflect.Descriptor instead.

func (*AnyObj) GetAny

func (x *AnyObj) GetAny() *anypb.Any

func (*AnyObj) ProtoMessage

func (*AnyObj) ProtoMessage()

func (*AnyObj) ProtoReflect

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

func (*AnyObj) Reset

func (x *AnyObj) Reset()

func (*AnyObj) String

func (x *AnyObj) String() string

type ApproveType

type ApproveType int32
const (
	ApproveType_ANNOUNCED ApproveType = 0
	ApproveType_APPROVED  ApproveType = 1
	ApproveType_REJECTED  ApproveType = 2
)

func (ApproveType) Descriptor

func (ApproveType) Enum

func (x ApproveType) Enum() *ApproveType

func (ApproveType) EnumDescriptor deprecated

func (ApproveType) EnumDescriptor() ([]byte, []int)

Deprecated: Use ApproveType.Descriptor instead.

func (ApproveType) Number

func (x ApproveType) Number() protoreflect.EnumNumber

func (ApproveType) String

func (x ApproveType) String() string

func (ApproveType) Type

type Block

type Block struct {
	BlockId        string `protobuf:"bytes,1,opt,name=BlockId,proto3" json:"BlockId,omitempty"`
	GroupId        string `protobuf:"bytes,2,opt,name=GroupId,proto3" json:"GroupId,omitempty"`
	PrevBlockId    string `protobuf:"bytes,3,opt,name=PrevBlockId,proto3" json:"PrevBlockId,omitempty"`
	PreviousHash   []byte `protobuf:"bytes,4,opt,name=PreviousHash,proto3" json:"PreviousHash,omitempty"`
	Trxs           []*Trx `protobuf:"bytes,5,rep,name=Trxs,proto3" json:"Trxs,omitempty"`
	ProducerPubKey string `protobuf:"bytes,6,opt,name=ProducerPubKey,proto3" json:"ProducerPubKey,omitempty"`
	Hash           []byte `protobuf:"bytes,7,opt,name=Hash,proto3" json:"Hash,omitempty"`
	Signature      []byte `protobuf:"bytes,8,opt,name=Signature,proto3" json:"Signature,omitempty"`
	TimeStamp      int64  `protobuf:"varint,9,opt,name=TimeStamp,proto3" json:"TimeStamp,omitempty"`
	// contains filtered or unexported fields
}

func (*Block) Descriptor deprecated

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

Deprecated: Use Block.ProtoReflect.Descriptor instead.

func (*Block) GetBlockId

func (x *Block) GetBlockId() string

func (*Block) GetGroupId

func (x *Block) GetGroupId() string

func (*Block) GetHash

func (x *Block) GetHash() []byte

func (*Block) GetPrevBlockId

func (x *Block) GetPrevBlockId() string

func (*Block) GetPreviousHash

func (x *Block) GetPreviousHash() []byte

func (*Block) GetProducerPubKey

func (x *Block) GetProducerPubKey() string

func (*Block) GetSignature

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

func (*Block) GetTimeStamp

func (x *Block) GetTimeStamp() int64

func (*Block) GetTrxs

func (x *Block) GetTrxs() []*Trx

func (*Block) ProtoMessage

func (*Block) ProtoMessage()

func (*Block) ProtoReflect

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

func (*Block) Reset

func (x *Block) Reset()

func (*Block) String

func (x *Block) String() string

type BlockDbChunk

type BlockDbChunk struct {
	BlockId       string   `protobuf:"bytes,1,opt,name=BlockId,proto3" json:"BlockId,omitempty"`
	BlockItem     *Block   `protobuf:"bytes,2,opt,name=BlockItem,proto3" json:"BlockItem,omitempty"`
	ParentBlockId string   `protobuf:"bytes,3,opt,name=ParentBlockId,proto3" json:"ParentBlockId,omitempty"`
	SubBlockId    []string `protobuf:"bytes,4,rep,name=SubBlockId,proto3" json:"SubBlockId,omitempty"`
	Height        int64    `protobuf:"varint,6,opt,name=Height,proto3" json:"Height,omitempty"`
	// contains filtered or unexported fields
}

func (*BlockDbChunk) Descriptor deprecated

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

Deprecated: Use BlockDbChunk.ProtoReflect.Descriptor instead.

func (*BlockDbChunk) GetBlockId

func (x *BlockDbChunk) GetBlockId() string

func (*BlockDbChunk) GetBlockItem

func (x *BlockDbChunk) GetBlockItem() *Block

func (*BlockDbChunk) GetHeight

func (x *BlockDbChunk) GetHeight() int64

func (*BlockDbChunk) GetParentBlockId

func (x *BlockDbChunk) GetParentBlockId() string

func (*BlockDbChunk) GetSubBlockId

func (x *BlockDbChunk) GetSubBlockId() []string

func (*BlockDbChunk) ProtoMessage

func (*BlockDbChunk) ProtoMessage()

func (*BlockDbChunk) ProtoReflect

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

func (*BlockDbChunk) Reset

func (x *BlockDbChunk) Reset()

func (*BlockDbChunk) String

func (x *BlockDbChunk) String() string

type BlockProduced

type BlockProduced struct {
	BlockItem *Block `protobuf:"bytes,1,opt,name=BlockItem,proto3" json:"BlockItem,omitempty"`
	// contains filtered or unexported fields
}

func (*BlockProduced) Descriptor deprecated

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

Deprecated: Use BlockProduced.ProtoReflect.Descriptor instead.

func (*BlockProduced) GetBlockItem

func (x *BlockProduced) GetBlockItem() *Block

func (*BlockProduced) ProtoMessage

func (*BlockProduced) ProtoMessage()

func (*BlockProduced) ProtoReflect

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

func (*BlockProduced) Reset

func (x *BlockProduced) Reset()

func (*BlockProduced) String

func (x *BlockProduced) String() string

type BlockSynced

type BlockSynced struct {
	BlockItem *Block `protobuf:"bytes,1,opt,name=BlockItem,proto3" json:"BlockItem,omitempty"`
	// contains filtered or unexported fields
}

func (*BlockSynced) Descriptor deprecated

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

Deprecated: Use BlockSynced.ProtoReflect.Descriptor instead.

func (*BlockSynced) GetBlockItem

func (x *BlockSynced) GetBlockItem() *Block

func (*BlockSynced) ProtoMessage

func (*BlockSynced) ProtoMessage()

func (*BlockSynced) ProtoReflect

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

func (*BlockSynced) Reset

func (x *BlockSynced) Reset()

func (*BlockSynced) String

func (x *BlockSynced) String() string

type DenyUserItem

type DenyUserItem struct {
	GroupId          string `protobuf:"bytes,1,opt,name=GroupId,proto3" json:"GroupId,omitempty"`
	PeerId           string `protobuf:"bytes,2,opt,name=PeerId,proto3" json:"PeerId,omitempty"`
	GroupOwnerPubkey string `protobuf:"bytes,3,opt,name=GroupOwnerPubkey,proto3" json:"GroupOwnerPubkey,omitempty"`
	GroupOwnerSign   string `protobuf:"bytes,4,opt,name=GroupOwnerSign,proto3" json:"GroupOwnerSign,omitempty"`
	TimeStamp        int64  `protobuf:"varint,5,opt,name=TimeStamp,proto3" json:"TimeStamp,omitempty"`
	Action           string `protobuf:"bytes,6,opt,name=Action,proto3" json:"Action,omitempty"`
	Memo             string `protobuf:"bytes,7,opt,name=Memo,proto3" json:"Memo,omitempty"`
	// contains filtered or unexported fields
}

func (*DenyUserItem) Descriptor deprecated

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

Deprecated: Use DenyUserItem.ProtoReflect.Descriptor instead.

func (*DenyUserItem) GetAction

func (x *DenyUserItem) GetAction() string

func (*DenyUserItem) GetGroupId

func (x *DenyUserItem) GetGroupId() string

func (*DenyUserItem) GetGroupOwnerPubkey

func (x *DenyUserItem) GetGroupOwnerPubkey() string

func (*DenyUserItem) GetGroupOwnerSign

func (x *DenyUserItem) GetGroupOwnerSign() string

func (*DenyUserItem) GetMemo

func (x *DenyUserItem) GetMemo() string

func (*DenyUserItem) GetPeerId

func (x *DenyUserItem) GetPeerId() string

func (*DenyUserItem) GetTimeStamp

func (x *DenyUserItem) GetTimeStamp() int64

func (*DenyUserItem) ProtoMessage

func (*DenyUserItem) ProtoMessage()

func (*DenyUserItem) ProtoReflect

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

func (*DenyUserItem) Reset

func (x *DenyUserItem) Reset()

func (*DenyUserItem) String

func (x *DenyUserItem) String() string

type GroupConsenseType

type GroupConsenseType int32
const (
	GroupConsenseType_POA GroupConsenseType = 0 //proof of authen
	GroupConsenseType_POS GroupConsenseType = 1
)

func (GroupConsenseType) Descriptor

func (GroupConsenseType) Enum

func (GroupConsenseType) EnumDescriptor deprecated

func (GroupConsenseType) EnumDescriptor() ([]byte, []int)

Deprecated: Use GroupConsenseType.Descriptor instead.

func (GroupConsenseType) Number

func (GroupConsenseType) String

func (x GroupConsenseType) String() string

func (GroupConsenseType) Type

type GroupEncryptType

type GroupEncryptType int32
const (
	GroupEncryptType_PUBLIC  GroupEncryptType = 0 //public group
	GroupEncryptType_PRIVATE GroupEncryptType = 1 //private group
)

func (GroupEncryptType) Descriptor

func (GroupEncryptType) Enum

func (GroupEncryptType) EnumDescriptor deprecated

func (GroupEncryptType) EnumDescriptor() ([]byte, []int)

Deprecated: Use GroupEncryptType.Descriptor instead.

func (GroupEncryptType) Number

func (GroupEncryptType) String

func (x GroupEncryptType) String() string

func (GroupEncryptType) Type

type GroupItem

type GroupItem struct {
	GroupId           string            `protobuf:"bytes,1,opt,name=GroupId,proto3" json:"GroupId,omitempty"`
	GroupName         string            `protobuf:"bytes,2,opt,name=GroupName,proto3" json:"GroupName,omitempty"`
	OwnerPubKey       string            `protobuf:"bytes,3,opt,name=OwnerPubKey,proto3" json:"OwnerPubKey,omitempty"`
	UserSignPubkey    string            `protobuf:"bytes,4,opt,name=UserSignPubkey,proto3" json:"UserSignPubkey,omitempty"`
	UserEncryptPubkey string            `protobuf:"bytes,5,opt,name=UserEncryptPubkey,proto3" json:"UserEncryptPubkey,omitempty"`
	LastUpdate        int64             `protobuf:"varint,6,opt,name=LastUpdate,proto3" json:"LastUpdate,omitempty"`
	HighestHeight     int64             `protobuf:"varint,7,opt,name=HighestHeight,proto3" json:"HighestHeight,omitempty"`
	HighestBlockId    string            `protobuf:"bytes,8,opt,name=HighestBlockId,proto3" json:"HighestBlockId,omitempty"`
	GenesisBlock      *Block            `protobuf:"bytes,9,opt,name=GenesisBlock,proto3" json:"GenesisBlock,omitempty"`
	EncryptType       GroupEncryptType  `protobuf:"varint,10,opt,name=EncryptType,proto3,enum=chestnut.pb.GroupEncryptType" json:"EncryptType,omitempty"`
	ConsenseType      GroupConsenseType `protobuf:"varint,11,opt,name=ConsenseType,proto3,enum=chestnut.pb.GroupConsenseType" json:"ConsenseType,omitempty"`
	CipherKey         string            `protobuf:"bytes,12,opt,name=CipherKey,proto3" json:"CipherKey,omitempty"`
	AppKey            string            `protobuf:"bytes,13,opt,name=AppKey,proto3" json:"AppKey,omitempty"`
	// contains filtered or unexported fields
}

func (*GroupItem) Descriptor deprecated

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

Deprecated: Use GroupItem.ProtoReflect.Descriptor instead.

func (*GroupItem) GetAppKey

func (x *GroupItem) GetAppKey() string

func (*GroupItem) GetCipherKey

func (x *GroupItem) GetCipherKey() string

func (*GroupItem) GetConsenseType

func (x *GroupItem) GetConsenseType() GroupConsenseType

func (*GroupItem) GetEncryptType

func (x *GroupItem) GetEncryptType() GroupEncryptType

func (*GroupItem) GetGenesisBlock

func (x *GroupItem) GetGenesisBlock() *Block

func (*GroupItem) GetGroupId

func (x *GroupItem) GetGroupId() string

func (*GroupItem) GetGroupName

func (x *GroupItem) GetGroupName() string

func (*GroupItem) GetHighestBlockId

func (x *GroupItem) GetHighestBlockId() string

func (*GroupItem) GetHighestHeight

func (x *GroupItem) GetHighestHeight() int64

func (*GroupItem) GetLastUpdate

func (x *GroupItem) GetLastUpdate() int64

func (*GroupItem) GetOwnerPubKey

func (x *GroupItem) GetOwnerPubKey() string

func (*GroupItem) GetUserEncryptPubkey

func (x *GroupItem) GetUserEncryptPubkey() string

func (*GroupItem) GetUserSignPubkey

func (x *GroupItem) GetUserSignPubkey() string

func (*GroupItem) ProtoMessage

func (*GroupItem) ProtoMessage()

func (*GroupItem) ProtoReflect

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

func (*GroupItem) Reset

func (x *GroupItem) Reset()

func (*GroupItem) String

func (x *GroupItem) String() string

type GroupItemV0

type GroupItemV0 struct {
	GroupId           string            `protobuf:"bytes,1,opt,name=GroupId,proto3" json:"GroupId,omitempty"`
	GroupName         string            `protobuf:"bytes,2,opt,name=GroupName,proto3" json:"GroupName,omitempty"`
	OwnerPubKey       string            `protobuf:"bytes,3,opt,name=OwnerPubKey,proto3" json:"OwnerPubKey,omitempty"`
	UserSignPubkey    string            `protobuf:"bytes,4,opt,name=UserSignPubkey,proto3" json:"UserSignPubkey,omitempty"`
	UserEncryptPubkey string            `protobuf:"bytes,5,opt,name=UserEncryptPubkey,proto3" json:"UserEncryptPubkey,omitempty"`
	UserRole          RoleV0            `protobuf:"varint,6,opt,name=UserRole,proto3,enum=chestnut.pb.RoleV0" json:"UserRole,omitempty"`
	LastUpdate        int64             `protobuf:"varint,7,opt,name=LastUpdate,proto3" json:"LastUpdate,omitempty"`
	HighestHeight     int64             `protobuf:"varint,8,opt,name=HighestHeight,proto3" json:"HighestHeight,omitempty"`
	HighestBlockId    string            `protobuf:"bytes,9,opt,name=HighestBlockId,proto3" json:"HighestBlockId,omitempty"`
	GenesisBlock      *Block            `protobuf:"bytes,10,opt,name=GenesisBlock,proto3" json:"GenesisBlock,omitempty"`
	EncryptType       GroupEncryptType  `protobuf:"varint,11,opt,name=EncryptType,proto3,enum=chestnut.pb.GroupEncryptType" json:"EncryptType,omitempty"`
	ConsenseType      GroupConsenseType `protobuf:"varint,12,opt,name=ConsenseType,proto3,enum=chestnut.pb.GroupConsenseType" json:"ConsenseType,omitempty"`
	CipherKey         string            `protobuf:"bytes,13,opt,name=CipherKey,proto3" json:"CipherKey,omitempty"`
	AppKey            string            `protobuf:"bytes,14,opt,name=AppKey,proto3" json:"AppKey,omitempty"`
	// contains filtered or unexported fields
}

func (*GroupItemV0) Descriptor deprecated

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

Deprecated: Use GroupItemV0.ProtoReflect.Descriptor instead.

func (*GroupItemV0) GetAppKey

func (x *GroupItemV0) GetAppKey() string

func (*GroupItemV0) GetCipherKey

func (x *GroupItemV0) GetCipherKey() string

func (*GroupItemV0) GetConsenseType

func (x *GroupItemV0) GetConsenseType() GroupConsenseType

func (*GroupItemV0) GetEncryptType

func (x *GroupItemV0) GetEncryptType() GroupEncryptType

func (*GroupItemV0) GetGenesisBlock

func (x *GroupItemV0) GetGenesisBlock() *Block

func (*GroupItemV0) GetGroupId

func (x *GroupItemV0) GetGroupId() string

func (*GroupItemV0) GetGroupName

func (x *GroupItemV0) GetGroupName() string

func (*GroupItemV0) GetHighestBlockId

func (x *GroupItemV0) GetHighestBlockId() string

func (*GroupItemV0) GetHighestHeight

func (x *GroupItemV0) GetHighestHeight() int64

func (*GroupItemV0) GetLastUpdate

func (x *GroupItemV0) GetLastUpdate() int64

func (*GroupItemV0) GetOwnerPubKey

func (x *GroupItemV0) GetOwnerPubKey() string

func (*GroupItemV0) GetUserEncryptPubkey

func (x *GroupItemV0) GetUserEncryptPubkey() string

func (*GroupItemV0) GetUserRole

func (x *GroupItemV0) GetUserRole() RoleV0

func (*GroupItemV0) GetUserSignPubkey

func (x *GroupItemV0) GetUserSignPubkey() string

func (*GroupItemV0) ProtoMessage

func (*GroupItemV0) ProtoMessage()

func (*GroupItemV0) ProtoReflect

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

func (*GroupItemV0) Reset

func (x *GroupItemV0) Reset()

func (*GroupItemV0) String

func (x *GroupItemV0) String() string

type GroupSeed

type GroupSeed struct {
	GenesisBlock   *Block `protobuf:"bytes,1,opt,name=GenesisBlock,proto3" json:"GenesisBlock,omitempty"`
	GroupId        string `protobuf:"bytes,2,opt,name=GroupId,proto3" json:"GroupId,omitempty"`
	GroupName      string `protobuf:"bytes,3,opt,name=GroupName,proto3" json:"GroupName,omitempty"`
	OwnerPubkey    string `protobuf:"bytes,4,opt,name=OwnerPubkey,proto3" json:"OwnerPubkey,omitempty"`
	ConsensusType  string `protobuf:"bytes,5,opt,name=ConsensusType,proto3" json:"ConsensusType,omitempty"`
	EncryptionType string `protobuf:"bytes,6,opt,name=EncryptionType,proto3" json:"EncryptionType,omitempty"`
	CipherKey      string `protobuf:"bytes,7,opt,name=CipherKey,proto3" json:"CipherKey,omitempty"`
	AppKey         string `protobuf:"bytes,8,opt,name=AppKey,proto3" json:"AppKey,omitempty"`
	Signature      string `protobuf:"bytes,9,opt,name=Signature,proto3" json:"Signature,omitempty"`
	// contains filtered or unexported fields
}

func (*GroupSeed) Descriptor deprecated

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

Deprecated: Use GroupSeed.ProtoReflect.Descriptor instead.

func (*GroupSeed) GetAppKey

func (x *GroupSeed) GetAppKey() string

func (*GroupSeed) GetCipherKey

func (x *GroupSeed) GetCipherKey() string

func (*GroupSeed) GetConsensusType

func (x *GroupSeed) GetConsensusType() string

func (*GroupSeed) GetEncryptionType

func (x *GroupSeed) GetEncryptionType() string

func (*GroupSeed) GetGenesisBlock

func (x *GroupSeed) GetGenesisBlock() *Block

func (*GroupSeed) GetGroupId

func (x *GroupSeed) GetGroupId() string

func (*GroupSeed) GetGroupName

func (x *GroupSeed) GetGroupName() string

func (*GroupSeed) GetOwnerPubkey

func (x *GroupSeed) GetOwnerPubkey() string

func (*GroupSeed) GetSignature

func (x *GroupSeed) GetSignature() string

func (*GroupSeed) ProtoMessage

func (*GroupSeed) ProtoMessage()

func (*GroupSeed) ProtoReflect

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

func (*GroupSeed) Reset

func (x *GroupSeed) Reset()

func (*GroupSeed) String

func (x *GroupSeed) String() string

type Image

type Image struct {
	Id        string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Name      string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	MediaType string `protobuf:"bytes,3,opt,name=mediaType,proto3" json:"mediaType,omitempty"`
	Content   []byte `protobuf:"bytes,4,opt,name=content,proto3" json:"content,omitempty"`
	Url       string `protobuf:"bytes,5,opt,name=url,proto3" json:"url,omitempty"`
	// contains filtered or unexported fields
}

func (*Image) Descriptor deprecated

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

Deprecated: Use Image.ProtoReflect.Descriptor instead.

func (*Image) GetContent

func (x *Image) GetContent() []byte

func (*Image) GetId

func (x *Image) GetId() string

func (*Image) GetMediaType

func (x *Image) GetMediaType() string

func (*Image) GetName

func (x *Image) GetName() string

func (*Image) GetUrl

func (x *Image) GetUrl() string

func (*Image) ProtoMessage

func (*Image) ProtoMessage()

func (*Image) ProtoReflect

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

func (*Image) Reset

func (x *Image) Reset()

func (*Image) String

func (x *Image) String() string
type Link struct {
	Href      string   `protobuf:"bytes,1,opt,name=href,proto3" json:"href,omitempty"`
	Rel       []string `protobuf:"bytes,2,rep,name=rel,proto3" json:"rel,omitempty"`
	MediaType string   `protobuf:"bytes,3,opt,name=mediaType,proto3" json:"mediaType,omitempty"`
	Name      string   `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"`
	Hreflang  string   `protobuf:"bytes,5,opt,name=hreflang,proto3" json:"hreflang,omitempty"`
	Height    uint32   `protobuf:"varint,6,opt,name=height,proto3" json:"height,omitempty"`
	Width     uint32   `protobuf:"varint,7,opt,name=width,proto3" json:"width,omitempty"`
	Preview   *Object  `protobuf:"bytes,8,opt,name=preview,proto3" json:"preview,omitempty"`
	// contains filtered or unexported fields
}

func (*Link) Descriptor deprecated

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

Deprecated: Use Link.ProtoReflect.Descriptor instead.

func (*Link) GetHeight

func (x *Link) GetHeight() uint32

func (*Link) GetHref

func (x *Link) GetHref() string

func (*Link) GetHreflang

func (x *Link) GetHreflang() string

func (*Link) GetMediaType

func (x *Link) GetMediaType() string

func (*Link) GetName

func (x *Link) GetName() string

func (*Link) GetPreview

func (x *Link) GetPreview() *Object

func (*Link) GetRel

func (x *Link) GetRel() []string

func (*Link) GetWidth

func (x *Link) GetWidth() uint32

func (*Link) ProtoMessage

func (*Link) ProtoMessage()

func (*Link) ProtoReflect

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

func (*Link) Reset

func (x *Link) Reset()

func (*Link) String

func (x *Link) String() string

type Object

type Object struct {
	Id           string                 `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Type         string                 `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"`
	Attachments  []*Object              `protobuf:"bytes,3,rep,name=attachments,proto3" json:"attachments,omitempty"`
	AttributedTo []*Object              `protobuf:"bytes,4,rep,name=attributedTo,proto3" json:"attributedTo,omitempty"`
	Audience     *Object                `protobuf:"bytes,5,opt,name=audience,proto3" json:"audience,omitempty"`
	Content      string                 `protobuf:"bytes,6,opt,name=content,proto3" json:"content,omitempty"`
	Context      *Object                `protobuf:"bytes,7,opt,name=context,proto3" json:"context,omitempty"`
	Name         string                 `protobuf:"bytes,8,opt,name=name,proto3" json:"name,omitempty"`
	Endtime      *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=endtime,proto3" json:"endtime,omitempty"`
	Generator    *Object                `protobuf:"bytes,10,opt,name=generator,proto3" json:"generator,omitempty"`
	Icon         []*Object              `protobuf:"bytes,11,rep,name=icon,proto3" json:"icon,omitempty"`
	Image        []*Image               `protobuf:"bytes,12,rep,name=image,proto3" json:"image,omitempty"`
	Inreplyto    *Reply                 `protobuf:"bytes,13,opt,name=inreplyto,proto3" json:"inreplyto,omitempty"`
	Location     *Object                `protobuf:"bytes,14,opt,name=location,proto3" json:"location,omitempty"`
	Preview      *Object                `protobuf:"bytes,15,opt,name=preview,proto3" json:"preview,omitempty"`
	Published    *timestamppb.Timestamp `protobuf:"bytes,16,opt,name=published,proto3" json:"published,omitempty"`
	//Collection replies  = 16
	Replies   *Object                `protobuf:"bytes,17,opt,name=replies,proto3" json:"replies,omitempty"`
	StartTime *timestamppb.Timestamp `protobuf:"bytes,18,opt,name=startTime,proto3" json:"startTime,omitempty"`
	Summary   string                 `protobuf:"bytes,19,opt,name=summary,proto3" json:"summary,omitempty"`
	Tag       []*Object              `protobuf:"bytes,20,rep,name=tag,proto3" json:"tag,omitempty"`
	Updated   *timestamppb.Timestamp `protobuf:"bytes,21,opt,name=updated,proto3" json:"updated,omitempty"`
	Url       []*Link                `protobuf:"bytes,22,rep,name=url,proto3" json:"url,omitempty"`
	To        []*Object              `protobuf:"bytes,23,rep,name=to,proto3" json:"to,omitempty"`
	Bto       []*Object              `protobuf:"bytes,24,rep,name=bto,proto3" json:"bto,omitempty"`
	Cc        []*Object              `protobuf:"bytes,25,rep,name=cc,proto3" json:"cc,omitempty"`
	Bcc       []*Object              `protobuf:"bytes,26,rep,name=bcc,proto3" json:"bcc,omitempty"`
	MediaType string                 `protobuf:"bytes,27,opt,name=mediaType,proto3" json:"mediaType,omitempty"`
	Duration  string                 `protobuf:"bytes,28,opt,name=duration,proto3" json:"duration,omitempty"`
	// contains filtered or unexported fields
}

func (*Object) Descriptor deprecated

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

Deprecated: Use Object.ProtoReflect.Descriptor instead.

func (*Object) GetAttachments

func (x *Object) GetAttachments() []*Object

func (*Object) GetAttributedTo

func (x *Object) GetAttributedTo() []*Object

func (*Object) GetAudience

func (x *Object) GetAudience() *Object

func (*Object) GetBcc

func (x *Object) GetBcc() []*Object

func (*Object) GetBto

func (x *Object) GetBto() []*Object

func (*Object) GetCc

func (x *Object) GetCc() []*Object

func (*Object) GetContent

func (x *Object) GetContent() string

func (*Object) GetContext

func (x *Object) GetContext() *Object

func (*Object) GetDuration

func (x *Object) GetDuration() string

func (*Object) GetEndtime

func (x *Object) GetEndtime() *timestamppb.Timestamp

func (*Object) GetGenerator

func (x *Object) GetGenerator() *Object

func (*Object) GetIcon

func (x *Object) GetIcon() []*Object

func (*Object) GetId

func (x *Object) GetId() string

func (*Object) GetImage

func (x *Object) GetImage() []*Image

func (*Object) GetInreplyto

func (x *Object) GetInreplyto() *Reply

func (*Object) GetLocation

func (x *Object) GetLocation() *Object

func (*Object) GetMediaType

func (x *Object) GetMediaType() string

func (*Object) GetName

func (x *Object) GetName() string

func (*Object) GetPreview

func (x *Object) GetPreview() *Object

func (*Object) GetPublished

func (x *Object) GetPublished() *timestamppb.Timestamp

func (*Object) GetReplies

func (x *Object) GetReplies() *Object

func (*Object) GetStartTime

func (x *Object) GetStartTime() *timestamppb.Timestamp

func (*Object) GetSummary

func (x *Object) GetSummary() string

func (*Object) GetTag

func (x *Object) GetTag() []*Object

func (*Object) GetTo

func (x *Object) GetTo() []*Object

func (*Object) GetType

func (x *Object) GetType() string

func (*Object) GetUpdated

func (x *Object) GetUpdated() *timestamppb.Timestamp

func (*Object) GetUrl

func (x *Object) GetUrl() []*Link

func (*Object) ProtoMessage

func (*Object) ProtoMessage()

func (*Object) ProtoReflect

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

func (*Object) Reset

func (x *Object) Reset()

func (*Object) String

func (x *Object) String() string

type PSPing

type PSPing struct {
	Seqnum    int32  `protobuf:"varint,1,opt,name=Seqnum,proto3" json:"Seqnum,omitempty"`
	IsResp    bool   `protobuf:"varint,2,opt,name=IsResp,proto3" json:"IsResp,omitempty"`
	TimeStamp int64  `protobuf:"varint,3,opt,name=TimeStamp,proto3" json:"TimeStamp,omitempty"`
	Payload   []byte `protobuf:"bytes,4,opt,name=Payload,proto3" json:"Payload,omitempty"`
	// contains filtered or unexported fields
}

func (*PSPing) Descriptor deprecated

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

Deprecated: Use PSPing.ProtoReflect.Descriptor instead.

func (*PSPing) GetIsResp

func (x *PSPing) GetIsResp() bool

func (*PSPing) GetPayload

func (x *PSPing) GetPayload() []byte

func (*PSPing) GetSeqnum

func (x *PSPing) GetSeqnum() int32

func (*PSPing) GetTimeStamp

func (x *PSPing) GetTimeStamp() int64

func (*PSPing) ProtoMessage

func (*PSPing) ProtoMessage()

func (*PSPing) ProtoReflect

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

func (*PSPing) Reset

func (x *PSPing) Reset()

func (*PSPing) String

func (x *PSPing) String() string

type Package

type Package struct {
	Type PackageType `protobuf:"varint,1,opt,name=type,proto3,enum=chestnut.pb.PackageType" json:"type,omitempty"`
	Data []byte      `protobuf:"bytes,2,opt,name=Data,proto3" json:"Data,omitempty"`
	// contains filtered or unexported fields
}

func (*Package) Descriptor deprecated

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

Deprecated: Use Package.ProtoReflect.Descriptor instead.

func (*Package) GetData

func (x *Package) GetData() []byte

func (*Package) GetType

func (x *Package) GetType() PackageType

func (*Package) ProtoMessage

func (*Package) ProtoMessage()

func (*Package) ProtoReflect

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

func (*Package) Reset

func (x *Package) Reset()

func (*Package) String

func (x *Package) String() string

type PackageType

type PackageType int32
const (
	PackageType_TRX   PackageType = 0
	PackageType_BLOCK PackageType = 1
)

func (PackageType) Descriptor

func (PackageType) Enum

func (x PackageType) Enum() *PackageType

func (PackageType) EnumDescriptor deprecated

func (PackageType) EnumDescriptor() ([]byte, []int)

Deprecated: Use PackageType.Descriptor instead.

func (PackageType) Number

func (x PackageType) Number() protoreflect.EnumNumber

func (PackageType) String

func (x PackageType) String() string

func (PackageType) Type

type Payment

type Payment struct {
	Id   string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"`
	Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*Payment) Descriptor deprecated

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

Deprecated: Use Payment.ProtoReflect.Descriptor instead.

func (*Payment) GetId

func (x *Payment) GetId() string

func (*Payment) GetName

func (x *Payment) GetName() string

func (*Payment) GetType

func (x *Payment) GetType() string

func (*Payment) ProtoMessage

func (*Payment) ProtoMessage()

func (*Payment) ProtoReflect

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

func (*Payment) Reset

func (x *Payment) Reset()

func (*Payment) String

func (x *Payment) String() string

type Person

type Person struct {
	Id     string     `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Name   string     `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Image  *Image     `protobuf:"bytes,3,opt,name=image,proto3" json:"image,omitempty"`
	Wallet []*Payment `protobuf:"bytes,11,rep,name=wallet,proto3" json:"wallet,omitempty"`
	// contains filtered or unexported fields
}

func (*Person) Descriptor deprecated

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

Deprecated: Use Person.ProtoReflect.Descriptor instead.

func (*Person) GetId

func (x *Person) GetId() string

func (*Person) GetImage

func (x *Person) GetImage() *Image

func (*Person) GetName

func (x *Person) GetName() string

func (*Person) GetWallet

func (x *Person) GetWallet() []*Payment

func (*Person) ProtoMessage

func (*Person) ProtoMessage()

func (*Person) ProtoReflect

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

func (*Person) Reset

func (x *Person) Reset()

func (*Person) String

func (x *Person) String() string

type PostItem

type PostItem struct {
	TrxId           string `protobuf:"bytes,1,opt,name=TrxId,proto3" json:"TrxId,omitempty"`
	PublisherPubkey string `protobuf:"bytes,2,opt,name=PublisherPubkey,proto3" json:"PublisherPubkey,omitempty"`
	Content         []byte `protobuf:"bytes,3,opt,name=Content,proto3" json:"Content,omitempty"`
	TimeStamp       int64  `protobuf:"varint,4,opt,name=TimeStamp,proto3" json:"TimeStamp,omitempty"`
	// contains filtered or unexported fields
}

func (*PostItem) Descriptor deprecated

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

Deprecated: Use PostItem.ProtoReflect.Descriptor instead.

func (*PostItem) GetContent

func (x *PostItem) GetContent() []byte

func (*PostItem) GetPublisherPubkey

func (x *PostItem) GetPublisherPubkey() string

func (*PostItem) GetTimeStamp

func (x *PostItem) GetTimeStamp() int64

func (*PostItem) GetTrxId

func (x *PostItem) GetTrxId() string

func (*PostItem) ProtoMessage

func (*PostItem) ProtoMessage()

func (*PostItem) ProtoReflect

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

func (*PostItem) Reset

func (x *PostItem) Reset()

func (*PostItem) String

func (x *PostItem) String() string

type ProducerItem

type ProducerItem struct {
	GroupId          string     `protobuf:"bytes,1,opt,name=GroupId,proto3" json:"GroupId,omitempty"`
	ProducerPubkey   string     `protobuf:"bytes,2,opt,name=ProducerPubkey,proto3" json:"ProducerPubkey,omitempty"`
	GroupOwnerPubkey string     `protobuf:"bytes,3,opt,name=GroupOwnerPubkey,proto3" json:"GroupOwnerPubkey,omitempty"`
	GroupOwnerSign   string     `protobuf:"bytes,4,opt,name=GroupOwnerSign,proto3" json:"GroupOwnerSign,omitempty"`
	TimeStamp        int64      `protobuf:"varint,5,opt,name=TimeStamp,proto3" json:"TimeStamp,omitempty"`
	Action           ActionType `protobuf:"varint,6,opt,name=Action,proto3,enum=chestnut.pb.ActionType" json:"Action,omitempty"`
	BlockProduced    int64      `protobuf:"varint,7,opt,name=BlockProduced,proto3" json:"BlockProduced,omitempty"`
	Memo             string     `protobuf:"bytes,8,opt,name=Memo,proto3" json:"Memo,omitempty"`
	// contains filtered or unexported fields
}

func (*ProducerItem) Descriptor deprecated

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

Deprecated: Use ProducerItem.ProtoReflect.Descriptor instead.

func (*ProducerItem) GetAction

func (x *ProducerItem) GetAction() ActionType

func (*ProducerItem) GetBlockProduced

func (x *ProducerItem) GetBlockProduced() int64

func (*ProducerItem) GetGroupId

func (x *ProducerItem) GetGroupId() string

func (*ProducerItem) GetGroupOwnerPubkey

func (x *ProducerItem) GetGroupOwnerPubkey() string

func (*ProducerItem) GetGroupOwnerSign

func (x *ProducerItem) GetGroupOwnerSign() string

func (*ProducerItem) GetMemo

func (x *ProducerItem) GetMemo() string

func (*ProducerItem) GetProducerPubkey

func (x *ProducerItem) GetProducerPubkey() string

func (*ProducerItem) GetTimeStamp

func (x *ProducerItem) GetTimeStamp() int64

func (*ProducerItem) ProtoMessage

func (*ProducerItem) ProtoMessage()

func (*ProducerItem) ProtoReflect

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

func (*ProducerItem) Reset

func (x *ProducerItem) Reset()

func (*ProducerItem) String

func (x *ProducerItem) String() string

type Reply

type Reply struct {
	Trxid   string `protobuf:"bytes,1,opt,name=trxid,proto3" json:"trxid,omitempty"`
	Groupid string `protobuf:"bytes,2,opt,name=groupid,proto3" json:"groupid,omitempty"`
	// contains filtered or unexported fields
}

func (*Reply) Descriptor deprecated

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

Deprecated: Use Reply.ProtoReflect.Descriptor instead.

func (*Reply) GetGroupid

func (x *Reply) GetGroupid() string

func (*Reply) GetTrxid

func (x *Reply) GetTrxid() string

func (*Reply) ProtoMessage

func (*Reply) ProtoMessage()

func (*Reply) ProtoReflect

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

func (*Reply) Reset

func (x *Reply) Reset()

func (*Reply) String

func (x *Reply) String() string

type ReqBlkResult

type ReqBlkResult int32
const (
	ReqBlkResult_BLOCK_IN_TRX    ReqBlkResult = 0 //block data in trx
	ReqBlkResult_BLOCK_NOT_FOUND ReqBlkResult = 1 //block not found
)

func (ReqBlkResult) Descriptor

func (ReqBlkResult) Enum

func (x ReqBlkResult) Enum() *ReqBlkResult

func (ReqBlkResult) EnumDescriptor deprecated

func (ReqBlkResult) EnumDescriptor() ([]byte, []int)

Deprecated: Use ReqBlkResult.Descriptor instead.

func (ReqBlkResult) Number

func (ReqBlkResult) String

func (x ReqBlkResult) String() string

func (ReqBlkResult) Type

type ReqBlock

type ReqBlock struct {
	BlockId string `protobuf:"bytes,1,opt,name=BlockId,proto3" json:"BlockId,omitempty"` //block id
	GroupId string `protobuf:"bytes,2,opt,name=GroupId,proto3" json:"GroupId,omitempty"` //group id
	UserId  string `protobuf:"bytes,3,opt,name=UserId,proto3" json:"UserId,omitempty"`   //requester
	// contains filtered or unexported fields
}

func (*ReqBlock) Descriptor deprecated

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

Deprecated: Use ReqBlock.ProtoReflect.Descriptor instead.

func (*ReqBlock) GetBlockId

func (x *ReqBlock) GetBlockId() string

func (*ReqBlock) GetGroupId

func (x *ReqBlock) GetGroupId() string

func (*ReqBlock) GetUserId

func (x *ReqBlock) GetUserId() string

func (*ReqBlock) ProtoMessage

func (*ReqBlock) ProtoMessage()

func (*ReqBlock) ProtoReflect

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

func (*ReqBlock) Reset

func (x *ReqBlock) Reset()

func (*ReqBlock) String

func (x *ReqBlock) String() string

type ReqBlockResp

type ReqBlockResp struct {
	Result          ReqBlkResult `protobuf:"varint,1,opt,name=Result,proto3,enum=chestnut.pb.ReqBlkResult" json:"Result,omitempty"`
	ProviderPubkey  string       `protobuf:"bytes,2,opt,name=ProviderPubkey,proto3" json:"ProviderPubkey,omitempty"`
	RequesterPubkey string       `protobuf:"bytes,3,opt,name=RequesterPubkey,proto3" json:"RequesterPubkey,omitempty"`
	GroupId         string       `protobuf:"bytes,4,opt,name=GroupId,proto3" json:"GroupId,omitempty"`
	BlockId         string       `protobuf:"bytes,5,opt,name=BlockId,proto3" json:"BlockId,omitempty"`
	Block           []byte       `protobuf:"bytes,6,opt,name=Block,proto3" json:"Block,omitempty"`
	// contains filtered or unexported fields
}

func (*ReqBlockResp) Descriptor deprecated

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

Deprecated: Use ReqBlockResp.ProtoReflect.Descriptor instead.

func (*ReqBlockResp) GetBlock

func (x *ReqBlockResp) GetBlock() []byte

func (*ReqBlockResp) GetBlockId

func (x *ReqBlockResp) GetBlockId() string

func (*ReqBlockResp) GetGroupId

func (x *ReqBlockResp) GetGroupId() string

func (*ReqBlockResp) GetProviderPubkey

func (x *ReqBlockResp) GetProviderPubkey() string

func (*ReqBlockResp) GetRequesterPubkey

func (x *ReqBlockResp) GetRequesterPubkey() string

func (*ReqBlockResp) GetResult

func (x *ReqBlockResp) GetResult() ReqBlkResult

func (*ReqBlockResp) ProtoMessage

func (*ReqBlockResp) ProtoMessage()

func (*ReqBlockResp) ProtoReflect

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

func (*ReqBlockResp) Reset

func (x *ReqBlockResp) Reset()

func (*ReqBlockResp) String

func (x *ReqBlockResp) String() string

type RoleV0

type RoleV0 int32
const (
	RoleV0_GROUP_PRODUCER RoleV0 = 0
	RoleV0_GROUP_USER     RoleV0 = 1
)

func (RoleV0) Descriptor

func (RoleV0) Descriptor() protoreflect.EnumDescriptor

func (RoleV0) Enum

func (x RoleV0) Enum() *RoleV0

func (RoleV0) EnumDescriptor deprecated

func (RoleV0) EnumDescriptor() ([]byte, []int)

Deprecated: Use RoleV0.Descriptor instead.

func (RoleV0) Number

func (x RoleV0) Number() protoreflect.EnumNumber

func (RoleV0) String

func (x RoleV0) String() string

func (RoleV0) Type

func (RoleV0) Type() protoreflect.EnumType

type SchemaItem

type SchemaItem struct {
	GroupId          string     `protobuf:"bytes,1,opt,name=GroupId,proto3" json:"GroupId,omitempty"`
	GroupOwnerPubkey string     `protobuf:"bytes,2,opt,name=GroupOwnerPubkey,proto3" json:"GroupOwnerPubkey,omitempty"`
	GroupOwnerSign   string     `protobuf:"bytes,3,opt,name=GroupOwnerSign,proto3" json:"GroupOwnerSign,omitempty"`
	Type             string     `protobuf:"bytes,4,opt,name=Type,proto3" json:"Type,omitempty"`
	Rule             string     `protobuf:"bytes,5,opt,name=Rule,proto3" json:"Rule,omitempty"`
	TimeStamp        int64      `protobuf:"varint,6,opt,name=TimeStamp,proto3" json:"TimeStamp,omitempty"`
	Action           ActionType `protobuf:"varint,7,opt,name=Action,proto3,enum=chestnut.pb.ActionType" json:"Action,omitempty"`
	// contains filtered or unexported fields
}

func (*SchemaItem) Descriptor deprecated

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

Deprecated: Use SchemaItem.ProtoReflect.Descriptor instead.

func (*SchemaItem) GetAction

func (x *SchemaItem) GetAction() ActionType

func (*SchemaItem) GetGroupId

func (x *SchemaItem) GetGroupId() string

func (*SchemaItem) GetGroupOwnerPubkey

func (x *SchemaItem) GetGroupOwnerPubkey() string

func (*SchemaItem) GetGroupOwnerSign

func (x *SchemaItem) GetGroupOwnerSign() string

func (*SchemaItem) GetRule

func (x *SchemaItem) GetRule() string

func (*SchemaItem) GetTimeStamp

func (x *SchemaItem) GetTimeStamp() int64

func (*SchemaItem) GetType

func (x *SchemaItem) GetType() string

func (*SchemaItem) ProtoMessage

func (*SchemaItem) ProtoMessage()

func (*SchemaItem) ProtoReflect

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

func (*SchemaItem) Reset

func (x *SchemaItem) Reset()

func (*SchemaItem) String

func (x *SchemaItem) String() string

type Trx

type Trx struct {
	TrxId        string  `protobuf:"bytes,1,opt,name=TrxId,proto3" json:"TrxId,omitempty"`
	Type         TrxType `protobuf:"varint,2,opt,name=Type,proto3,enum=chestnut.pb.TrxType" json:"Type,omitempty"`
	GroupId      string  `protobuf:"bytes,3,opt,name=GroupId,proto3" json:"GroupId,omitempty"`
	Data         []byte  `protobuf:"bytes,4,opt,name=Data,proto3" json:"Data,omitempty"`
	TimeStamp    int64   `protobuf:"varint,5,opt,name=TimeStamp,proto3" json:"TimeStamp,omitempty"`
	Version      string  `protobuf:"bytes,6,opt,name=Version,proto3" json:"Version,omitempty"`
	Expired      int64   `protobuf:"varint,7,opt,name=Expired,proto3" json:"Expired,omitempty"`
	ResendCount  int64   `protobuf:"varint,8,opt,name=ResendCount,proto3" json:"ResendCount,omitempty"`
	Nonce        int64   `protobuf:"varint,9,opt,name=Nonce,proto3" json:"Nonce,omitempty"`
	SenderPubkey string  `protobuf:"bytes,10,opt,name=SenderPubkey,proto3" json:"SenderPubkey,omitempty"`
	SenderSign   []byte  `protobuf:"bytes,11,opt,name=SenderSign,proto3" json:"SenderSign,omitempty"`
	// contains filtered or unexported fields
}

func (*Trx) Descriptor deprecated

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

Deprecated: Use Trx.ProtoReflect.Descriptor instead.

func (*Trx) GetData

func (x *Trx) GetData() []byte

func (*Trx) GetExpired

func (x *Trx) GetExpired() int64

func (*Trx) GetGroupId

func (x *Trx) GetGroupId() string

func (*Trx) GetNonce

func (x *Trx) GetNonce() int64

func (*Trx) GetResendCount

func (x *Trx) GetResendCount() int64

func (*Trx) GetSenderPubkey

func (x *Trx) GetSenderPubkey() string

func (*Trx) GetSenderSign

func (x *Trx) GetSenderSign() []byte

func (*Trx) GetTimeStamp

func (x *Trx) GetTimeStamp() int64

func (*Trx) GetTrxId

func (x *Trx) GetTrxId() string

func (*Trx) GetType

func (x *Trx) GetType() TrxType

func (*Trx) GetVersion

func (x *Trx) GetVersion() string

func (*Trx) ProtoMessage

func (*Trx) ProtoMessage()

func (*Trx) ProtoReflect

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

func (*Trx) Reset

func (x *Trx) Reset()

func (*Trx) String

func (x *Trx) String() string

type TrxType

type TrxType int32
const (
	TrxType_POST               TrxType = 0 // post to group
	TrxType_AUTH               TrxType = 1 // group auth update
	TrxType_SCHEMA             TrxType = 2 // group schema
	TrxType_PRODUCER           TrxType = 3 // update group producer
	TrxType_ANNOUNCE           TrxType = 4 // self announce, producer or user)
	TrxType_REQ_BLOCK_FORWARD  TrxType = 5 // request next block
	TrxType_REQ_BLOCK_BACKWARD TrxType = 6 // request previous block
	TrxType_REQ_BLOCK_RESP     TrxType = 7 // response request next block
	TrxType_BLOCK_SYNCED       TrxType = 8 // block for producer to sync (old block)
	TrxType_BLOCK_PRODUCED     TrxType = 9 // block for producer to merge (newly produced block)
)

func (TrxType) Descriptor

func (TrxType) Descriptor() protoreflect.EnumDescriptor

func (TrxType) Enum

func (x TrxType) Enum() *TrxType

func (TrxType) EnumDescriptor deprecated

func (TrxType) EnumDescriptor() ([]byte, []int)

Deprecated: Use TrxType.Descriptor instead.

func (TrxType) Number

func (x TrxType) Number() protoreflect.EnumNumber

func (TrxType) String

func (x TrxType) String() string

func (TrxType) Type

func (TrxType) Type() protoreflect.EnumType

Jump to

Keyboard shortcuts

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