@@ -38,8 +38,7 @@ import (
38
38
var (
39
39
confidentialityOn bool
40
40
41
- confidentialityLevel pb.ConfidentialityLevel
42
- chaincodeName string
41
+ chaincodeName string
43
42
)
44
43
45
44
func initNVP () (err error ) {
@@ -121,12 +120,6 @@ func processTransaction(tx *pb.Transaction) (*pb.Response, error) {
121
120
122
121
func confidentiality (enabled bool ) {
123
122
confidentialityOn = enabled
124
-
125
- if confidentialityOn {
126
- confidentialityLevel = pb .ConfidentialityLevel_CONFIDENTIAL
127
- } else {
128
- confidentialityLevel = pb .ConfidentialityLevel_PUBLIC
129
- }
130
123
}
131
124
132
125
func deployInternal (deployer crypto.Client , adminCert crypto.CertificateHandler ) (resp * pb.Response , err error ) {
@@ -135,9 +128,8 @@ func deployInternal(deployer crypto.Client, adminCert crypto.CertificateHandler)
135
128
Type : 1 ,
136
129
ChaincodeID : & pb.ChaincodeID {Path : "github.com/hyperledger/fabric/examples/chaincode/go/asset_management" },
137
130
//ChaincodeID: &pb.ChaincodeID{Name: chaincodeName},
138
- Input : & pb.ChaincodeInput {Args : util .ToChaincodeArgs ("init" )},
139
- Metadata : adminCert .GetCertificate (),
140
- ConfidentialityLevel : confidentialityLevel ,
131
+ Input : & pb.ChaincodeInput {Args : util .ToChaincodeArgs ("init" )},
132
+ Metadata : adminCert .GetCertificate (),
141
133
}
142
134
143
135
// First build the deployment spec
@@ -194,11 +186,10 @@ func assignOwnershipInternal(invoker crypto.Client, invokerCert crypto.Certifica
194
186
195
187
// Prepare spec and submit
196
188
spec := & pb.ChaincodeSpec {
197
- Type : 1 ,
198
- ChaincodeID : & pb.ChaincodeID {Name : chaincodeName },
199
- CtorMsg : chaincodeInput ,
200
- Metadata : sigma , // Proof of identity
201
- ConfidentialityLevel : confidentialityLevel ,
189
+ Type : 1 ,
190
+ ChaincodeID : & pb.ChaincodeID {Name : chaincodeName },
191
+ CtorMsg : chaincodeInput ,
192
+ Metadata : sigma , // Proof of identity
202
193
}
203
194
204
195
chaincodeInvocationSpec := & pb.ChaincodeInvocationSpec {ChaincodeSpec : spec }
@@ -245,11 +236,10 @@ func transferOwnershipInternal(owner crypto.Client, ownerCert crypto.Certificate
245
236
246
237
// Prepare spec and submit
247
238
spec := & pb.ChaincodeSpec {
248
- Type : 1 ,
249
- ChaincodeID : & pb.ChaincodeID {Name : chaincodeName },
250
- CtorMsg : chaincodeInput ,
251
- Metadata : sigma , // Proof of identity
252
- ConfidentialityLevel : confidentialityLevel ,
239
+ Type : 1 ,
240
+ ChaincodeID : & pb.ChaincodeID {Name : chaincodeName },
241
+ CtorMsg : chaincodeInput ,
242
+ Metadata : sigma , // Proof of identity
253
243
}
254
244
255
245
chaincodeInvocationSpec := & pb.ChaincodeInvocationSpec {ChaincodeSpec : spec }
@@ -269,10 +259,9 @@ func whoIsTheOwner(invoker crypto.Client, asset string) (transaction *pb.Transac
269
259
270
260
// Prepare spec and submit
271
261
spec := & pb.ChaincodeSpec {
272
- Type : 1 ,
273
- ChaincodeID : & pb.ChaincodeID {Name : chaincodeName },
274
- CtorMsg : chaincodeInput ,
275
- ConfidentialityLevel : confidentialityLevel ,
262
+ Type : 1 ,
263
+ ChaincodeID : & pb.ChaincodeID {Name : chaincodeName },
264
+ CtorMsg : chaincodeInput ,
276
265
}
277
266
278
267
chaincodeInvocationSpec := & pb.ChaincodeInvocationSpec {ChaincodeSpec : spec }
0 commit comments