sample_chain/proto/chaincode.proto

35 lines
439 B
Protocol Buffer
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

syntax = "proto3";
option go_package = "./;pb";
package pb;
// 链码ID由链码的路径名称和版本号构成
message ChaincodeID {
string Path = 1;
string Name = 2;
string Version = 3;
}
message ChaincodeInput {
repeated bytes Args = 1;
bool IsInit = 2;
}
message ChaincodeSpec {
ChaincodeID ChaincodeID = 1;
ChaincodeInput Input = 2;
int32 Timeout = 3;
}