Commit 9eeacbfd authored by Anastasios Kalogeropoulos's avatar Anastasios Kalogeropoulos
Browse files

cc description added

parent 9d155ac1
The Evidentia chainode implements a logging mechanism for storing queries in the blockchain between Evidentia nodes that belong to a Hyperledger Fabric network.
The `EvidentiaQuery` contains the following data:
```bash
type EvidentiaQuery struct {
ID # the id of the query <EntityName_ServiceName>
EntityName # the name of the entity invoked the query
ServiceName # the name of the service to be invoked
ServiceParams # the parameters of the service
}
```
For example, the following entry represents a sample query stored on the blockchain:
```json
{
"ID": "testNode_testService",
"EntityName": "testNode",
"ServiceName": "testService",
"ServiceParams": "testParam1, testParam2, testParam3"
}
```
The `ID` of the query is generated automatically in the chaincode.
# Deploy chaincode on the Test Network
Before you proceed, make sure that you have installed the [prerequisites](https://hyperledger-fabric.readthedocs.io/en/latest/prereqs.html#).
......@@ -137,4 +163,4 @@ Read the previous entry and verify that you receive the correct data:
```bash
peer chaincode invoke -o localhost:7050 --ordererTLSHostnameOverride orderer.example.com --tls --cafile "${PWD}/organizations/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem" -C mychannel -n evidentia --peerAddresses localhost:7051 --tlsRootCertFiles "${PWD}/organizations/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/ca.crt" --peerAddresses localhost:9051 --tlsRootCertFiles "${PWD}/organizations/peerOrganizations/org2.example.com/peers/peer0.org2.example.com/tls/ca.crt" -c '{"function":"ReadEvidentiaQuery","Args":["test_testService"]}'
```
\ No newline at end of file
```
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment