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:
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:
"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](
......@@ -137,4 +163,4 @@ Read the previous entry and verify that you receive the correct data:
peer chaincode invoke -o localhost:7050 --ordererTLSHostnameOverride --tls --cafile "${PWD}/organizations/ordererOrganizations/" -C mychannel -n evidentia --peerAddresses localhost:7051 --tlsRootCertFiles "${PWD}/organizations/peerOrganizations/" --peerAddresses localhost:9051 --tlsRootCertFiles "${PWD}/organizations/peerOrganizations/" -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