Bertrand Rioux

Results 44 comments of Bertrand Rioux

@sichen1234 getting caught up on this issue as it relates to the [data integration mentorship](https://wiki.hyperledger.org/display/INTERN/Multiple+Data+Integration+to+Fabric+Climate+Accounting+Network) assigned to @Ackintya. [This blog](https://wiki.hyperledger.org/display/INTERN/Multiple+Data+Integration+to+Fabric+Climate+Accounting+Network) discusses support for other state DBs, and highlights that Fabric...

Ok, I understand better the issue now. The emissions will not be stored on the Fabric state DB (i.e., couch), instead the chaincode calls an external sevice (i.e., postgreSQL DB)....

In this case I think a good first task for @Ackintya is to work on revising the chaincode to pull data from an external resource. He can start by working...

@Ackintya here is an example of where the emissions chaincode will need to be modified. The function [getEmissionsRecord of the EmissionsRecordState](https://github.com/hyperledger-labs/blockchain-carbon-accounting/blob/de07323f947ab1966d625fd9819c760537187d11/fabric/emissions-data/chaincode/emissionscontract/typescript/src/lib/emissions.ts#L68) should query external Postgres DB for the uuid of...

I have been thinking about this issue over the weeknd. There are the two approaches to using an external database to access emission records. 1. This new approach: the chaincode...

@Ackintya, @sichen1234 is asking to implement 1. The organization tells the network where to get the data from, or the API address/functions are hard coded into the chaincode. I read...

Benefits of the new approach (assuming consensus is not an issue). 1. The chaincode can be configured to whitelist recognized/trusted emission record APIs 2. No need for internal state DB...

@Ackintya I am looking at your modifications to the emissionsRecordContract.ts First, the rest API should expect from the Fabric chaincode any cmd + arguments combination to be relayed to the...

As an example we can use `activity-emissions` cmd to get data for uuid 3622b20d-1e94-4490-ba8b-6e0b73910e2 by sending the following args scope: "SCOPE 2" level1: "eGRID EMISSIONS FACTORS" level2: "USA" level3: "STATE:...

@sichen1234 clarification first i think you mean call [lib/supply-chain/src/process_electricity](https://github.com/hyperledger-labs/blockchain-carbon-accounting/blob/ea57504d24d87615fd60ecc5fe0d0f4d2bb5aef8/lib/supply-chain/src/emissions-utils.ts#L371)... @Ackintya, you can use your REST API (oracle) to call DB directly. Sorry I made a mistake, there is no need...