From 32ae55930e5ccf85ce45a7279d44d9f27bc9017c Mon Sep 17 00:00:00 2001 From: Srinivasan Muralidharan Date: Sun, 29 Jan 2017 12:24:51 -0500 Subject: [PATCH] FAB-1926 add version field to chaincode ID https://jira.hyperledger.org/browse/FAB-1926 Adds version to chaincode ID proto specification and uses it in the installer. Change-Id: If9f3fa7c6c5661b73a9aacbc2b74a0d2b39adf7f Signed-off-by: Srinivasan Muralidharan --- peer/chaincode/common.go | 2 +- peer/chaincode/install.go | 6 ++ peer/chaincode/install_test.go | 15 ++++ protos/peer/chaincode.pb.go | 141 +++++++++++++++++---------------- protos/peer/chaincode.proto | 3 + 5 files changed, 97 insertions(+), 70 deletions(-) diff --git a/peer/chaincode/common.go b/peer/chaincode/common.go index 6e8fcbabe2a..624c9fe38a9 100644 --- a/peer/chaincode/common.go +++ b/peer/chaincode/common.go @@ -86,7 +86,7 @@ func getChaincodeSpecification(cmd *cobra.Command) (*pb.ChaincodeSpec, error) { chaincodeLang = strings.ToUpper(chaincodeLang) spec = &pb.ChaincodeSpec{ Type: pb.ChaincodeSpec_Type(pb.ChaincodeSpec_Type_value[chaincodeLang]), - ChaincodeID: &pb.ChaincodeID{Path: chaincodePath, Name: chaincodeName}, + ChaincodeID: &pb.ChaincodeID{Path: chaincodePath, Name: chaincodeName, Version: chaincodeVersion}, Input: input, } return spec, nil diff --git a/peer/chaincode/install.go b/peer/chaincode/install.go index f3e23b228ca..dbe0d07400f 100644 --- a/peer/chaincode/install.go +++ b/peer/chaincode/install.go @@ -67,6 +67,12 @@ func createCCInstallPath(path string) (string, error) { func packageCC(chaincodeBin []byte) ([]byte, error) { //TODO create proper, secured package, for now return chaincode binary asis + // + //At minimum, the package will contain + // . chaincodeBin + // . serialized Policy + // . hash of the above computed here at install time + // . signature with above return chaincodeBin, nil } diff --git a/peer/chaincode/install_test.go b/peer/chaincode/install_test.go index ba7c9b12607..fd37efe3688 100644 --- a/peer/chaincode/install_test.go +++ b/peer/chaincode/install_test.go @@ -75,6 +75,21 @@ func TestInstallCmd(t *testing.T) { } } +// TestBadVersion tests generation of install command +func TestBadVersion(t *testing.T) { + fsPath := "/tmp/installtest" + + cmd := initInstallTest(fsPath, t) + defer finitInstallTest(fsPath) + + args := []string{"-n", "example02", "-p", "github.com/hyperledger/fabric/examples/chaincode/go/chaincode_example02"} + cmd.SetArgs(args) + + if err := cmd.Execute(); err == nil { + t.Fatalf("Expected error executing install command for version not specified") + } +} + // TestNonExistentCC non existent chaincode should fail as expected func TestNonExistentCC(t *testing.T) { fsPath := "/tmp/installtest" diff --git a/protos/peer/chaincode.pb.go b/protos/peer/chaincode.pb.go index 9ba60698a74..7248f370f37 100644 --- a/protos/peer/chaincode.pb.go +++ b/protos/peer/chaincode.pb.go @@ -176,6 +176,8 @@ type ChaincodeID struct { // all other requests will use the name (really a hashcode) generated by // the deploy transaction Name string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"` + // user friendly version name for the chaincode + Version string `protobuf:"bytes,3,opt,name=version" json:"version,omitempty"` } func (m *ChaincodeID) Reset() { *m = ChaincodeID{} } @@ -536,73 +538,74 @@ var _ChaincodeSupport_serviceDesc = grpc.ServiceDesc{ func init() { proto.RegisterFile("peer/chaincode.proto", fileDescriptor1) } var fileDescriptor1 = []byte{ - // 1077 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xa4, 0x56, 0x5f, 0x6f, 0xe2, 0x46, - 0x10, 0x8f, 0xf9, 0x93, 0xc0, 0x40, 0x60, 0xb3, 0xc7, 0xe5, 0x28, 0x6a, 0x55, 0x6a, 0xf5, 0x21, - 0x57, 0x55, 0xd0, 0xa6, 0x77, 0x55, 0xa5, 0x56, 0xa7, 0xfa, 0xec, 0x3d, 0xea, 0x0b, 0x31, 0xdc, - 0xe2, 0x44, 0x49, 0x5f, 0x22, 0xc7, 0x2c, 0xc4, 0x0a, 0xf1, 0xba, 0xf6, 0x82, 0xc2, 0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c, - 0xf5, 0xef, 0xcc, 0xe3, 0x03, 0x59, 0x86, 0x02, 0x25, 0x1d, 0x73, 0x60, 0x13, 0x8a, 0x14, 0x5c, - 0x01, 0x58, 0x20, 0x62, 0xa0, 0x8c, 0x9c, 0x47, 0xd3, 0x32, 0x6d, 0x94, 0xc5, 0x45, 0xc8, 0x53, - 0xa2, 0x19, 0x97, 0x28, 0x87, 0xab, 0x50, 0xb2, 0xa9, 0x66, 0x0d, 0x34, 0xdd, 0x36, 0x7b, 0x16, - 0xca, 0xcb, 0x90, 0x7a, 0xef, 0xb4, 0xdf, 0x25, 0x36, 0x31, 0xd0, 0xae, 0xa4, 0x12, 0x4a, 0x7b, - 0x14, 0xed, 0x49, 0x4f, 0x87, 0xd8, 0x57, 0x03, 0x5b, 0xb3, 0x09, 0x2a, 0x48, 0xd8, 0x3f, 0x5b, - 0xc0, 0xa2, 0x84, 0x06, 0xe9, 0xa6, 0x10, 0x70, 0x0d, 0x90, 0x69, 0x9d, 0xf7, 0x4e, 0xc8, 0x95, - 0xfe, 0x87, 0x66, 0x5a, 0xba, 0x7c, 0x1b, 0x4a, 0x49, 0x82, 0x83, 0x7e, 0xcf, 0x1a, 0x10, 0xb4, - 0x8f, 0x9f, 0xc3, 0x01, 0xd5, 0xac, 0x0e, 0xb9, 0xfa, 0x70, 0x46, 0xe8, 0x65, 0x2a, 0xad, 0xe0, - 0x17, 0xf0, 0x8c, 0x5c, 0x10, 0xfd, 0xcc, 0xde, 0x74, 0x54, 0x65, 0xcc, 0x35, 0xc3, 0x95, 0x45, - 0x2e, 0x6c, 0x84, 0x64, 0x94, 0x75, 0xab, 0xde, 0xed, 0x0d, 0x08, 0x3a, 0x90, 0xf9, 0x9c, 0x10, - 0xd2, 0xd7, 0xba, 0xe6, 0x39, 0x41, 0x58, 0xfd, 0x19, 0xca, 0xfd, 0xa9, 0x18, 0x08, 0x47, 0x30, - 0xd3, 0x1f, 0x71, 0x8c, 0x20, 0x7b, 0xcb, 0xe6, 0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3b, - 0xd3, 0x20, 0x96, 0x6d, 0x6a, 0x5d, 0xa4, 0x1c, 0x5f, 0xac, 0xbd, 0x29, 0x83, 0x69, 0x10, 0xf0, - 0x50, 0x60, 0x03, 0x0a, 0x94, 0x8d, 0xbd, 0x48, 0xb0, 0x10, 0xd7, 0x9f, 0x7a, 0x51, 0x1a, 0x4f, - 0x7a, 0xd4, 0x9d, 0x23, 0xe5, 0x07, 0xe5, 0xad, 0x0e, 0x87, 0x3c, 0x1c, 0xb7, 0x6e, 0xe6, 0x01, - 0x0b, 0x27, 0x6c, 0x38, 0x66, 0x61, 0x2a, 0xf8, 0xf3, 0xe5, 0xd8, 0x13, 0x37, 0xd3, 0xeb, 0x96, - 0xcb, 0xef, 0xda, 0x6b, 0xee, 0xf6, 0xc8, 0xb9, 0x0e, 0x3d, 0x37, 0xf9, 0xe4, 0x88, 0xda, 0xf2, - 0xdb, 0xe4, 0x3a, 0xf9, 0x52, 0xf9, 0xe9, 0xff, 0x00, 0x00, 0x00, 0xff, 0xff, 0x0f, 0xe1, 0x88, - 0xa2, 0xc8, 0x08, 0x00, 0x00, + // 1090 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xa4, 0x56, 0x5f, 0x6f, 0x1a, 0x47, + 0x10, 0xcf, 0xf1, 0xc7, 0x86, 0x01, 0xc3, 0x66, 0x43, 0x12, 0x8a, 0x5a, 0x95, 0x9e, 0xfa, 0xe0, + 0x54, 0x15, 0xb4, 0x34, 0xad, 0x2a, 0xb5, 0x8a, 0x7a, 0xb9, 0xdb, 0xd0, 0x8b, 0xf1, 0x41, 0x96, + 0xb3, 0x95, 0xf4, 0xc5, 0x3a, 0x1f, 0x0b, 0x3e, 0x19, 0xdf, 0x5e, 0xef, 0x16, 0x64, 0xde, 0xf2, + 0x91, 0xfa, 0xdc, 0xcf, 0xd4, 0xcf, 0x50, 0x55, 0x7b, 0x7f, 0xf8, 0x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xf5, 0xc6, 0x34, 0x88, 0x65, + 0x9b, 0xda, 0x00, 0x29, 0xbd, 0xf7, 0x5b, 0x3b, 0x65, 0xbc, 0x08, 0x02, 0x1e, 0x0a, 0x6c, 0x40, + 0x89, 0xb2, 0x99, 0x17, 0x09, 0x16, 0xe2, 0xe6, 0x43, 0x1b, 0xa5, 0xf5, 0xa0, 0x46, 0x7d, 0x74, + 0xac, 0x7c, 0xa7, 0xbc, 0xd6, 0xe1, 0x19, 0x0f, 0x67, 0x9d, 0xab, 0x55, 0xc0, 0xc2, 0x39, 0x9b, + 0xcc, 0x58, 0x98, 0x1a, 0xfc, 0xf1, 0x62, 0xe6, 0x89, 0xab, 0xc5, 0x65, 0xc7, 0xe5, 0x37, 0xdd, + 0x2d, 0x75, 0x77, 0xea, 0x5c, 0x86, 0x9e, 0x9b, 0x7c, 0x8c, 0x44, 0x5d, 0xf9, 0xd5, 0x72, 0x99, + 0x7c, 0xc3, 0xfc, 0xf0, 0x5f, 0x00, 0x00, 0x00, 0xff, 0xff, 0xe5, 0x9c, 0x73, 0xa3, 0xe2, 0x08, + 0x00, 0x00, } diff --git a/protos/peer/chaincode.proto b/protos/peer/chaincode.proto index f4b5d82a835..849d0223791 100644 --- a/protos/peer/chaincode.proto +++ b/protos/peer/chaincode.proto @@ -44,6 +44,9 @@ message ChaincodeID { //all other requests will use the name (really a hashcode) generated by //the deploy transaction string name = 2; + + //user friendly version name for the chaincode + string version = 3; } // Carries the chaincode function and its arguments.