peer

package
v1.0.8 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2020 License: GPL-3.0, GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ConfidentialityLevel_name = map[int32]string{
	0: "PUBLIC",
	1: "CONFIDENTIAL",
}
View Source
var ConfidentialityLevel_value = map[string]int32{
	"PUBLIC":       0,
	"CONFIDENTIAL": 1,
}
View Source
var PtnChaincodeDeploymentSpec_ExecutionEnvironment_name = map[int32]string{
	0: "DOCKER",
	1: "SYSTEM",
}
View Source
var PtnChaincodeDeploymentSpec_ExecutionEnvironment_value = map[string]int32{
	"DOCKER": 0,
	"SYSTEM": 1,
}
View Source
var PtnChaincodeMessage_Type_name = map[int32]string{
	0:  "UNDEFINED",
	1:  "REGISTER",
	2:  "REGISTERED",
	3:  "INIT",
	4:  "READY",
	5:  "TRANSACTION",
	6:  "COMPLETED",
	7:  "ERROR",
	8:  "PTN_GET_STATE",
	9:  "PTN_PUT_STATE",
	10: "PTN_DEL_STATE",
	11: "INVOKE_CHAINCODE",
	13: "RESPONSE",
	14: "GET_STATE_BY_PREFIX",
	18: "KEEPALIVE",
	23: "GET_SYSTEM_CONFIG_REQUEST",
	24: "GET_CONTRACT_ALL_STATE",
	25: "GET_TOKEN_BALANCE",
	26: "PAY_OUT_TOKEN",
	27: "DEFINE_TOKEN",
	28: "SUPPLY_TOKEN",
	29: "GET_TIMESTAMP",
	30: "SEND_JURY",
	31: "RECV_JURY",
	32: "GET_CERT_STATE",
	33: "OUTCHAIN_CALL",
	34: "GET_STABLE_TRANSACTION",
	35: "GET_STABLE_UNIT",
}
View Source
var PtnChaincodeMessage_Type_value = map[string]int32{
	"UNDEFINED":                 0,
	"REGISTER":                  1,
	"REGISTERED":                2,
	"INIT":                      3,
	"READY":                     4,
	"TRANSACTION":               5,
	"COMPLETED":                 6,
	"ERROR":                     7,
	"PTN_GET_STATE":             8,
	"PTN_PUT_STATE":             9,
	"PTN_DEL_STATE":             10,
	"INVOKE_CHAINCODE":          11,
	"RESPONSE":                  13,
	"GET_STATE_BY_PREFIX":       14,
	"KEEPALIVE":                 18,
	"GET_SYSTEM_CONFIG_REQUEST": 23,
	"GET_CONTRACT_ALL_STATE":    24,
	"GET_TOKEN_BALANCE":         25,
	"PAY_OUT_TOKEN":             26,
	"DEFINE_TOKEN":              27,
	"SUPPLY_TOKEN":              28,
	"GET_TIMESTAMP":             29,
	"SEND_JURY":                 30,
	"RECV_JURY":                 31,
	"GET_CERT_STATE":            32,
	"OUTCHAIN_CALL":             33,
	"GET_STABLE_TRANSACTION":    34,
	"GET_STABLE_UNIT":           35,
}
View Source
var PtnChaincodeSpec_Type_name = map[int32]string{
	0: "UNDEFINED",
	1: "GOLANG",
	2: "NODE",
	3: "CAR",
	4: "JAVA",
}
View Source
var PtnChaincodeSpec_Type_value = map[string]int32{
	"UNDEFINED": 0,
	"GOLANG":    1,
	"NODE":      2,
	"CAR":       3,
	"JAVA":      4,
}

Functions

func RegisterChaincodeSupportServer

func RegisterChaincodeSupportServer(s *grpc.Server, srv ChaincodeSupportServer)

Types

type ChaincodeSupportClient

type ChaincodeSupportClient interface {
	Register(ctx context.Context, opts ...grpc.CallOption) (ChaincodeSupport_RegisterClient, error)
}

ChaincodeSupportClient is the client API for ChaincodeSupport service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewChaincodeSupportClient

func NewChaincodeSupportClient(cc *grpc.ClientConn) ChaincodeSupportClient

type ChaincodeSupportServer

type ChaincodeSupportServer interface {
	Register(ChaincodeSupport_RegisterServer) error
}

ChaincodeSupportServer is the server API for ChaincodeSupport service.

type ChaincodeSupport_RegisterClient

type ChaincodeSupport_RegisterClient interface {
	Send(*PtnChaincodeMessage) error
	Recv() (*PtnChaincodeMessage, error)
	grpc.ClientStream
}

type ChaincodeSupport_RegisterServer

type ChaincodeSupport_RegisterServer interface {
	Send(*PtnChaincodeMessage) error
	Recv() (*PtnChaincodeMessage, error)
	grpc.ServerStream
}

type ConfidentialityLevel

type ConfidentialityLevel int32

Confidentiality Levels

const (
	ConfidentialityLevel_PUBLIC       ConfidentialityLevel = 0
	ConfidentialityLevel_CONFIDENTIAL ConfidentialityLevel = 1
)

func (ConfidentialityLevel) EnumDescriptor

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

func (ConfidentialityLevel) String

func (x ConfidentialityLevel) String() string

type ContractDeployPayload

type ContractDeployPayload struct {
	ContractId string                 `json:"contract_id"` // contract id
	Function   []byte                 `json:"function"`    // serialized value of invoked function with call parameters
	ReadSet    map[string]interface{} `json:"read_set"`    // the set data of read, and value could be any type
	WriteSet   map[string]interface{} `json:"write_set"`   // the set data of write, and value could be any type
}

type ContractInvokePayload

type ContractInvokePayload struct {
	ContractId string                 `json:"contract_id"` // contract id
	Function   []byte                 `json:"function"`    // serialized value of invoked function with call parameters
	ReadSet    map[string]interface{} `json:"read_set"`    // the set data of read, and value could be any type
	WriteSet   map[string]interface{} `json:"write_set"`   // the set data of write, and value could be any type
}

type PtnChaincodeAction added in v1.0.8

type PtnChaincodeAction struct {
	// This field contains the read set and the write set produced by the
	// chaincode executing this invocation.
	Results []byte `protobuf:"bytes,1,opt,name=results,proto3" json:"results,omitempty"`
	// This field contains the events generated by the chaincode executing this
	// invocation.
	Events []byte `protobuf:"bytes,2,opt,name=events,proto3" json:"events,omitempty"`
	// This field contains the result of executing this invocation.
	Response *PtnResponse `protobuf:"bytes,3,opt,name=response,proto3" json:"response,omitempty"`
	// This field contains the ChaincodeID of executing this invocation. Endorser
	// will set it with the ChaincodeID called by endorser while simulating proposal.
	// Committer will validate the version matching with latest chaincode version.
	// Adding ChaincodeID to keep version opens up the possibility of multiple
	// ChaincodeAction per transaction.
	ChaincodeId          *PtnChaincodeID `protobuf:"bytes,4,opt,name=chaincode_id,json=chaincodeId,proto3" json:"chaincode_id,omitempty"`
	XXX_NoUnkeyedLiteral struct{}        `json:"-"`
	XXX_unrecognized     []byte          `json:"-"`
	XXX_sizecache        int32           `json:"-"`
}

ChaincodeAction contains the actions the events generated by the execution of the chaincode.

func (*PtnChaincodeAction) Descriptor added in v1.0.8

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

func (*PtnChaincodeAction) GetChaincodeId added in v1.0.8

func (m *PtnChaincodeAction) GetChaincodeId() *PtnChaincodeID

func (*PtnChaincodeAction) GetEvents added in v1.0.8

func (m *PtnChaincodeAction) GetEvents() []byte

func (*PtnChaincodeAction) GetResponse added in v1.0.8

func (m *PtnChaincodeAction) GetResponse() *PtnResponse

func (*PtnChaincodeAction) GetResults added in v1.0.8

func (m *PtnChaincodeAction) GetResults() []byte

func (*PtnChaincodeAction) ProtoMessage added in v1.0.8

func (*PtnChaincodeAction) ProtoMessage()

func (*PtnChaincodeAction) Reset added in v1.0.8

func (m *PtnChaincodeAction) Reset()

func (*PtnChaincodeAction) String added in v1.0.8

func (m *PtnChaincodeAction) String() string

func (*PtnChaincodeAction) XXX_DiscardUnknown added in v1.0.8

func (m *PtnChaincodeAction) XXX_DiscardUnknown()

func (*PtnChaincodeAction) XXX_Marshal added in v1.0.8

func (m *PtnChaincodeAction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PtnChaincodeAction) XXX_Merge added in v1.0.8

func (m *PtnChaincodeAction) XXX_Merge(src proto.Message)

func (*PtnChaincodeAction) XXX_Size added in v1.0.8

func (m *PtnChaincodeAction) XXX_Size() int

func (*PtnChaincodeAction) XXX_Unmarshal added in v1.0.8

func (m *PtnChaincodeAction) XXX_Unmarshal(b []byte) error

type PtnChaincodeDeploymentSpec added in v1.0.8

type PtnChaincodeDeploymentSpec struct {
	ChaincodeSpec *PtnChaincodeSpec `protobuf:"bytes,1,opt,name=chaincode_spec,json=chaincodeSpec,proto3" json:"chaincode_spec,omitempty"`
	// Controls when the chaincode becomes executable.
	//    google.protobuf.Timestamp effective_date = 2;
	CodePackage          []byte                                          `protobuf:"bytes,3,opt,name=code_package,json=codePackage,proto3" json:"code_package,omitempty"`
	ExecEnv              PtnChaincodeDeploymentSpec_ExecutionEnvironment `` /* 143-byte string literal not displayed */
	XXX_NoUnkeyedLiteral struct{}                                        `json:"-"`
	XXX_unrecognized     []byte                                          `json:"-"`
	XXX_sizecache        int32                                           `json:"-"`
}

Specify the deployment of a chaincode. TODO: Define `codePackage`.

func (*PtnChaincodeDeploymentSpec) Descriptor added in v1.0.8

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

func (*PtnChaincodeDeploymentSpec) GetChaincodeSpec added in v1.0.8

func (m *PtnChaincodeDeploymentSpec) GetChaincodeSpec() *PtnChaincodeSpec

func (*PtnChaincodeDeploymentSpec) GetCodePackage added in v1.0.8

func (m *PtnChaincodeDeploymentSpec) GetCodePackage() []byte

func (*PtnChaincodeDeploymentSpec) GetExecEnv added in v1.0.8

func (*PtnChaincodeDeploymentSpec) ProtoMessage added in v1.0.8

func (*PtnChaincodeDeploymentSpec) ProtoMessage()

func (*PtnChaincodeDeploymentSpec) Reset added in v1.0.8

func (m *PtnChaincodeDeploymentSpec) Reset()

func (*PtnChaincodeDeploymentSpec) String added in v1.0.8

func (m *PtnChaincodeDeploymentSpec) String() string

func (*PtnChaincodeDeploymentSpec) XXX_DiscardUnknown added in v1.0.8

func (m *PtnChaincodeDeploymentSpec) XXX_DiscardUnknown()

func (*PtnChaincodeDeploymentSpec) XXX_Marshal added in v1.0.8

func (m *PtnChaincodeDeploymentSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PtnChaincodeDeploymentSpec) XXX_Merge added in v1.0.8

func (m *PtnChaincodeDeploymentSpec) XXX_Merge(src proto.Message)

func (*PtnChaincodeDeploymentSpec) XXX_Size added in v1.0.8

func (m *PtnChaincodeDeploymentSpec) XXX_Size() int

func (*PtnChaincodeDeploymentSpec) XXX_Unmarshal added in v1.0.8

func (m *PtnChaincodeDeploymentSpec) XXX_Unmarshal(b []byte) error

type PtnChaincodeDeploymentSpec_ExecutionEnvironment added in v1.0.8

type PtnChaincodeDeploymentSpec_ExecutionEnvironment int32
const (
	PtnChaincodeDeploymentSpec_DOCKER PtnChaincodeDeploymentSpec_ExecutionEnvironment = 0
	PtnChaincodeDeploymentSpec_SYSTEM PtnChaincodeDeploymentSpec_ExecutionEnvironment = 1
)

func (PtnChaincodeDeploymentSpec_ExecutionEnvironment) EnumDescriptor added in v1.0.8

func (PtnChaincodeDeploymentSpec_ExecutionEnvironment) String added in v1.0.8

type PtnChaincodeEvent added in v1.0.8

