ccprotos

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package ccprotos is a generated protocol buffer package.

It is generated from these files:

regtx.proto

It has these top-level messages:

RegPublicKey
RevokePublicKey
ActivePublicKey
Settings
RegGlobalData
RegData

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ActivePublicKey

type ActivePublicKey struct {
	Key []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
}

func (*ActivePublicKey) Descriptor

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

func (*ActivePublicKey) GetKey

func (m *ActivePublicKey) GetKey() []byte

func (*ActivePublicKey) ProtoMessage

func (*ActivePublicKey) ProtoMessage()

func (*ActivePublicKey) Reset

func (m *ActivePublicKey) Reset()

func (*ActivePublicKey) String

func (m *ActivePublicKey) String() string

type RegData

type RegData struct {
	Pk        *protos.PublicKey          `protobuf:"bytes,1,opt,name=pk" json:"pk,omitempty"`
	RegTxid   string                     `protobuf:"bytes,3,opt,name=regTxid" json:"regTxid,omitempty"`
	RegTs     *google_protobuf.Timestamp `protobuf:"bytes,4,opt,name=regTs" json:"regTs,omitempty"`
	Region    string                     `protobuf:"bytes,5,opt,name=region" json:"region,omitempty"`
	Enabled   bool                       `protobuf:"varint,6,opt,name=enabled" json:"enabled,omitempty"`
	Authcodes []int32                    `protobuf:"varint,10,rep,packed,name=authcodes" json:"authcodes,omitempty"`
}

func (*RegData) Descriptor

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

func (*RegData) GetAuthcodes

func (m *RegData) GetAuthcodes() []int32

func (*RegData) GetEnabled

func (m *RegData) GetEnabled() bool

func (*RegData) GetPk

func (m *RegData) GetPk() *protos.PublicKey

func (*RegData) GetRegTs

func (m *RegData) GetRegTs() *google_protobuf.Timestamp

func (*RegData) GetRegTxid

func (m *RegData) GetRegTxid() string

func (*RegData) GetRegion

func (m *RegData) GetRegion() string

func (*RegData) ProtoMessage

func (*RegData) ProtoMessage()

func (*RegData) Reset

func (m *RegData) Reset()

func (*RegData) String

func (m *RegData) String() string

type RegData_s

type RegData_s struct {
	Pk crypto.Verifier
	// contains filtered or unexported fields
}

func (*RegData_s) GetObject

func (n *RegData_s) GetObject() interface{}

func (*RegData_s) Load

func (n *RegData_s) Load(interface{}) error

func (*RegData_s) Save

func (n *RegData_s) Save() interface{}

func (*RegData_s) ToPB

func (n *RegData_s) ToPB() *RegData

type RegGlobalData

type RegGlobalData struct {
	RegPrivilege   string           `protobuf:"bytes,1,opt,name=regPrivilege" json:"regPrivilege,omitempty"`
	AdminPrivilege string           `protobuf:"bytes,2,opt,name=adminPrivilege" json:"adminPrivilege,omitempty"`
	Chaincodes     map[int32]string `` /* 141-byte string literal not displayed */
	DeployFlag     []byte           `protobuf:"bytes,10,opt,name=deployFlag,proto3" json:"deployFlag,omitempty"`
}

func (*RegGlobalData) Descriptor

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

func (*RegGlobalData) GetAdminPrivilege

func (m *RegGlobalData) GetAdminPrivilege() string

func (*RegGlobalData) GetChaincodes

func (m *RegGlobalData) GetChaincodes() map[int32]string

func (*RegGlobalData) GetDeployFlag

func (m *RegGlobalData) GetDeployFlag() []byte

func (*RegGlobalData) GetRegPrivilege

func (m *RegGlobalData) GetRegPrivilege() string

func (*RegGlobalData) ProtoMessage

func (*RegGlobalData) ProtoMessage()

func (*RegGlobalData) Reset

func (m *RegGlobalData) Reset()

func (*RegGlobalData) String

func (m *RegGlobalData) String() string

type RegGlobalData_s

type RegGlobalData_s struct {
	// contains filtered or unexported fields
}

func (*RegGlobalData_s) GetObject

func (n *RegGlobalData_s) GetObject() interface{}

func (*RegGlobalData_s) Load

func (n *RegGlobalData_s) Load(interface{}) error

func (*RegGlobalData_s) Save

func (n *RegGlobalData_s) Save() interface{}

func (*RegGlobalData_s) ToPB

func (n *RegGlobalData_s) ToPB() *RegGlobalData

type RegPublicKey

type RegPublicKey struct {
	Region  string `protobuf:"bytes,2,opt,name=region" json:"region,omitempty"`
	PkBytes []byte `protobuf:"bytes,3,opt,name=pkBytes,proto3" json:"pkBytes,omitempty"`
}

user can register a public key only if it has own some pais

func (*RegPublicKey) Descriptor

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

func (*RegPublicKey) GetAddresses

func (m *RegPublicKey) GetAddresses() []*tx.Address

func (*RegPublicKey) GetPkBytes

func (m *RegPublicKey) GetPkBytes() []byte

func (*RegPublicKey) GetRegion

func (m *RegPublicKey) GetRegion() string

func (*RegPublicKey) ProtoMessage

func (*RegPublicKey) ProtoMessage()

func (*RegPublicKey) Reset

func (m *RegPublicKey) Reset()

func (*RegPublicKey) String

func (m *RegPublicKey) String() string

type RevokePublicKey

type RevokePublicKey struct {
	Pk *protos.PublicKey `protobuf:"bytes,1,opt,name=pk" json:"pk,omitempty"`
}

func (*RevokePublicKey) Descriptor

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

func (*RevokePublicKey) GetPk

func (m *RevokePublicKey) GetPk() *protos.PublicKey

func (*RevokePublicKey) ProtoMessage

func (*RevokePublicKey) ProtoMessage()

func (*RevokePublicKey) Reset

func (m *RevokePublicKey) Reset()

func (*RevokePublicKey) String

func (m *RevokePublicKey) String() string

type Settings

type Settings struct {
	DebugMode      bool   `protobuf:"varint,1,opt,name=debugMode" json:"debugMode,omitempty"`
	RegPrivilege   string `protobuf:"bytes,2,opt,name=regPrivilege" json:"regPrivilege,omitempty"`
	AdminPrivilege string `protobuf:"bytes,3,opt,name=adminPrivilege" json:"adminPrivilege,omitempty"`
}

func (*Settings) Descriptor

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

func (*Settings) GetAdminPrivilege

func (m *Settings) GetAdminPrivilege() string

func (*Settings) GetDebugMode

func (m *Settings) GetDebugMode() bool

func (*Settings) GetRegPrivilege

func (m *Settings) GetRegPrivilege() string

func (*Settings) ProtoMessage

func (*Settings) ProtoMessage()

func (*Settings) Reset

func (m *Settings) Reset()

func (*Settings) String

func (m *Settings) String() string

Jump to

Keyboard shortcuts

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