(stub shim.ChaincodeStubInterface, keyUniq string)
| 79 | } |
| 80 | |
| 81 | func (t *Operations) getKey(stub shim.ChaincodeStubInterface, keyUniq string) *pb.Response { |
| 82 | key := "key" + keyUniq |
| 83 | resp, err := stub.GetState(key) |
| 84 | if err != nil { |
| 85 | return shim.Error(err.Error()) |
| 86 | } |
| 87 | |
| 88 | return shim.Success(resp) |
| 89 | } |
| 90 | |
| 91 | // put to private key with a collection is not exists |
| 92 | func (t *Operations) putPrivateKey(stub shim.ChaincodeStubInterface, numberCallsPut string) *pb.Response { |