type PtnChaincodeEvent struct {
	ChaincodeId          string   `protobuf:"bytes,1,opt,name=chaincode_id,json=chaincodeId,proto3" json:"chaincode_id,omitempty"`
	TxId                 string   `protobuf:"bytes,2,opt,name=tx_id,json=txId,proto3" json:"tx_id,omitempty"`
	EventName            string   `protobuf:"bytes,3,opt,name=event_name,json=eventName,proto3" json:"event_name,omitempty"`
	Payload              []byte   `protobuf:"bytes,4,opt,name=payload,proto3" json:"payload,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

ChaincodeEvent is used for events and registrations that are specific to chaincode string type - "chaincode"

func (*PtnChaincodeEvent) Descriptor added in v1.0.8

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

func (*PtnChaincodeEvent) GetChaincodeId added in v1.0.8

func (m *PtnChaincodeEvent) GetChaincodeId() string

func (*PtnChaincodeEvent) GetEventName added in v1.0.8

func (m *PtnChaincodeEvent) GetEventName() string

func (*PtnChaincodeEvent) GetPayload added in v1.0.8

func (m *PtnChaincodeEvent) GetPayload() []byte

func (*PtnChaincodeEvent) GetTxId added in v1.0.8

func (m *PtnChaincodeEvent) GetTxId() string

func (*PtnChaincodeEvent) ProtoMessage added in v1.0.8

func (*PtnChaincodeEvent) ProtoMessage()

func (*PtnChaincodeEvent) Reset added in v1.0.8

func (m *PtnChaincodeEvent) Reset()

func (*PtnChaincodeEvent) String added in v1.0.8

func (m *PtnChaincodeEvent) String() string

func (*PtnChaincodeEvent) XXX_DiscardUnknown added in v1.0.8

func (m *PtnChaincodeEvent) XXX_DiscardUnknown()

func (*PtnChaincodeEvent) XXX_Marshal added in v1.0.8

func (m *PtnChaincodeEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PtnChaincodeEvent) XXX_Merge added in v1.0.8

func (m *PtnChaincodeEvent) XXX_Merge(src proto.Message)

func (*PtnChaincodeEvent) XXX_Size added in v1.0.8

func (m *PtnChaincodeEvent) XXX_Size() int

func (*PtnChaincodeEvent) XXX_Unmarshal added in v1.0.8

func (m *PtnChaincodeEvent) XXX_Unmarshal(b []byte) error

type PtnChaincodeHeaderExtension added in v1.0.8

type PtnChaincodeHeaderExtension struct {
	// The PayloadVisibility field controls to what extent the Proposal's payload
	// (recall that for the type CHAINCODE, it is ChaincodeProposalPayload
	// message) field will be visible in the final transaction and in the ledger.
	// Ideally, it would be configurable, supporting at least 3 main visibility
	// modes:
	// 1. all bytes of the payload are visible;
	// 2. only a hash of the payload is visible;
	// 3. nothing is visible.
	// Notice that the visibility function may be potentially part of the ESCC.
	// In that case it overrides PayloadVisibility field.  Finally notice that
	// this field impacts the content of ProposalResponsePayload.proposalHash.
	PayloadVisibility []byte `protobuf:"bytes,1,opt,name=payload_visibility,json=payloadVisibility,proto3" json:"payload_visibility,omitempty"`
	// The ID of the chaincode to target.
	ChaincodeId          *PtnChaincodeID `protobuf:"bytes,2,opt,name=chaincode_id,json=chaincodeId,proto3" json:"chaincode_id,omitempty"`
	XXX_NoUnkeyedLiteral struct{}        `json:"-"`
	XXX_unrecognized     []byte          `json:"-"`
	XXX_sizecache        int32           `json:"-"`
}

ChaincodeHeaderExtension is the Header's extentions message to be used when the Header's type is CHAINCODE. This extensions is used to specify which chaincode to invoke and what should appear on the ledger.

func (*PtnChaincodeHeaderExtension) Descriptor added in v1.0.8

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

func (*PtnChaincodeHeaderExtension) GetChaincodeId added in v1.0.8

func (m *PtnChaincodeHeaderExtension) GetChaincodeId() *PtnChaincodeID

func (*PtnChaincodeHeaderExtension) GetPayloadVisibility added in v1.0.8

func (m *PtnChaincodeHeaderExtension) GetPayloadVisibility() []byte

func (*PtnChaincodeHeaderExtension) ProtoMessage added in v1.0.8

func (*PtnChaincodeHeaderExtension) ProtoMessage()

func (*PtnChaincodeHeaderExtension) Reset added in v1.0.8

func (m *PtnChaincodeHeaderExtension) Reset()

func (*PtnChaincodeHeaderExtension) String added in v1.0.8

func (m *PtnChaincodeHeaderExtension) String() string

func (*PtnChaincodeHeaderExtension) XXX_DiscardUnknown added in v1.0.8

func (m *PtnChaincodeHeaderExtension) XXX_DiscardUnknown()

func (*PtnChaincodeHeaderExtension) XXX_Marshal added in v1.0.8

func (m *PtnChaincodeHeaderExtension) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PtnChaincodeHeaderExtension) XXX_Merge added in v1.0.8

func (m *PtnChaincodeHeaderExtension) XXX_Merge(src proto.Message)

func (*PtnChaincodeHeaderExtension) XXX_Size added in v1.0.8

func (m *PtnChaincodeHeaderExtension) XXX_Size() int

func (*PtnChaincodeHeaderExtension) XXX_Unmarshal added in v1.0.8

func (m *PtnChaincodeHeaderExtension) XXX_Unmarshal(b []byte) error

type PtnChaincodeID added in v1.0.8

type PtnChaincodeID struct {
	//deploy transaction will use the path
	Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
	//all other requests will use the name (really a hashcode) generated by
	//the deploy transaction
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	//user friendly version name for the chaincode
	Version              string   `protobuf:"bytes,3,opt,name=version,proto3" json:"version,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

ChaincodeID contains the path as specified by the deploy transaction that created it as well as the hashCode that is generated by the system for the path. From the user level (ie, CLI, REST API and so on) deploy transaction is expected to provide the path and other requests are expected to provide the hashCode. The other value will be ignored. Internally, the structure could contain both values. For instance, the hashCode will be set when first generated using the path

func (*PtnChaincodeID) Descriptor added in v1.0.8

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

func (*PtnChaincodeID) GetName added in v1.0.8

func (m *PtnChaincodeID) GetName() string

func (*PtnChaincodeID) GetPath added in v1.0.8

func (m *PtnChaincodeID) GetPath() string

func (*PtnChaincodeID) GetVersion added in v1.0.8

func (m *PtnChaincodeID) GetVersion() string

func (*PtnChaincodeID) ProtoMessage added in v1.0.8

func (*PtnChaincodeID) ProtoMessage()

func (*PtnChaincodeID) Reset added in v1.0.8

func (m *PtnChaincodeID) Reset()

func (*PtnChaincodeID) String added in v1.0.8

func (m *PtnChaincodeID) String() string

func (*PtnChaincodeID) XXX_DiscardUnknown added in v1.0.8

func (m *PtnChaincodeID) XXX_DiscardUnknown()

func (*PtnChaincodeID) XXX_Marshal added in v1.0.8

func (m *PtnChaincodeID) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PtnChaincodeID) XXX_Merge added in v1.0.8

func (m *PtnChaincodeID) XXX_Merge(src proto.Message)

func (*PtnChaincodeID) XXX_Size added in v1.0.8

func (m *PtnChaincodeID) XXX_Size() int

func (*PtnChaincodeID) XXX_Unmarshal added in v1.0.8

func (m *PtnChaincodeID) XXX_Unmarshal(b []byte) error

type PtnChaincodeInfo added in v1.0.8

type PtnChaincodeInfo struct {
	Name    string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
	// the path as specified by the install/instantiate transaction
	Path string `protobuf:"bytes,3,opt,name=path,proto3" json:"path,omitempty"`
	// the chaincode function upon instantiation and its arguments. This will be
	// blank if the query is returning information about installed chaincodes.
	Input string `protobuf:"bytes,4,opt,name=input,proto3" json:"input,omitempty"`
	// the name of the ESCC for this chaincode. This will be
	// blank if the query is returning information about installed chaincodes.
	Escc string `protobuf:"bytes,5,opt,name=escc,proto3" json:"escc,omitempty"`
	// the name of the VSCC for this chaincode. This will be
	// blank if the query is returning information about installed chaincodes.
	Vscc string `protobuf:"bytes,6,opt,name=vscc,proto3" json:"vscc,omitempty"`
	// the chaincode unique id.
	// computed as: H(
	//                H(name || version) ||
	//                H(CodePackage)
	//              )
	Id                   []byte   `protobuf:"bytes,7,opt,name=id,proto3" json:"id,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

ChaincodeInfo contains general information about an installed/instantiated chaincode

func (*PtnChaincodeInfo) Descriptor added in v1.0.8

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

func (*PtnChaincodeInfo) GetEscc added in v1.0.8

func (m *PtnChaincodeInfo) GetEscc() string

func (*PtnChaincodeInfo) GetId added in v1.0.8

func (m *PtnChaincodeInfo) GetId() []byte

func (*PtnChaincodeInfo) GetInput added in v1.0.8

func (m *PtnChaincodeInfo) GetInput() string

func (*PtnChaincodeInfo) GetName added in v1.0.8

func (m *PtnChaincodeInfo) GetName() string

func (*PtnChaincodeInfo) GetPath added in v1.0.8

func (m *PtnChaincodeInfo) GetPath() string

func (*PtnChaincodeInfo) GetVersion added in v1.0.8

func (m *PtnChaincodeInfo) GetVersion() string

func (*PtnChaincodeInfo) GetVscc added in v1.0.8

func (m *PtnChaincodeInfo) GetVscc() string

func (*PtnChaincodeInfo) ProtoMessage added in v1.0.8

func (*PtnChaincodeInfo) ProtoMessage()

func (*PtnChaincodeInfo) Reset added in v1.0.8

func (m *PtnChaincodeInfo) Reset()

func (*PtnChaincodeInfo) String added in v1.0.8

func (m *PtnChaincodeInfo) String() string

func (*PtnChaincodeInfo) XXX_DiscardUnknown added in v1.0.8

func (m *PtnChaincodeInfo) XXX_DiscardUnknown()

func (*PtnChaincodeInfo) XXX_Marshal added in v1.0.8

func (m *PtnChaincodeInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PtnChaincodeInfo) XXX_Merge added in v1.0.8

func (m *PtnChaincodeInfo) XXX_Merge(src proto.Message)

func (*PtnChaincodeInfo) XXX_Size added in v1.0.8

func (m *PtnChaincodeInfo) XXX_Size() int

func (*PtnChaincodeInfo) XXX_Unmarshal added in v1.0.8

func (m *PtnChaincodeInfo) XXX_Unmarshal(b []byte) error

type PtnChaincodeInput added in v1.0.8

type PtnChaincodeInput struct {
	Args                 [][]byte          `protobuf:"bytes,1,rep,name=args,proto3" json:"args,omitempty"`
	Decorations          map[string][]byte `` /* 163-byte string literal not displayed */
	XXX_NoUnkeyedLiteral struct{}          `json:"-"`
	XXX_unrecognized     []byte            `json:"-"`
	XXX_sizecache        int32             `json:"-"`
}

Carries the chaincode function and its arguments. UnmarshalJSON in transaction.go converts the string-based REST/JSON input to the []byte-based current ChaincodeInput structure.

func (*PtnChaincodeInput) Descriptor added in v1.0.8

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

func (*PtnChaincodeInput) GetArgs added in v1.0.8

func (m *PtnChaincodeInput) GetArgs() [][]byte

func (*PtnChaincodeInput) GetDecorations added in v1.0.8

func (m *PtnChaincodeInput) GetDecorations() map[string][]byte

func (*PtnChaincodeInput) ProtoMessage added in v1.0.8

func (*PtnChaincodeInput) ProtoMessage()

func (*PtnChaincodeInput) Reset added in v1.0.8

func (m *PtnChaincodeInput) Reset()

func (*PtnChaincodeInput) String added in v1.0.8

func (m *PtnChaincodeInput) String() string

func (*PtnChaincodeInput) XXX_DiscardUnknown added in v1.0.8

func (m *PtnChaincodeInput) XXX_DiscardUnknown()

func (*PtnChaincodeInput) XXX_Marshal added in v1.0.8

func (m *PtnChaincodeInput) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PtnChaincodeInput) XXX_Merge added in v1.0.8

func (m *PtnChaincodeInput) XXX_Merge(src proto.Message)

func (*PtnChaincodeInput) XXX_Size added in v1.0.8

func (m *PtnChaincodeInput) XXX_Size() int

func (*PtnChaincodeInput) XXX_Unmarshal added in v1.0.8

func (m *PtnChaincodeInput) XXX_Unmarshal(b []byte) error

type PtnChaincodeInvocationSpec added in v1.0.8

type PtnChaincodeInvocationSpec struct {
	ChaincodeSpec *PtnChaincodeSpec `protobuf:"bytes,1,opt,name=chaincode_spec,json=chaincodeSpec,proto3" json:"chaincode_spec,omitempty"`
	// This field can contain a user-specified ID generation algorithm
	// If supplied, this will be used to generate a ID
	// If not supplied (left empty), sha256base64 will be used
	// The algorithm consists of two parts:
	//  1, a hash function
	//  2, a decoding used to decode user (string) input to bytes
	// Currently, SHA256 with BASE64 is supported (e.g. idGenerationAlg='sha256base64')
	IdGenerationAlg      string   `protobuf:"bytes,2,opt,name=id_generation_alg,json=idGenerationAlg,proto3" json:"id_generation_alg,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Carries the chaincode function and its arguments.

func (*PtnChaincodeInvocationSpec) Descriptor added in v1.0.8

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

func (*PtnChaincodeInvocationSpec) GetChaincodeSpec added in v1.0.8

func (m *PtnChaincodeInvocationSpec) GetChaincodeSpec() *PtnChaincodeSpec

func (*PtnChaincodeInvocationSpec) GetIdGenerationAlg added in v1.0.8

func (m *PtnChaincodeInvocationSpec) GetIdGenerationAlg() string

func (*PtnChaincodeInvocationSpec) ProtoMessage added in v1.0.8

func (*PtnChaincodeInvocationSpec) ProtoMessage()

func (*PtnChaincodeInvocationSpec) Reset added in v1.0.8

func (m *PtnChaincodeInvocationSpec) Reset()

func (*PtnChaincodeInvocationSpec) String added in v1.0.8

func (m *PtnChaincodeInvocationSpec) String() string

func (*PtnChaincodeInvocationSpec) XXX_DiscardUnknown added in v1.0.8

func (m *PtnChaincodeInvocationSpec) XXX_DiscardUnknown()

func (*PtnChaincodeInvocationSpec) XXX_Marshal added in v1.0.8

func (m *PtnChaincodeInvocationSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PtnChaincodeInvocationSpec) XXX_Merge added in v1.0.8

func (m *PtnChaincodeInvocationSpec) XXX_Merge(src proto.Message)

func (*PtnChaincodeInvocationSpec) XXX_Size added in v1.0.8

func (m *PtnChaincodeInvocationSpec) XXX_Size() int

func (*PtnChaincodeInvocationSpec) XXX_Unmarshal added in v1.0.8

func (m *PtnChaincodeInvocationSpec) XXX_Unmarshal(b []byte) error

type PtnChaincodeMessage added in v1.0.8

type PtnChaincodeMessage struct {
	Type      PtnChaincodeMessage_Type `protobuf:"varint,1,opt,name=type,proto3,enum=protos.PtnChaincodeMessage_Type" json:"type,omitempty"`
	Timestamp *timestamp.Timestamp     `protobuf:"bytes,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	Payload   []byte                   `protobuf:"bytes,3,opt,name=payload,proto3" json:"payload,omitempty"`
	Txid      string                   `protobuf:"bytes,4,opt,name=txid,proto3" json:"txid,omitempty"`
	Proposal  *PtnSignedProposal       `protobuf:"bytes,5,opt,name=proposal,proto3" json:"proposal,omitempty"`
	//event emitted by chaincode. Used only with Init or Invoke.
	// This event is then stored (currently)
	//with Block.NonHashData.TransactionResult
	ChaincodeEvent *PtnChaincodeEvent `protobuf:"bytes,6,opt,name=chaincode_event,json=chaincodeEvent,proto3" json:"chaincode_event,omitempty"`
	//channel id
	ChannelId string `protobuf:"bytes,7,opt,name=channel_id,json=channelId,proto3" json:"channel_id,omitempty"`
	//contract id
	ContractId           []byte   `protobuf:"bytes,8,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*PtnChaincodeMessage) Descriptor added in v1.0.8

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

func (*PtnChaincodeMessage) GetChaincodeEvent added in v1.0.8

func (m *PtnChaincodeMessage) GetChaincodeEvent() *PtnChaincodeEvent

func (*PtnChaincodeMessage) GetChannelId added in v1.0.8

func (m *PtnChaincodeMessage) GetChannelId() string

func (*PtnChaincodeMessage) GetContractId added in v1.0.8

func (m *PtnChaincodeMessage) GetContractId() []byte

func (*PtnChaincodeMessage) GetPayload added in v1.0.8

func (m *PtnChaincodeMessage) GetPayload() []byte

func (*PtnChaincodeMessage) GetProposal added in v1.0.8

func (m *PtnChaincodeMessage) GetProposal() *PtnSignedProposal

func (*PtnChaincodeMessage) GetTimestamp added in v1.0.8

func (m *PtnChaincodeMessage) GetTimestamp() *timestamp.Timestamp

func (*PtnChaincodeMessage) GetTxid added in v1.0.8

func (m *PtnChaincodeMessage) GetTxid() string

func (*PtnChaincodeMessage) GetType added in v1.0.8

func (*PtnChaincodeMessage) ProtoMessage added in v1.0.8

func (*PtnChaincodeMessage) ProtoMessage()

func (*PtnChaincodeMessage) Reset added in v1.0.8

func (m *PtnChaincodeMessage) Reset()

func (*PtnChaincodeMessage) String added in v1.0.8

func (m *PtnChaincodeMessage) String() string

func (*PtnChaincodeMessage) XXX_DiscardUnknown added in v1.0.8

func (m *PtnChaincodeMessage) XXX_DiscardUnknown()

func (*PtnChaincodeMessage) XXX_Marshal added in v1.0.8

func (m *PtnChaincodeMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PtnChaincodeMessage) XXX_Merge added in v1.0.8

func (m *PtnChaincodeMessage) XXX_Merge(src proto.Message)

func (*PtnChaincodeMessage) XXX_Size added in v1.0.8

func (m *PtnChaincodeMessage) XXX_Size() int

func (*PtnChaincodeMessage) XXX_Unmarshal added in v1.0.8

func (m *PtnChaincodeMessage) XXX_Unmarshal(b []byte) error

type PtnChaincodeMessage_Type added in v1.0.8

type PtnChaincodeMessage_Type int32
const (
	PtnChaincodeMessage_UNDEFINED           PtnChaincodeMessage_Type = 0
	PtnChaincodeMessage_REGISTER            PtnChaincodeMessage_Type = 1
	PtnChaincodeMessage_REGISTERED          PtnChaincodeMessage_Type = 2
	PtnChaincodeMessage_INIT                PtnChaincodeMessage_Type = 3
	PtnChaincodeMessage_READY               PtnChaincodeMessage_Type = 4
	PtnChaincodeMessage_TRANSACTION         PtnChaincodeMessage_Type = 5
	PtnChaincodeMessage_COMPLETED           PtnChaincodeMessage_Type = 6
	PtnChaincodeMessage_ERROR               PtnChaincodeMessage_Type = 7
	PtnChaincodeMessage_PTN_GET_STATE       PtnChaincodeMessage_Type = 8
	PtnChaincodeMessage_PTN_PUT_STATE       PtnChaincodeMessage_Type = 9
	PtnChaincodeMessage_PTN_DEL_STATE       PtnChaincodeMessage_Type = 10
	PtnChaincodeMessage_INVOKE_CHAINCODE    PtnChaincodeMessage_Type = 11
	PtnChaincodeMessage_RESPONSE            PtnChaincodeMessage_Type = 13
	PtnChaincodeMessage_GET_STATE_BY_PREFIX PtnChaincodeMessage_Type = 14
	//        PTN_GET_QUERY_RESULT = 15;
	//        PTN_QUERY_STATE_NEXT = 16;
	//        PTN_QUERY_STATE_CLOSE = 17;
	PtnChaincodeMessage_KEEPALIVE PtnChaincodeMessage_Type = 18
	//        PTN_GET_HISTORY_FOR_KEY = 19;
	PtnChaincodeMessage_GET_SYSTEM_CONFIG_REQUEST PtnChaincodeMessage_Type = 23
	PtnChaincodeMessage_GET_CONTRACT_ALL_STATE    PtnChaincodeMessage_Type = 24
	PtnChaincodeMessage_GET_TOKEN_BALANCE         PtnChaincodeMessage_Type = 25
	PtnChaincodeMessage_PAY_OUT_TOKEN             PtnChaincodeMessage_Type = 26
	PtnChaincodeMessage_DEFINE_TOKEN              PtnChaincodeMessage_Type = 27
	PtnChaincodeMessage_SUPPLY_TOKEN              PtnChaincodeMessage_Type = 28
	PtnChaincodeMessage_GET_TIMESTAMP             PtnChaincodeMessage_Type = 29
	PtnChaincodeMessage_SEND_JURY                 PtnChaincodeMessage_Type = 30
	PtnChaincodeMessage_RECV_JURY                 PtnChaincodeMessage_Type = 31
	PtnChaincodeMessage_GET_CERT_STATE            PtnChaincodeMessage_Type = 32
	PtnChaincodeMessage_OUTCHAIN_CALL             PtnChaincodeMessage_Type = 33
	PtnChaincodeMessage_GET_STABLE_TRANSACTION    PtnChaincodeMessage_Type = 34
	PtnChaincodeMessage_GET_STABLE_UNIT           PtnChaincodeMessage_Type = 35
)

func (PtnChaincodeMessage_Type) EnumDescriptor added in v1.0.8

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

func (PtnChaincodeMessage_Type) String added in v1.0.8

func (x PtnChaincodeMessage_Type) String() string

type PtnChaincodeProposalPayload added in v1.0.8

type PtnChaincodeProposalPayload struct {
	// Input contains the arguments for this invocation. If this invocation
	// deploys a new chaincode, ESCC/VSCC are part of this field.
	// This is usually a marshaled ChaincodeInvocationSpec
	Input []byte `protobuf:"bytes,1,opt,name=input,proto3" json:"input,omitempty"`
	// TransientMap contains data (e.g. cryptographic material) that might be used
	// to implement some form of application-level confidentiality. The contents
	// of this field are supposed to always be omitted from the transaction and
	// excluded from the ledger.
	TransientMap         map[string][]byte `` /* 165-byte string literal not displayed */
	XXX_NoUnkeyedLiteral struct{}          `json:"-"`
	XXX_unrecognized     []byte            `json:"-"`
	XXX_sizecache        int32             `json:"-"`
}

ChaincodeProposalPayload is the Proposal's payload message to be used when the Header's type is CHAINCODE. It contains the arguments for this invocation.

func (*PtnChaincodeProposalPayload) Descriptor added in v1.0.8

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

func (*PtnChaincodeProposalPayload) GetInput added in v1.0.8

func (m *PtnChaincodeProposalPayload) GetInput() []byte

func (*PtnChaincodeProposalPayload) GetTransientMap added in v1.0.8

func (m *PtnChaincodeProposalPayload) GetTransientMap() map[string][]byte

func (*PtnChaincodeProposalPayload) ProtoMessage added in v1.0.8

func (*PtnChaincodeProposalPayload) ProtoMessage()

func (*PtnChaincodeProposalPayload) Reset added in v1.0.8

func (m *PtnChaincodeProposalPayload) Reset()

func (*PtnChaincodeProposalPayload) StaticallyOpaqueFieldProto added in v1.0.8

func (cpp *PtnChaincodeProposalPayload) StaticallyOpaqueFieldProto(name string) (proto.Message, error)

func (*PtnChaincodeProposalPayload) StaticallyOpaqueFields added in v1.0.8

func (cpp *PtnChaincodeProposalPayload) StaticallyOpaqueFields() []string

func (*PtnChaincodeProposalPayload) String added in v1.0.8

func (m *PtnChaincodeProposalPayload) String() string

func (*PtnChaincodeProposalPayload) XXX_DiscardUnknown added in v1.0.8

func (m *PtnChaincodeProposalPayload) XXX_DiscardUnknown()

func (*PtnChaincodeProposalPayload) XXX_Marshal added in v1.0.8

func (m *PtnChaincodeProposalPayload) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PtnChaincodeProposalPayload) XXX_Merge added in v1.0.8

func (m *PtnChaincodeProposalPayload) XXX_Merge(src proto.Message)

func (*PtnChaincodeProposalPayload) XXX_Size added in v1.0.8

func (m *PtnChaincodeProposalPayload) XXX_Size() int

func (*PtnChaincodeProposalPayload) XXX_Unmarshal added in v1.0.8

func (m *PtnChaincodeProposalPayload) XXX_Unmarshal(b []byte) error

type PtnChaincodeQueryResponse added in v1.0.8

type PtnChaincodeQueryResponse struct {
	Chaincodes           []*PtnChaincodeInfo `protobuf:"bytes,1,rep,name=chaincodes,proto3" json:"chaincodes,omitempty"`
	XXX_NoUnkeyedLiteral struct{}            `json:"-"`
	XXX_unrecognized     []byte              `json:"-"`
	XXX_sizecache        int32               `json:"-"`
}

ChaincodeQueryResponse returns information about each chaincode that pertains to a query in lscc.go, such as GetChaincodes (returns all chaincodes instantiated on a channel), and GetInstalledChaincodes (returns all chaincodes installed on a peer)

func (*PtnChaincodeQueryResponse) Descriptor added in v1.0.8

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

func (*PtnChaincodeQueryResponse) GetChaincodes added in v1.0.8

func (m *PtnChaincodeQueryResponse) GetChaincodes() []*PtnChaincodeInfo

func (*PtnChaincodeQueryResponse) ProtoMessage added in v1.0.8

func (*PtnChaincodeQueryResponse) ProtoMessage()

func (*PtnChaincodeQueryResponse) Reset added in v1.0.8

func (m *PtnChaincodeQueryResponse) Reset()

func (*PtnChaincodeQueryResponse) String added in v1.0.8

func (m *PtnChaincodeQueryResponse) String() string

func (*PtnChaincodeQueryResponse) XXX_DiscardUnknown added in v1.0.8

func (m *PtnChaincodeQueryResponse) XXX_DiscardUnknown()

func (*PtnChaincodeQueryResponse) XXX_Marshal added in v1.0.8

func (m *PtnChaincodeQueryResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PtnChaincodeQueryResponse) XXX_Merge added in v1.0.8

func (m *PtnChaincodeQueryResponse) XXX_Merge(src proto.Message)

func (*PtnChaincodeQueryResponse) XXX_Size added in v1.0.8

func (m *PtnChaincodeQueryResponse) XXX_Size() int

func (*PtnChaincodeQueryResponse) XXX_Unmarshal added in v1.0.8

func (m *PtnChaincodeQueryResponse) XXX_Unmarshal(b []byte) error

type PtnChaincodeSpec added in v1.0.8

type PtnChaincodeSpec struct {
	Type                 PtnChaincodeSpec_Type `protobuf:"varint,1,opt,name=type,proto3,enum=protos.PtnChaincodeSpec_Type" json:"type,omitempty"`
	ChaincodeId          *PtnChaincodeID       `protobuf:"bytes,2,opt,name=chaincode_id,json=chaincodeId,proto3" json:"chaincode_id,omitempty"`
	Input                *PtnChaincodeInput    `protobuf:"bytes,3,opt,name=input,proto3" json:"input,omitempty"`
	Timeout              int32                 `protobuf:"varint,4,opt,name=timeout,proto3" json:"timeout,omitempty"`
	Memory               int64                 `protobuf:"varint,5,opt,name=Memory,proto3" json:"Memory,omitempty"`
	CpuQuota             int64                 `protobuf:"varint,6,opt,name=CpuQuota,proto3" json:"CpuQuota,omitempty"`
	CpuShare             int64                 `protobuf:"varint,7,opt,name=CpuShare,proto3" json:"CpuShare,omitempty"`
	XXX_NoUnkeyedLiteral struct{}              `json:"-"`
	XXX_unrecognized     []byte                `json:"-"`
	XXX_sizecache        int32                 `json:"-"`
}

Carries the chaincode specification. This is the actual metadata required for defining a chaincode.

func (*PtnChaincodeSpec) Descriptor added in v1.0.8

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

func (*PtnChaincodeSpec) GetChaincodeId added in v1.0.8

func (m *PtnChaincodeSpec) GetChaincodeId() *PtnChaincodeID

func (*PtnChaincodeSpec) GetCpuQuota added in v1.0.8

func (m *PtnChaincodeSpec) GetCpuQuota() int64

func (*PtnChaincodeSpec) GetCpuShare added in v1.0.8

func (m *PtnChaincodeSpec) GetCpuShare() int64

func (*PtnChaincodeSpec) GetInput added in v1.0.8

func (m *PtnChaincodeSpec) GetInput() *PtnChaincodeInput

func (*PtnChaincodeSpec) GetMemory added in v1.0.8

func (m *PtnChaincodeSpec) GetMemory() int64

func (*PtnChaincodeSpec) GetTimeout added in v1.0.8

func (m *PtnChaincodeSpec) GetTimeout() int32

func (*PtnChaincodeSpec) GetType added in v1.0.8

func (*PtnChaincodeSpec) ProtoMessage added in v1.0.8

func (*PtnChaincodeSpec) ProtoMessage()

func (*PtnChaincodeSpec) Reset added in v1.0.8

func (m *PtnChaincodeSpec) Reset()

func (*PtnChaincodeSpec) String added in v1.0.8

func (m *PtnChaincodeSpec) String() string

func (*PtnChaincodeSpec) XXX_DiscardUnknown added in v1.0.8

func (m *PtnChaincodeSpec) XXX_DiscardUnknown()

func (*PtnChaincodeSpec) XXX_Marshal added in v1.0.8

func (m *PtnChaincodeSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PtnChaincodeSpec) XXX_Merge added in v1.0.8

func (m *PtnChaincodeSpec) XXX_Merge(src proto.Message)

func (*PtnChaincodeSpec) XXX_Size added in v1.0.8

func (m *PtnChaincodeSpec) XXX_Size() int

func (*PtnChaincodeSpec) XXX_Unmarshal added in v1.0.8

func (m *PtnChaincodeSpec) XXX_Unmarshal(b []byte) error

type PtnChaincodeSpec_Type added in v1.0.8

type PtnChaincodeSpec_Type int32
const (
	PtnChaincodeSpec_UNDEFINED PtnChaincodeSpec_Type = 0
	PtnChaincodeSpec_GOLANG    PtnChaincodeSpec_Type = 1
	PtnChaincodeSpec_NODE      PtnChaincodeSpec_Type = 2
	PtnChaincodeSpec_CAR       PtnChaincodeSpec_Type = 3
	PtnChaincodeSpec_JAVA      PtnChaincodeSpec_Type = 4
)

func (PtnChaincodeSpec_Type) EnumDescriptor added in v1.0.8

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

func (PtnChaincodeSpec_Type) String added in v1.0.8

func (x PtnChaincodeSpec_Type) String() string

type PtnChannelInfo added in v1.0.8

type PtnChannelInfo struct {
	ChannelId            string   `protobuf:"bytes,1,opt,name=channel_id,json=channelId,proto3" json:"channel_id,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

ChannelInfo contains general information about channels

func (*PtnChannelInfo) Descriptor added in v1.0.8

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

func (*PtnChannelInfo) GetChannelId added in v1.0.8

func (m *PtnChannelInfo) GetChannelId() string

func (*PtnChannelInfo) ProtoMessage added in v1.0.8

func (*PtnChannelInfo) ProtoMessage()

func (*PtnChannelInfo) Reset added in v1.0.8

func (m *PtnChannelInfo) Reset()

func (*PtnChannelInfo) String added in v1.0.8

func (m *PtnChannelInfo) String() string

func (*PtnChannelInfo) XXX_DiscardUnknown added in v1.0.8

func (m *PtnChannelInfo) XXX_DiscardUnknown()

func (*PtnChannelInfo) XXX_Marshal added in v1.0.8

func (m *PtnChannelInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PtnChannelInfo) XXX_Merge added in v1.0.8

func (m *PtnChannelInfo) XXX_Merge(src proto.Message)

func (*PtnChannelInfo) XXX_Size added in v1.0.8

func (m *PtnChannelInfo) XXX_Size() int

func (*PtnChannelInfo) XXX_Unmarshal added in v1.0.8

func (m *PtnChannelInfo) XXX_Unmarshal(b []byte) error

type PtnChannelQueryResponse added in v1.0.8

type PtnChannelQueryResponse struct {
	Channels             []*PtnChannelInfo `protobuf:"bytes,1,rep,name=channels,proto3" json:"channels,omitempty"`
	XXX_NoUnkeyedLiteral struct{}          `json:"-"`
	XXX_unrecognized     []byte            `json:"-"`
	XXX_sizecache        int32             `json:"-"`
}

ChannelQueryResponse returns information about each channel that pertains to a query in lscc.go, such as GetChannels (returns all channels for a given peer)

func (*PtnChannelQueryResponse) Descriptor added in v1.0.8

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

func (*PtnChannelQueryResponse) GetChannels added in v1.0.8

func (m *PtnChannelQueryResponse) GetChannels() []*PtnChannelInfo

func (*PtnChannelQueryResponse) ProtoMessage added in v1.0.8

func (*PtnChannelQueryResponse) ProtoMessage()

func (*PtnChannelQueryResponse) Reset added in v1.0.8

func (m *PtnChannelQueryResponse) Reset()

func (*PtnChannelQueryResponse) String added in v1.0.8

func (m *PtnChannelQueryResponse) String() string

func (*PtnChannelQueryResponse) XXX_DiscardUnknown added in v1.0.8

func (m *PtnChannelQueryResponse) XXX_DiscardUnknown()

func (*PtnChannelQueryResponse) XXX_Marshal added in v1.0.8

func (m *PtnChannelQueryResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PtnChannelQueryResponse) XXX_Merge added in v1.0.8

func (m *PtnChannelQueryResponse) XXX_Merge(src proto.Message)

func (*PtnChannelQueryResponse) XXX_Size added in v1.0.8

func (m *PtnChannelQueryResponse) XXX_Size() int

func (*PtnChannelQueryResponse) XXX_Unmarshal added in v1.0.8

func (m *PtnChannelQueryResponse) XXX_Unmarshal(b []byte) error

type PtnDefineToken added in v1.0.8

type PtnDefineToken struct {
	TokenType            int32    `protobuf:"varint,1,opt,name=tokenType,proto3" json:"tokenType,omitempty"`
	Define               []byte   `protobuf:"bytes,2,opt,name=define,proto3" json:"define,omitempty"`
	Creator              string   `protobuf:"bytes,3,opt,name=creator,proto3" json:"creator,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*PtnDefineToken) Descriptor added in v1.0.8

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

func (*PtnDefineToken) GetCreator added in v1.0.8

func (m *PtnDefineToken) GetCreator() string

func (*PtnDefineToken) GetDefine added in v1.0.8

func (m *PtnDefineToken) GetDefine() []byte

func (*PtnDefineToken) GetTokenType added in v1.0.8

func (m *PtnDefineToken) GetTokenType() int32

func (*PtnDefineToken) ProtoMessage added in v1.0.8

func (*PtnDefineToken) ProtoMessage()

func (*PtnDefineToken) Reset added in v1.0.8

func (m *PtnDefineToken) Reset()

func (*PtnDefineToken) String added in v1.0.8

func (m *PtnDefineToken) String() string

func (*PtnDefineToken) XXX_DiscardUnknown added in v1.0.8

func (m *PtnDefineToken) XXX_DiscardUnknown()

func (*PtnDefineToken) XXX_Marshal added in v1.0.8

func (m *PtnDefineToken) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PtnDefineToken) XXX_Merge added in v1.0.8

func (m *PtnDefineToken) XXX_Merge(src proto.Message)

func (*PtnDefineToken) XXX_Size added in v1.0.8

func (m *PtnDefineToken) XXX_Size() int

func (*PtnDefineToken) XXX_Unmarshal added in v1.0.8

func (m *PtnDefineToken) XXX_Unmarshal(b []byte) error

type PtnDelState added in v1.0.8

type PtnDelState struct {
	Key                  string   `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	Collection           string   `protobuf:"bytes,2,opt,name=collection,proto3" json:"collection,omitempty"`
	ContractId           []byte   `protobuf:"bytes,3,opt,name=contractId,proto3" json:"contractId,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*PtnDelState) Descriptor added in v1.0.8

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

func (*PtnDelState) GetCollection added in v1.0.8

func (m *PtnDelState) GetCollection() string

func (*PtnDelState) GetContractId added in v1.0.8

func (m *PtnDelState) GetContractId() []byte

func (*PtnDelState) GetKey added in v1.0.8

func (m *PtnDelState) GetKey() string

func (*PtnDelState) ProtoMessage added in v1.0.8

func (*PtnDelState) ProtoMessage()

func (*PtnDelState) Reset added in v1.0.8

func (m *PtnDelState) Reset()

func (*PtnDelState) String added in v1.0.8

func (m *PtnDelState) String() string

func (*PtnDelState) XXX_DiscardUnknown added in v1.0.8

func (m *PtnDelState) XXX_DiscardUnknown()

func (*PtnDelState) XXX_Marshal added in v1.0.8

func (m *PtnDelState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PtnDelState) XXX_Merge added in v1.0.8

func (m *PtnDelState) XXX_Merge(src proto.Message)

func (*PtnDelState) XXX_Size added in v1.0.8

func (m *PtnDelState) XXX_Size() int

func (*PtnDelState) XXX_Unmarshal added in v1.0.8

func (m *PtnDelState) XXX_Unmarshal(b []byte) error

type PtnEndorsement added in v1.0.8

type PtnEndorsement struct {
	// Identity of the endorser (e.g. its certificate)
	Endorser []byte `protobuf:"bytes,1,opt,name=endorser,proto3" json:"endorser,omitempty"`
	// Signature of the payload included in ProposalResponse concatenated with
	// the endorser's certificate; ie, sign(ProposalResponse.payload + endorser)
	Signature            []byte   `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

An endorsement is a signature of an endorser over a proposal response. By producing an endorsement message, an endorser implicitly "approves" that proposal response and the actions contained therein. When enough endorsements have been collected, a transaction can be generated out of a set of proposal responses. Note that this message only contains an identity and a signature but no signed payload. This is intentional because endorsements are supposed to be collected in a transaction, and they are all expected to endorse a single proposal response/action (many endorsements over a single proposal response)

func (*PtnEndorsement) Descriptor added in v1.0.8

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

func (*PtnEndorsement) GetEndorser added in v1.0.8

func (m *PtnEndorsement) GetEndorser() []byte

func (*PtnEndorsement) GetSignature added in v1.0.8

func (m *PtnEndorsement) GetSignature() []byte

func (*PtnEndorsement) ProtoMessage added in v1.0.8

func (*PtnEndorsement) ProtoMessage()

func (*PtnEndorsement) Reset added in v1.0.8

func (m *PtnEndorsement) Reset()

func (*PtnEndorsement) String added in v1.0.8

func (m *PtnEndorsement) String() string

func (*PtnEndorsement) XXX_DiscardUnknown added in v1.0.8

func (m *PtnEndorsement) XXX_DiscardUnknown()

func (*PtnEndorsement) XXX_Marshal added in v1.0.8

func (m *PtnEndorsement) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PtnEndorsement) XXX_Merge added in v1.0.8

func (m *PtnEndorsement) XXX_Merge(src proto.Message)

func (*PtnEndorsement) XXX_Size added in v1.0.8

func (m *PtnEndorsement) XXX_Size() int

func (*PtnEndorsement) XXX_Unmarshal added in v1.0.8

func (m *PtnEndorsement) XXX_Unmarshal(b []byte) error

type PtnGetCertState added in v1.0.8

type PtnGetCertState struct {
	Key                  string   `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	Collection           string   `protobuf:"bytes,2,opt,name=collection,proto3" json:"collection,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*PtnGetCertState) Descriptor added in v1.0.8

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

func (*PtnGetCertState) GetCollection added in v1.0.8

func (m *PtnGetCertState) GetCollection() string

func (*PtnGetCertState) GetKey added in v1.0.8

func (m *PtnGetCertState) GetKey() string

func (*PtnGetCertState) ProtoMessage added in v1.0.8

func (*PtnGetCertState) ProtoMessage()

func (*PtnGetCertState) Reset added in v1.0.8

func (m *PtnGetCertState) Reset()

func (*PtnGetCertState) String added in v1.0.8

func (m *PtnGetCertState) String() string

func (*PtnGetCertState) XXX_DiscardUnknown added in v1.0.8

func (m *PtnGetCertState) XXX_DiscardUnknown()

func (*PtnGetCertState) XXX_Marshal added in v1.0.8

func (m *PtnGetCertState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PtnGetCertState) XXX_Merge added in v1.0.8

func (m *PtnGetCertState) XXX_Merge(src proto.Message)

func (*PtnGetCertState) XXX_Size added in v1.0.8

func (m *PtnGetCertState) XXX_Size() int

func (*PtnGetCertState) XXX_Unmarshal added in v1.0.8

func (m *PtnGetCertState) XXX_Unmarshal(b []byte) error

type PtnGetHistoryForKey added in v1.0.8

type PtnGetHistoryForKey struct {
	Key                  string   `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*PtnGetHistoryForKey) Descriptor added in v1.0.8

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

func (*PtnGetHistoryForKey) GetKey added in v1.0.8

func (m *PtnGetHistoryForKey) GetKey() string

func (*PtnGetHistoryForKey) ProtoMessage added in v1.0.8

func (*PtnGetHistoryForKey) ProtoMessage()

func (*PtnGetHistoryForKey) Reset added in v1.0.8

func (m *PtnGetHistoryForKey) Reset()

func (*PtnGetHistoryForKey) String added in v1.0.8

func (m *PtnGetHistoryForKey) String() string

func (*PtnGetHistoryForKey) XXX_DiscardUnknown added in v1.0.8

func (m *PtnGetHistoryForKey) XXX_DiscardUnknown()

func (*PtnGetHistoryForKey) XXX_Marshal added in v1.0.8

func (m *PtnGetHistoryForKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PtnGetHistoryForKey) XXX_Merge added in v1.0.8

func (m *PtnGetHistoryForKey) XXX_Merge(src proto.Message)

func (*PtnGetHistoryForKey) XXX_Size added in v1.0.8

func (m *PtnGetHistoryForKey) XXX_Size() int

func (*PtnGetHistoryForKey) XXX_Unmarshal added in v1.0.8

func (m *PtnGetHistoryForKey) XXX_Unmarshal(b []byte) error

type PtnGetQueryResult added in v1.0.8

type PtnGetQueryResult struct {
	Query                string   `protobuf:"bytes,1,opt,name=query,proto3" json:"query,omitempty"`
	Collection           string   `protobuf:"bytes,2,opt,name=collection,proto3" json:"collection,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*PtnGetQueryResult) Descriptor added in v1.0.8

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

func (*PtnGetQueryResult) GetCollection added in v1.0.8

func (m *PtnGetQueryResult) GetCollection() string

func (*PtnGetQueryResult) GetQuery added in v1.0.8

func (m *PtnGetQueryResult) GetQuery() string

func (*PtnGetQueryResult) ProtoMessage added in v1.0.8

func (*PtnGetQueryResult) ProtoMessage()

func (*PtnGetQueryResult) Reset added in v1.0.8

func (m *PtnGetQueryResult) Reset()

func (*PtnGetQueryResult) String added in v1.0.8

func (m *PtnGetQueryResult) String() string

func (*PtnGetQueryResult) XXX_DiscardUnknown added in v1.0.8

func (m *PtnGetQueryResult) XXX_DiscardUnknown()

func (*PtnGetQueryResult) XXX_Marshal added in v1.0.8

func (m *PtnGetQueryResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PtnGetQueryResult) XXX_Merge added in v1.0.8

func (m *PtnGetQueryResult) XXX_Merge(src proto.Message)

func (*PtnGetQueryResult) XXX_Size added in v1.0.8

func (m *PtnGetQueryResult) XXX_Size() int

func (*PtnGetQueryResult) XXX_Unmarshal added in v1.0.8

func (m *PtnGetQueryResult) XXX_Unmarshal(b []byte) error

type PtnGetStableTransaction added in v1.0.8

type PtnGetStableTransaction struct {
	TxHash               string   `protobuf:"bytes,1,opt,name=txHash,proto3" json:"txHash,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*PtnGetStableTransaction) Descriptor added in v1.0.8

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

func (*PtnGetStableTransaction) GetTxHash added in v1.0.8

func (m *PtnGetStableTransaction) GetTxHash() string

func (*PtnGetStableTransaction) ProtoMessage added in v1.0.8

func (*PtnGetStableTransaction) ProtoMessage()

func (*PtnGetStableTransaction) Reset added in v1.0.8

func (m *PtnGetStableTransaction) Reset()

func (*PtnGetStableTransaction) String added in v1.0.8

func (m *PtnGetStableTransaction) String() string

func (*PtnGetStableTransaction) XXX_DiscardUnknown added in v1.0.8

func (m *PtnGetStableTransaction) XXX_DiscardUnknown()

func (*PtnGetStableTransaction) XXX_Marshal added in v1.0.8

func (m *PtnGetStableTransaction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PtnGetStableTransaction) XXX_Merge added in v1.0.8

func (m *PtnGetStableTransaction) XXX_Merge(src proto.Message)

func (*PtnGetStableTransaction) XXX_Size added in v1.0.8

func (m *PtnGetStableTransaction) XXX_Size() int

func (*PtnGetStableTransaction) XXX_Unmarshal added in v1.0.8

func (m *PtnGetStableTransaction) XXX_Unmarshal(b []byte) error

type PtnGetStableUnit added in v1.0.8

type PtnGetStableUnit struct {
	UnitHash             string   `protobuf:"bytes,1,opt,name=unitHash,proto3" json:"unitHash,omitempty"`
	UnitNumber           uint64   `protobuf:"varint,2,opt,name=unitNumber,proto3" json:"unitNumber,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*PtnGetStableUnit) Descriptor added in v1.0.8

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

func (*PtnGetStableUnit) GetUnitHash added in v1.0.8

func (m *PtnGetStableUnit) GetUnitHash() string

func (*PtnGetStableUnit) GetUnitNumber added in v1.0.8

func (m *PtnGetStableUnit) GetUnitNumber() uint64

func (*PtnGetStableUnit) ProtoMessage added in v1.0.8

func (*PtnGetStableUnit) ProtoMessage()

func (*PtnGetStableUnit) Reset added in v1.0.8

func (m *PtnGetStableUnit) Reset()

func (*PtnGetStableUnit) String added in v1.0.8

func (m *PtnGetStableUnit) String() string

func (*PtnGetStableUnit) XXX_DiscardUnknown added in v1.0.8

func (m *PtnGetStableUnit) XXX_DiscardUnknown()

func (*PtnGetStableUnit) XXX_Marshal added in v1.0.8

func (m *PtnGetStableUnit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PtnGetStableUnit) XXX_Merge added in v1.0.8

func (m *PtnGetStableUnit) XXX_Merge(src proto.Message)

func (*PtnGetStableUnit) XXX_Size added in v1.0.8

func (m *PtnGetStableUnit) XXX_Size() int

func (*PtnGetStableUnit) XXX_Unmarshal added in v1.0.8

func (m *PtnGetStableUnit) XXX_Unmarshal(b []byte) error

type PtnGetState added in v1.0.8

type PtnGetState struct {
	Key                  string   `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	Collection           string   `protobuf:"bytes,2,opt,name=collection,proto3" json:"collection,omitempty"`
	ContractId           []byte   `protobuf:"bytes,3,opt,name=contractId,proto3" json:"contractId,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*PtnGetState) Descriptor added in v1.0.8

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

func (*PtnGetState) GetCollection added in v1.0.8

func (m *PtnGetState) GetCollection() string

func (*PtnGetState) GetContractId added in v1.0.8

func (m *PtnGetState) GetContractId() []byte

func (*PtnGetState) GetKey added in v1.0.8

func (m *PtnGetState) GetKey() string

func (*PtnGetState) ProtoMessage added in v1.0.8

func (*PtnGetState) ProtoMessage()

func (*PtnGetState) Reset added in v1.0.8

func (m *PtnGetState) Reset()

func (*PtnGetState) String added in v1.0.8

func (m *PtnGetState) String() string

func (*PtnGetState) XXX_DiscardUnknown added in v1.0.8

func (m *PtnGetState) XXX_DiscardUnknown()

func (*PtnGetState) XXX_Marshal added in v1.0.8

func (m *PtnGetState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PtnGetState) XXX_Merge added in v1.0.8

func (m *PtnGetState) XXX_Merge(src proto.Message)

func (*PtnGetState) XXX_Size added in v1.0.8

func (m *PtnGetState) XXX_Size() int

func (*PtnGetState) XXX_Unmarshal added in v1.0.8

func (m *PtnGetState) XXX_Unmarshal(b []byte) error

type PtnGetStateByPrefix added in v1.0.8

type PtnGetStateByPrefix struct {
	Prefix               string   `protobuf:"bytes,1,opt,name=prefix,proto3" json:"prefix,omitempty"`
	ContractId           []byte   `protobuf:"bytes,2,opt,name=contractId,proto3" json:"contractId,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*PtnGetStateByPrefix) Descriptor added in v1.0.8

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

func (*PtnGetStateByPrefix) GetContractId added in v1.0.8

func (m *PtnGetStateByPrefix) GetContractId() []byte

func (*PtnGetStateByPrefix) GetPrefix added in v1.0.8

func (m *PtnGetStateByPrefix) GetPrefix() string

func (*PtnGetStateByPrefix) ProtoMessage added in v1.0.8

func (*PtnGetStateByPrefix) ProtoMessage()

func (*PtnGetStateByPrefix) Reset added in v1.0.8

func (m *PtnGetStateByPrefix) Reset()

func (*PtnGetStateByPrefix) String added in v1.0.8

func (m *PtnGetStateByPrefix) String() string

func (*PtnGetStateByPrefix) XXX_DiscardUnknown added in v1.0.8

func (m *PtnGetStateByPrefix) XXX_DiscardUnknown()

func (*PtnGetStateByPrefix) XXX_Marshal added in v1.0.8

func (m *PtnGetStateByPrefix) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PtnGetStateByPrefix) XXX_Merge added in v1.0.8

func (m *PtnGetStateByPrefix) XXX_Merge(src proto.Message)

func (*PtnGetStateByPrefix) XXX_Size added in v1.0.8

func (m *PtnGetStateByPrefix) XXX_Size() int

func (*PtnGetStateByPrefix) XXX_Unmarshal added in v1.0.8

func (m *PtnGetStateByPrefix) XXX_Unmarshal(b []byte) error

type PtnGetStateByPrefixKv added in v1.0.8

type PtnGetStateByPrefixKv struct {
	Key                  string   `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	ResultBytes          []byte   `protobuf:"bytes,2,opt,name=resultBytes,proto3" json:"resultBytes,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*PtnGetStateByPrefixKv) Descriptor added in v1.0.8

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

func (*PtnGetStateByPrefixKv) GetKey added in v1.0.8

func (m *PtnGetStateByPrefixKv) GetKey() string

func (*PtnGetStateByPrefixKv) GetResultBytes added in v1.0.8

func (m *PtnGetStateByPrefixKv) GetResultBytes() []byte

func (*PtnGetStateByPrefixKv) ProtoMessage added in v1.0.8

func (*PtnGetStateByPrefixKv) ProtoMessage()

func (*PtnGetStateByPrefixKv) Reset added in v1.0.8

func (m *PtnGetStateByPrefixKv) Reset()

func (*PtnGetStateByPrefixKv) String added in v1.0.8

func (m *PtnGetStateByPrefixKv) String() string

func (*PtnGetStateByPrefixKv) XXX_DiscardUnknown added in v1.0.8

func (m *PtnGetStateByPrefixKv) XXX_DiscardUnknown()

func (*PtnGetStateByPrefixKv) XXX_Marshal added in v1.0.8

func (m *PtnGetStateByPrefixKv) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PtnGetStateByPrefixKv) XXX_Merge added in v1.0.8

func (m *PtnGetStateByPrefixKv) XXX_Merge(src proto.Message)

func (*PtnGetStateByPrefixKv) XXX_Size added in v1.0.8

func (m *PtnGetStateByPrefixKv) XXX_Size() int

func (*PtnGetStateByPrefixKv) XXX_Unmarshal added in v1.0.8

func (m *PtnGetStateByPrefixKv) XXX_Unmarshal(b []byte) error

type PtnGetStateByRange added in v1.0.8

type PtnGetStateByRange struct {
	StartKey             string   `protobuf:"bytes,1,opt,name=startKey,proto3" json:"startKey,omitempty"`
	EndKey               string   `protobuf:"bytes,2,opt,name=endKey,proto3" json:"endKey,omitempty"`
	Collection           string   `protobuf:"bytes,3,opt,name=collection,proto3" json:"collection,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*PtnGetStateByRange) Descriptor added in v1.0.8

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

func (*PtnGetStateByRange) GetCollection added in v1.0.8

func (m *PtnGetStateByRange) GetCollection() string

func (*PtnGetStateByRange) GetEndKey added in v1.0.8

func (m *PtnGetStateByRange) GetEndKey() string

func (*PtnGetStateByRange) GetStartKey added in v1.0.8

func (m *PtnGetStateByRange) GetStartKey() string

func (*PtnGetStateByRange) ProtoMessage added in v1.0.8

func (*PtnGetStateByRange) ProtoMessage()

func (*PtnGetStateByRange) Reset added in v1.0.8

func (m *PtnGetStateByRange) Reset()

func (*PtnGetStateByRange) String added in v1.0.8

func (m *PtnGetStateByRange) String() string

func (*PtnGetStateByRange) XXX_DiscardUnknown added in v1.0.8

func (m *PtnGetStateByRange) XXX_DiscardUnknown()

func (*PtnGetStateByRange) XXX_Marshal added in v1.0.8

func (m *PtnGetStateByRange) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PtnGetStateByRange) XXX_Merge added in v1.0.8

func (m *PtnGetStateByRange) XXX_Merge(src proto.Message)

func (*PtnGetStateByRange) XXX_Size added in v1.0.8

func (m *PtnGetStateByRange) XXX_Size() int

func (*PtnGetStateByRange) XXX_Unmarshal added in v1.0.8

func (m *PtnGetStateByRange) XXX_Unmarshal(b []byte) error

type PtnGetTimestamp added in v1.0.8

type PtnGetTimestamp struct {
	RangeNumber          uint32   `protobuf:"varint,1,opt,name=rangeNumber,proto3" json:"rangeNumber,omitempty"`
	Collection           string   `protobuf:"bytes,2,opt,name=collection,proto3" json:"collection,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*PtnGetTimestamp) Descriptor added in v1.0.8

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

func (*PtnGetTimestamp) GetCollection added in v1.0.8

func (m *PtnGetTimestamp) GetCollection() string

func (*PtnGetTimestamp) GetRangeNumber added in v1.0.8

func (m *PtnGetTimestamp) GetRangeNumber() uint32

func (*PtnGetTimestamp) ProtoMessage added in v1.0.8

func (*PtnGetTimestamp) ProtoMessage()

func (*PtnGetTimestamp) Reset added in v1.0.8

func (m *PtnGetTimestamp) Reset()

func (*PtnGetTimestamp) String added in v1.0.8

func (m *PtnGetTimestamp) String() string

func (*PtnGetTimestamp) XXX_DiscardUnknown added in v1.0.8

func (m *PtnGetTimestamp) XXX_DiscardUnknown()

func (*PtnGetTimestamp) XXX_Marshal added in v1.0.8

func (m *PtnGetTimestamp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PtnGetTimestamp) XXX_Merge added in v1.0.8

func (m *PtnGetTimestamp) XXX_Merge(src proto.Message)

func (*PtnGetTimestamp) XXX_Size added in v1.0.8

func (m *PtnGetTimestamp) XXX_Size() int

func (*PtnGetTimestamp) XXX_Unmarshal added in v1.0.8

func (m *PtnGetTimestamp) XXX_Unmarshal(b []byte) error

type PtnGetTokenBalance added in v1.0.8

type PtnGetTokenBalance struct {
	Address              string   `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	Asset                string   `protobuf:"bytes,2,opt,name=asset,proto3" json:"asset,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*PtnGetTokenBalance) Descriptor added in v1.0.8

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

func (*PtnGetTokenBalance) GetAddress added in v1.0.8

func (m *PtnGetTokenBalance) GetAddress() string

func (*PtnGetTokenBalance) GetAsset added in v1.0.8

func (m *PtnGetTokenBalance) GetAsset() string

func (*PtnGetTokenBalance) ProtoMessage added in v1.0.8

func (*PtnGetTokenBalance) ProtoMessage()

func (*PtnGetTokenBalance) Reset added in v1.0.8

func (m *PtnGetTokenBalance) Reset()

func (*PtnGetTokenBalance) String added in v1.0.8

func (m *PtnGetTokenBalance) String() string

func (*PtnGetTokenBalance) XXX_DiscardUnknown added in v1.0.8

func (m *PtnGetTokenBalance) XXX_DiscardUnknown()

func (*PtnGetTokenBalance) XXX_Marshal added in v1.0.8

func (m *PtnGetTokenBalance) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PtnGetTokenBalance) XXX_Merge added in v1.0.8

func (m *PtnGetTokenBalance) XXX_Merge(src proto.Message)

func (*PtnGetTokenBalance) XXX_Size added in v1.0.8

func (m *PtnGetTokenBalance) XXX_Size() int

func (*PtnGetTokenBalance) XXX_Unmarshal added in v1.0.8

func (m *PtnGetTokenBalance) XXX_Unmarshal(b []byte) error

type PtnKeyForSystemConfig added in v1.0.8

type PtnKeyForSystemConfig struct {
	Key                  string   `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*PtnKeyForSystemConfig) Descriptor added in v1.0.8

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

func (*PtnKeyForSystemConfig) GetKey added in v1.0.8

func (m *PtnKeyForSystemConfig) GetKey() string

func (*PtnKeyForSystemConfig) ProtoMessage added in v1.0.8

func (*PtnKeyForSystemConfig) ProtoMessage()

func (*PtnKeyForSystemConfig) Reset added in v1.0.8

func (m *PtnKeyForSystemConfig) Reset()

func (*PtnKeyForSystemConfig) String added in v1.0.8

func (m *PtnKeyForSystemConfig) String() string

func (*PtnKeyForSystemConfig) XXX_DiscardUnknown added in v1.0.8

func (m *PtnKeyForSystemConfig) XXX_DiscardUnknown()

func (*PtnKeyForSystemConfig) XXX_Marshal added in v1.0.8

func (m *PtnKeyForSystemConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PtnKeyForSystemConfig) XXX_Merge added in v1.0.8

func (m *PtnKeyForSystemConfig) XXX_Merge(src proto.Message)

func (*PtnKeyForSystemConfig) XXX_Size added in v1.0.8

func (m *PtnKeyForSystemConfig) XXX_Size() int

func (*PtnKeyForSystemConfig) XXX_Unmarshal added in v1.0.8

func (m *PtnKeyForSystemConfig) XXX_Unmarshal(b []byte) error

type PtnOutChainCall added in v1.0.8

type PtnOutChainCall struct {
	OutChainName         string   `protobuf:"bytes,1,opt,name=OutChainName,proto3" json:"OutChainName,omitempty"`
	Method               string   `protobuf:"bytes,2,opt,name=method,proto3" json:"method,omitempty"`
	Params               []byte   `protobuf:"bytes,3,opt,name=params,proto3" json:"params,omitempty"`
	Collection           string   `protobuf:"bytes,4,opt,name=collection,proto3" json:"collection,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*PtnOutChainCall) Descriptor added in v1.0.8

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

func (*PtnOutChainCall) GetCollection added in v1.0.8

func (m *PtnOutChainCall) GetCollection() string

func (*PtnOutChainCall) GetMethod added in v1.0.8

func (m *PtnOutChainCall) GetMethod() string

func (*PtnOutChainCall) GetOutChainName added in v1.0.8

func (m *PtnOutChainCall) GetOutChainName() string

func (*PtnOutChainCall) GetParams added in v1.0.8

func (m *PtnOutChainCall) GetParams() []byte

func (*PtnOutChainCall) ProtoMessage added in v1.0.8

func (*PtnOutChainCall) ProtoMessage()

func (*PtnOutChainCall) Reset added in v1.0.8

func (m *PtnOutChainCall) Reset()

func (*PtnOutChainCall) String added in v1.0.8

func (m *PtnOutChainCall) String() string

func (*PtnOutChainCall) XXX_DiscardUnknown added in v1.0.8

func (m *PtnOutChainCall) XXX_DiscardUnknown()

func (*PtnOutChainCall) XXX_Marshal added in v1.0.8

func (m *PtnOutChainCall) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PtnOutChainCall) XXX_Merge added in v1.0.8

func (m *PtnOutChainCall) XXX_Merge(src proto.Message)

func (*PtnOutChainCall) XXX_Size added in v1.0.8

func (m *PtnOutChainCall) XXX_Size() int

func (*PtnOutChainCall) XXX_Unmarshal added in v1.0.8

func (m *PtnOutChainCall) XXX_Unmarshal(b []byte) error

type PtnPayOutToken added in v1.0.8

type PtnPayOutToken struct {
	Asset                []byte   `protobuf:"bytes,1,opt,name=asset,proto3" json:"asset,omitempty"`
	Amount               uint64   `protobuf:"varint,2,opt,name=amount,proto3" json:"amount,omitempty"`
	Locktime             uint32   `protobuf:"varint,3,opt,name=locktime,proto3" json:"locktime,omitempty"`
	Address              string   `protobuf:"bytes,4,opt,name=address,proto3" json:"address,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*PtnPayOutToken) Descriptor added in v1.0.8

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

func (*PtnPayOutToken) GetAddress added in v1.0.8

func (m *PtnPayOutToken) GetAddress() string

func (*PtnPayOutToken) GetAmount added in v1.0.8

func (m *PtnPayOutToken) GetAmount() uint64

func (*PtnPayOutToken) GetAsset added in v1.0.8

func (m *PtnPayOutToken) GetAsset() []byte

func (*PtnPayOutToken) GetLocktime added in v1.0.8

func (m *PtnPayOutToken) GetLocktime() uint32

func (*PtnPayOutToken) ProtoMessage added in v1.0.8

func (*PtnPayOutToken) ProtoMessage()

func (*PtnPayOutToken) Reset added in v1.0.8

func (m *PtnPayOutToken) Reset()

func (*PtnPayOutToken) String added in v1.0.8

func (m *PtnPayOutToken) String() string

func (*PtnPayOutToken) XXX_DiscardUnknown added in v1.0.8

func (m *PtnPayOutToken) XXX_DiscardUnknown()

func (*PtnPayOutToken) XXX_Marshal added in v1.0.8

func (m *PtnPayOutToken) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PtnPayOutToken) XXX_Merge added in v1.0.8

func (m *PtnPayOutToken) XXX_Merge(src proto.Message)

func (*PtnPayOutToken) XXX_Size added in v1.0.8

func (m *PtnPayOutToken) XXX_Size() int

func (*PtnPayOutToken) XXX_Unmarshal added in v1.0.8

func (m *PtnPayOutToken) XXX_Unmarshal(b []byte) error

type PtnProposal added in v1.0.8

type PtnProposal struct {
	// The header of the proposal. It is the bytes of the Header
	Header []byte `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
	// The payload of the proposal as defined by the type in the proposal
	// header.
	Payload []byte `protobuf:"bytes,2,opt,name=payload,proto3" json:"payload,omitempty"`
	// Optional extensions to the proposal. Its content depends on the Header's
	// type field.  For the type CHAINCODE, it might be the bytes of a
	// ChaincodeAction message.
	Extension            []byte   `protobuf:"bytes,3,opt,name=extension,proto3" json:"extension,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

A Proposal is sent to an endorser for endorsement. The proposal contains:

  1. A header which should be unmarshaled to a Header message. Note that Header is both the header of a Proposal and of a Transaction, in that i) both headers should be unmarshaled to this message; and ii) it is used to compute cryptographic hashes and signatures. The header has fields common to all proposals/transactions. In addition it has a type field for additional customization. An example of this is the ChaincodeHeaderExtension message used to extend the Header for type CHAINCODE.
  2. A payload whose type depends on the header's type field.
  3. An extension whose type depends on the header's type field.

Let us see an example. For type CHAINCODE (see the Header message), we have the following:

  1. The header is a Header message whose extensions field is a ChaincodeHeaderExtension message.
  2. The payload is a ChaincodeProposalPayload message.
  3. The extension is a ChaincodeAction that might be used to ask the endorsers to endorse a specific ChaincodeAction, thus emulating the submitting peer model.

func (*PtnProposal) Descriptor added in v1.0.8

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

func (*PtnProposal) GetExtension added in v1.0.8

func (m *PtnProposal) GetExtension() []byte

func (*PtnProposal) GetHeader added in v1.0.8

func (m *PtnProposal) GetHeader() []byte

func (*PtnProposal) GetPayload added in v1.0.8

func (m *PtnProposal) GetPayload() []byte

func (*PtnProposal) ProtoMessage added in v1.0.8

func (*PtnProposal) ProtoMessage()

func (*PtnProposal) Reset added in v1.0.8

func (m *PtnProposal) Reset()

func (*PtnProposal) String added in v1.0.8

func (m *PtnProposal) String() string

func (*PtnProposal) XXX_DiscardUnknown added in v1.0.8

func (m *PtnProposal) XXX_DiscardUnknown()

func (*PtnProposal) XXX_Marshal added in v1.0.8

func (m *PtnProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PtnProposal) XXX_Merge added in v1.0.8

func (m *PtnProposal) XXX_Merge(src proto.Message)

func (*PtnProposal) XXX_Size added in v1.0.8

func (m *PtnProposal) XXX_Size() int

func (*PtnProposal) XXX_Unmarshal added in v1.0.8

func (m *PtnProposal) XXX_Unmarshal(b []byte) error

type PtnProposalResponse added in v1.0.8

type PtnProposalResponse struct {
	// Version indicates message protocol version
	Version int32 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"`
	// Timestamp is the time that the message
	// was created as  defined by the sender
	Timestamp *timestamp.Timestamp `protobuf:"bytes,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	// A response message indicating whether the
	// endorsement of the action was successful
	Response *PtnResponse `protobuf:"bytes,4,opt,name=response,proto3" json:"response,omitempty"`
	// The payload of response. It is the bytes of ProposalResponsePayload
	Payload []byte `protobuf:"bytes,5,opt,name=payload,proto3" json:"payload,omitempty"`
	// The endorsement of the proposal, basically
	// the endorser's signature over the payload
	Endorsement          *PtnEndorsement `protobuf:"bytes,6,opt,name=endorsement,proto3" json:"endorsement,omitempty"`
	XXX_NoUnkeyedLiteral struct{}        `json:"-"`
	XXX_unrecognized     []byte          `json:"-"`
	XXX_sizecache        int32           `json:"-"`
}

A ProposalResponse is returned from an endorser to the proposal submitter. The idea is that this message contains the endorser's response to the request of a client to perform an action over a chaincode (or more generically on the ledger); the response might be success/error (conveyed in the Response field) together with a description of the action and a signature over it by that endorser. If a sufficient number of distinct endorsers agree on the same action and produce signature to that effect, a transaction can be generated and sent for ordering.

func (*PtnProposalResponse) Descriptor added in v1.0.8

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

func (*PtnProposalResponse) GetEndorsement added in v1.0.8

func (m *PtnProposalResponse) GetEndorsement() *PtnEndorsement

func (*PtnProposalResponse) GetPayload added in v1.0.8

func (m *PtnProposalResponse) GetPayload() []byte

func (*PtnProposalResponse) GetResponse added in v1.0.8

func (m *PtnProposalResponse) GetResponse() *PtnResponse

func (*PtnProposalResponse) GetTimestamp added in v1.0.8

func (m *PtnProposalResponse) GetTimestamp() *timestamp.Timestamp

func (*PtnProposalResponse) GetVersion added in v1.0.8

func (m *PtnProposalResponse) GetVersion() int32

func (*PtnProposalResponse) ProtoMessage added in v1.0.8

func (*PtnProposalResponse) ProtoMessage()

func (*PtnProposalResponse) Reset added in v1.0.8

func (m *PtnProposalResponse) Reset()

func (*PtnProposalResponse) String added in v1.0.8

func (m *PtnProposalResponse) String() string

func (*PtnProposalResponse) XXX_DiscardUnknown added in v1.0.8

func (m *PtnProposalResponse) XXX_DiscardUnknown()

func (*PtnProposalResponse) XXX_Marshal added in v1.0.8

func (m *PtnProposalResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PtnProposalResponse) XXX_Merge added in v1.0.8

func (m *PtnProposalResponse) XXX_Merge(src proto.Message)

func (*PtnProposalResponse) XXX_Size added in v1.0.8

func (m *PtnProposalResponse) XXX_Size() int

func (*PtnProposalResponse) XXX_Unmarshal added in v1.0.8

func (m *PtnProposalResponse) XXX_Unmarshal(b []byte) error

type PtnProposalResponsePayload added in v1.0.8

type PtnProposalResponsePayload struct {
	// Hash of the proposal that triggered this response. The hash is used to
	// link a response with its proposal, both for bookeeping purposes on an
	// asynchronous system and for security reasons (accountability,
	// non-repudiation). The hash usually covers the entire Proposal message
	// (byte-by-byte). However this implies that the hash can only be verified
	// if the entire proposal message is available when ProposalResponsePayload is
	// included in a transaction or stored in the ledger. For confidentiality
	// reasons, with chaincodes it might be undesirable to store the proposal
	// payload in the ledger.  If the type is CHAINCODE, this is handled by
	// separating the proposal's header and
	// the payload: the header is always hashed in its entirety whereas the
	// payload can either be hashed fully, or only its hash may be hashed, or
	// nothing from the payload can be hashed. The PayloadVisibility field in the
	// Header's extension controls to which extent the proposal payload is
	// "visible" in the sense that was just explained.
	ProposalHash []byte `protobuf:"bytes,1,opt,name=proposal_hash,json=proposalHash,proto3" json:"proposal_hash,omitempty"`
	// Extension should be unmarshaled to a type-specific message. The type of
	// the extension in any proposal response depends on the type of the proposal
	// that the client selected when the proposal was initially sent out.  In
	// particular, this information is stored in the type field of a Header.  For
	// chaincode, it's a ChaincodeAction message
	Extension            []byte   `protobuf:"bytes,2,opt,name=extension,proto3" json:"extension,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

ProposalResponsePayload is the payload of a proposal response. This message is the "bridge" between the client's request and the endorser's action in response to that request. Concretely, for chaincodes, it contains a hashed representation of the proposal (proposalHash) and a representation of the chaincode state changes and events inside the extension field.

func (*PtnProposalResponsePayload) Descriptor added in v1.0.8

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

func (*PtnProposalResponsePayload) GetExtension added in v1.0.8

func (m *PtnProposalResponsePayload) GetExtension() []byte

func (*PtnProposalResponsePayload) GetProposalHash added in v1.0.8

func (m *PtnProposalResponsePayload) GetProposalHash() []byte

func (*PtnProposalResponsePayload) ProtoMessage added in v1.0.8

func (*PtnProposalResponsePayload) ProtoMessage()

func (*PtnProposalResponsePayload) Reset added in v1.0.8

func (m *PtnProposalResponsePayload) Reset()

func (*PtnProposalResponsePayload) StaticallyOpaqueFieldProto added in v1.0.8

func (ppr *PtnProposalResponsePayload) StaticallyOpaqueFieldProto(name string) (proto.Message, error)

func (*PtnProposalResponsePayload) StaticallyOpaqueFields added in v1.0.8

func (ppr *PtnProposalResponsePayload) StaticallyOpaqueFields() []string

func (*PtnProposalResponsePayload) String added in v1.0.8

func (m *PtnProposalResponsePayload) String() string

func (*PtnProposalResponsePayload) XXX_DiscardUnknown added in v1.0.8

func (m *PtnProposalResponsePayload) XXX_DiscardUnknown()

func (*PtnProposalResponsePayload) XXX_Marshal added in v1.0.8

func (m *PtnProposalResponsePayload) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PtnProposalResponsePayload) XXX_Merge added in v1.0.8

func (m *PtnProposalResponsePayload) XXX_Merge(src proto.Message)

func (*PtnProposalResponsePayload) XXX_Size added in v1.0.8

func (m *PtnProposalResponsePayload) XXX_Size() int

func (*PtnProposalResponsePayload) XXX_Unmarshal added in v1.0.8

func (m *PtnProposalResponsePayload) XXX_Unmarshal(b []byte) error

type PtnPutState added in v1.0.8

type PtnPutState struct {
	Key                  string   `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	Value                []byte   `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	Collection           string   `protobuf:"bytes,3,opt,name=collection,proto3" json:"collection,omitempty"`
	ContractId           []byte   `protobuf:"bytes,4,opt,name=contractId,proto3" json:"contractId,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*PtnPutState) Descriptor added in v1.0.8

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

func (*PtnPutState) GetCollection added in v1.0.8

func (m *PtnPutState) GetCollection() string

func (*PtnPutState) GetContractId added in v1.0.8

func (m *PtnPutState) GetContractId() []byte

func (*PtnPutState) GetKey added in v1.0.8

func (m *PtnPutState) GetKey() string

func (*PtnPutState) GetValue added in v1.0.8

func (m *PtnPutState) GetValue() []byte

func (*PtnPutState) ProtoMessage added in v1.0.8

func (*PtnPutState) ProtoMessage()

func (*PtnPutState) Reset added in v1.0.8

func (m *PtnPutState) Reset()

func (*PtnPutState) String added in v1.0.8

func (m *PtnPutState) String() string

func (*PtnPutState) XXX_DiscardUnknown added in v1.0.8

func (m *PtnPutState) XXX_DiscardUnknown()

func (*PtnPutState) XXX_Marshal added in v1.0.8

func (m *PtnPutState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PtnPutState) XXX_Merge added in v1.0.8

func (m *PtnPutState) XXX_Merge(src proto.Message)

func (*PtnPutState) XXX_Size added in v1.0.8

func (m *PtnPutState) XXX_Size() int

func (*PtnPutState) XXX_Unmarshal added in v1.0.8

func (m *PtnPutState) XXX_Unmarshal(b []byte) error

type PtnQueryResponse added in v1.0.8

type PtnQueryResponse struct {
	Results              []*PtnQueryResultBytes `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"`
	HasMore              bool                   `protobuf:"varint,2,opt,name=has_more,json=hasMore,proto3" json:"has_more,omitempty"`
	Id                   string                 `protobuf:"bytes,3,opt,name=id,proto3" json:"id,omitempty"`
	XXX_NoUnkeyedLiteral struct{}               `json:"-"`
	XXX_unrecognized     []byte                 `json:"-"`
	XXX_sizecache        int32                  `json:"-"`
}

func (*PtnQueryResponse) Descriptor added in v1.0.8

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

func (*PtnQueryResponse) GetHasMore added in v1.0.8

func (m *PtnQueryResponse) GetHasMore() bool

func (*PtnQueryResponse) GetId added in v1.0.8

func (m *PtnQueryResponse) GetId() string

func (*PtnQueryResponse) GetResults added in v1.0.8

func (m *PtnQueryResponse) GetResults() []*PtnQueryResultBytes

func (*PtnQueryResponse) ProtoMessage added in v1.0.8

func (*PtnQueryResponse) ProtoMessage()

func (*PtnQueryResponse) Reset added in v1.0.8

func (m *PtnQueryResponse) Reset()

func (*PtnQueryResponse) String added in v1.0.8

func (m *PtnQueryResponse) String() string

func (*PtnQueryResponse) XXX_DiscardUnknown added in v1.0.8

func (m *PtnQueryResponse) XXX_DiscardUnknown()

func (*PtnQueryResponse) XXX_Marshal added in v1.0.8

func (m *PtnQueryResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PtnQueryResponse) XXX_Merge added in v1.0.8

func (m *PtnQueryResponse) XXX_Merge(src proto.Message)

func (*PtnQueryResponse) XXX_Size added in v1.0.8

func (m *PtnQueryResponse) XXX_Size() int

func (*PtnQueryResponse) XXX_Unmarshal added in v1.0.8

func (m *PtnQueryResponse) XXX_Unmarshal(b []byte) error

type PtnQueryResultBytes added in v1.0.8

type PtnQueryResultBytes struct {
	ResultBytes          []byte   `protobuf:"bytes,1,opt,name=resultBytes,proto3" json:"resultBytes,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*PtnQueryResultBytes) Descriptor added in v1.0.8

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

func (*PtnQueryResultBytes) GetResultBytes added in v1.0.8

func (m *PtnQueryResultBytes) GetResultBytes() []byte

func (*PtnQueryResultBytes) ProtoMessage added in v1.0.8

func (*PtnQueryResultBytes) ProtoMessage()

func (*PtnQueryResultBytes) Reset added in v1.0.8

func (m *PtnQueryResultBytes) Reset()

func (*PtnQueryResultBytes) String added in v1.0.8

func (m *PtnQueryResultBytes) String() string

func (*PtnQueryResultBytes) XXX_DiscardUnknown added in v1.0.8

func (m *PtnQueryResultBytes) XXX_DiscardUnknown()

func (*PtnQueryResultBytes) XXX_Marshal added in v1.0.8

func (m *PtnQueryResultBytes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PtnQueryResultBytes) XXX_Merge added in v1.0.8

func (m *PtnQueryResultBytes) XXX_Merge(src proto.Message)

func (*PtnQueryResultBytes) XXX_Size added in v1.0.8

func (m *PtnQueryResultBytes) XXX_Size() int

func (*PtnQueryResultBytes) XXX_Unmarshal added in v1.0.8

func (m *PtnQueryResultBytes) XXX_Unmarshal(b []byte) error

type PtnQueryStateClose added in v1.0.8

type PtnQueryStateClose struct {
	Id                   string   `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*PtnQueryStateClose) Descriptor added in v1.0.8

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

func (*PtnQueryStateClose) GetId added in v1.0.8

func (m *PtnQueryStateClose) GetId() string

func (*PtnQueryStateClose) ProtoMessage added in v1.0.8

func (*PtnQueryStateClose) ProtoMessage()

func (*PtnQueryStateClose) Reset added in v1.0.8

func (m *PtnQueryStateClose) Reset()

func (*PtnQueryStateClose) String added in v1.0.8

func (m *PtnQueryStateClose) String() string

func (*PtnQueryStateClose) XXX_DiscardUnknown added in v1.0.8

func (m *PtnQueryStateClose) XXX_DiscardUnknown()

func (*PtnQueryStateClose) XXX_Marshal added in v1.0.8

func (m *PtnQueryStateClose) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PtnQueryStateClose) XXX_Merge added in v1.0.8

func (m *PtnQueryStateClose) XXX_Merge(src proto.Message)

func (*PtnQueryStateClose) XXX_Size added in v1.0.8

func (m *PtnQueryStateClose) XXX_Size() int

func (*PtnQueryStateClose) XXX_Unmarshal added in v1.0.8

func (m *PtnQueryStateClose) XXX_Unmarshal(b []byte) error

type PtnQueryStateNext added in v1.0.8

type PtnQueryStateNext struct {
	Id                   string   `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*PtnQueryStateNext) Descriptor added in v1.0.8

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

func (*PtnQueryStateNext) GetId added in v1.0.8

func (m *PtnQueryStateNext) GetId() string

func (*PtnQueryStateNext) ProtoMessage added in v1.0.8

func (*PtnQueryStateNext) ProtoMessage()

func (*PtnQueryStateNext) Reset added in v1.0.8

func (m *PtnQueryStateNext) Reset()

func (*PtnQueryStateNext) String added in v1.0.8

func (m *PtnQueryStateNext) String() string

func (*PtnQueryStateNext) XXX_DiscardUnknown added in v1.0.8

func (m *PtnQueryStateNext) XXX_DiscardUnknown()

func (*PtnQueryStateNext) XXX_Marshal added in v1.0.8

func (m *PtnQueryStateNext) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PtnQueryStateNext) XXX_Merge added in v1.0.8

func (m *PtnQueryStateNext) XXX_Merge(src proto.Message)

func (*PtnQueryStateNext) XXX_Size added in v1.0.8

func (m *PtnQueryStateNext) XXX_Size() int

func (*PtnQueryStateNext) XXX_Unmarshal added in v1.0.8

func (m *PtnQueryStateNext) XXX_Unmarshal(b []byte) error

type PtnRecvJury added in v1.0.8

type PtnRecvJury struct {
	MsgType              uint32   `protobuf:"varint,1,opt,name=msgType,proto3" json:"msgType,omitempty"`
	ConsultContent       []byte   `protobuf:"bytes,2,opt,name=consultContent,proto3" json:"consultContent,omitempty"`
	Timeout              uint32   `protobuf:"varint,3,opt,name=timeout,proto3" json:"timeout,omitempty"`
	Collection           string   `protobuf:"bytes,4,opt,name=collection,proto3" json:"collection,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*PtnRecvJury) Descriptor added in v1.0.8

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

func (*PtnRecvJury) GetCollection added in v1.0.8

func (m *PtnRecvJury) GetCollection() string

func (*PtnRecvJury) GetConsultContent added in v1.0.8

func (m *PtnRecvJury) GetConsultContent() []byte

func (*PtnRecvJury) GetMsgType added in v1.0.8

func (m *PtnRecvJury) GetMsgType() uint32

func (*PtnRecvJury) GetTimeout added in v1.0.8

func (m *PtnRecvJury) GetTimeout() uint32

func (*PtnRecvJury) ProtoMessage added in v1.0.8

func (*PtnRecvJury) ProtoMessage()

func (*PtnRecvJury) Reset added in v1.0.8

func (m *PtnRecvJury) Reset()

func (*PtnRecvJury) String added in v1.0.8

func (m *PtnRecvJury) String() string

func (*PtnRecvJury) XXX_DiscardUnknown added in v1.0.8

func (m *PtnRecvJury) XXX_DiscardUnknown()

func (*PtnRecvJury) XXX_Marshal added in v1.0.8

func (m *PtnRecvJury) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PtnRecvJury) XXX_Merge added in v1.0.8

func (m *PtnRecvJury) XXX_Merge(src proto.Message)

func (*PtnRecvJury) XXX_Size added in v1.0.8

func (m *PtnRecvJury) XXX_Size() int

func (*PtnRecvJury) XXX_Unmarshal added in v1.0.8

func (m *PtnRecvJury) XXX_Unmarshal(b []byte) error

type PtnResponse added in v1.0.8

type PtnResponse struct {
	// A status code that should follow the HTTP status codes.
	Status int32 `protobuf:"varint,1,opt,name=status,proto3" json:"status,omitempty"`
	// A message associated with the response code.
	Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	// A payload that can be used to include metadata with this response.
	Payload              []byte   `protobuf:"bytes,3,opt,name=payload,proto3" json:"payload,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

A response with a representation similar to an HTTP response that can be used within another message.

func (*PtnResponse) Descriptor added in v1.0.8

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

func (*PtnResponse) GetMessage added in v1.0.8

func (m *PtnResponse) GetMessage() string

func (*PtnResponse) GetPayload added in v1.0.8

func (m *PtnResponse) GetPayload() []byte

func (*PtnResponse) GetStatus added in v1.0.8

func (m *PtnResponse) GetStatus() int32

func (*PtnResponse) ProtoMessage added in v1.0.8

func (*PtnResponse) ProtoMessage()

func (*PtnResponse) Reset added in v1.0.8

func (m *PtnResponse) Reset()

func (*PtnResponse) String added in v1.0.8

func (m *PtnResponse) String() string

func (*PtnResponse) XXX_DiscardUnknown added in v1.0.8

func (m *PtnResponse) XXX_DiscardUnknown()

func (*PtnResponse) XXX_Marshal added in v1.0.8

func (m *PtnResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PtnResponse) XXX_Merge added in v1.0.8

func (m *PtnResponse) XXX_Merge(src proto.Message)

func (*PtnResponse) XXX_Size added in v1.0.8

func (m *PtnResponse) XXX_Size() int

func (*PtnResponse) XXX_Unmarshal added in v1.0.8

func (m *PtnResponse) XXX_Unmarshal(b []byte) error

type PtnSendJury added in v1.0.8

type PtnSendJury struct {
	MsgType              uint32   `protobuf:"varint,1,opt,name=msgType,proto3" json:"msgType,omitempty"`
	ConsultContent       []byte   `protobuf:"bytes,2,opt,name=consultContent,proto3" json:"consultContent,omitempty"`
	MyAnswer             []byte   `protobuf:"bytes,3,opt,name=myAnswer,proto3" json:"myAnswer,omitempty"`
	Collection           string   `protobuf:"bytes,4,opt,name=collection,proto3" json:"collection,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*PtnSendJury) Descriptor added in v1.0.8

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

func (*PtnSendJury) GetCollection added in v1.0.8

func (m *PtnSendJury) GetCollection() string

func (*PtnSendJury) GetConsultContent added in v1.0.8

func (m *PtnSendJury) GetConsultContent() []byte

func (*PtnSendJury) GetMsgType added in v1.0.8

func (m *PtnSendJury) GetMsgType() uint32

func (*PtnSendJury) GetMyAnswer added in v1.0.8

func (m *PtnSendJury) GetMyAnswer() []byte

func (*PtnSendJury) ProtoMessage added in v1.0.8

func (*PtnSendJury) ProtoMessage()

func (*PtnSendJury) Reset added in v1.0.8

func (m *PtnSendJury) Reset()

func (*PtnSendJury) String added in v1.0.8

func (m *PtnSendJury) String() string

func (*PtnSendJury) XXX_DiscardUnknown added in v1.0.8

func (m *PtnSendJury) XXX_DiscardUnknown()

func (*PtnSendJury) XXX_Marshal added in v1.0.8

func (m *PtnSendJury) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PtnSendJury) XXX_Merge added in v1.0.8

func (m *PtnSendJury) XXX_Merge(src proto.Message)

func (*PtnSendJury) XXX_Size added in v1.0.8

func (m *PtnSendJury) XXX_Size() int

func (*PtnSendJury) XXX_Unmarshal added in v1.0.8

func (m *PtnSendJury) XXX_Unmarshal(b []byte) error

type PtnSignedProposal added in v1.0.8

type PtnSignedProposal struct {
	// The bytes of Proposal
	ProposalBytes []byte `protobuf:"bytes,1,opt,name=proposal_bytes,json=proposalBytes,proto3" json:"proposal_bytes,omitempty"`
	// Signaure over proposalBytes; this signature is to be verified against
	// the creator identity contained in the header of the Proposal message
	// marshaled as proposalBytes
	Signature            []byte   `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

This structure is necessary to sign the proposal which contains the header and the payload. Without this structure, we would have to concatenate the header and the payload to verify the signature, which could be expensive with large payload

When an endorser receives a SignedProposal message, it should verify the signature over the proposal bytes. This verification requires the following steps:

  1. Verification of the validity of the certificate that was used to produce the signature. The certificate will be available once proposalBytes has been unmarshalled to a Proposal message, and Proposal.header has been unmarshalled to a Header message. While this unmarshalling-before-verifying might not be ideal, it is unavoidable because i) the signature needs to also protect the signing certificate; ii) it is desirable that Header is created once by the client and never changed (for the sake of accountability and non-repudiation). Note also that it is actually impossible to conclusively verify the validity of the certificate included in a Proposal, because the proposal needs to first be endorsed and ordered with respect to certificate expiration transactions. Still, it is useful to pre-filter expired certificates at this stage.
  2. Verification that the certificate is trusted (signed by a trusted CA) and that it is allowed to transact with us (with respect to some ACLs);
  3. Verification that the signature on proposalBytes is valid;
  4. Detect replay attacks;

func (*PtnSignedProposal) Descriptor added in v1.0.8

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

func (*PtnSignedProposal) GetProposalBytes added in v1.0.8

func (m *PtnSignedProposal) GetProposalBytes() []byte

func (*PtnSignedProposal) GetSignature added in v1.0.8

func (m *PtnSignedProposal) GetSignature() []byte

func (*PtnSignedProposal) ProtoMessage added in v1.0.8

func (*PtnSignedProposal) ProtoMessage()

func (*PtnSignedProposal) Reset added in v1.0.8

func (m *PtnSignedProposal) Reset()

func (*PtnSignedProposal) String added in v1.0.8

func (m *PtnSignedProposal) String() string

func (*PtnSignedProposal) XXX_DiscardUnknown added in v1.0.8

func (m *PtnSignedProposal) XXX_DiscardUnknown()

func (*PtnSignedProposal) XXX_Marshal added in v1.0.8

func (m *PtnSignedProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PtnSignedProposal) XXX_Merge added in v1.0.8

func (m *PtnSignedProposal) XXX_Merge(src proto.Message)

func (*PtnSignedProposal) XXX_Size added in v1.0.8

func (m *PtnSignedProposal) XXX_Size() int

func (*PtnSignedProposal) XXX_Unmarshal added in v1.0.8

func (m *PtnSignedProposal) XXX_Unmarshal(b []byte) error

type PtnSupplyToken added in v1.0.8

type PtnSupplyToken struct {
	AssetId              []byte   `protobuf:"bytes,1,opt,name=assetId,proto3" json:"assetId,omitempty"`
	UniqueId             []byte   `protobuf:"bytes,2,opt,name=uniqueId,proto3" json:"uniqueId,omitempty"`
	Amount               uint64   `protobuf:"varint,3,opt,name=amount,proto3" json:"amount,omitempty"`
	Creator              string   `protobuf:"bytes,4,opt,name=creator,proto3" json:"creator,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*PtnSupplyToken) Descriptor added in v1.0.8

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

func (*PtnSupplyToken) GetAmount added in v1.0.8

func (m *PtnSupplyToken) GetAmount() uint64

func (*PtnSupplyToken) GetAssetId added in v1.0.8

func (m *PtnSupplyToken) GetAssetId() []byte

func (*PtnSupplyToken) GetCreator added in v1.0.8

func (m *PtnSupplyToken) GetCreator() string

func (*PtnSupplyToken) GetUniqueId added in v1.0.8

func (m *PtnSupplyToken) GetUniqueId() []byte

func (*PtnSupplyToken) ProtoMessage added in v1.0.8

func (*PtnSupplyToken) ProtoMessage()

func (*PtnSupplyToken) Reset added in v1.0.8

func (m *PtnSupplyToken) Reset()

func (*PtnSupplyToken) String added in v1.0.8

func (m *PtnSupplyToken) String() string

func (*PtnSupplyToken) XXX_DiscardUnknown added in v1.0.8

func (m *PtnSupplyToken) XXX_DiscardUnknown()

func (*PtnSupplyToken) XXX_Marshal added in v1.0.8

func (m *PtnSupplyToken) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PtnSupplyToken) XXX_Merge added in v1.0.8

func (m *PtnSupplyToken) XXX_Merge(src proto.Message)

func (*PtnSupplyToken) XXX_Size added in v1.0.8

func (m *PtnSupplyToken) XXX_Size() int

func (*PtnSupplyToken) XXX_Unmarshal added in v1.0.8

func (m *PtnSupplyToken) XXX_Unmarshal(b []byte) error

type Response

type Response PtnResponse

func (*Response) ProtoMessage

func (*Response) ProtoMessage()

func (*Response) Reset

func (m *Response) Reset()

func (*Response) String

func (m *Response) String() string

func (*Response) XXX_Marshal

func (m *Response) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Response) XXX_Unmarshal

func (m *Response) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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