Skip to content

Commit

Permalink
Add private data go application
Browse files Browse the repository at this point in the history
Created project directory, app.go and connect.go files. Reused the logic for
connect.go from the events application and added second organization setup.

Implemented private data transaction example in go as described in the main
documentation in "Tutorials/Using Private Data in Fabric".

Updated README.md with the command to run the go application and the script
which runs the application in the Github Actions workflow.

Fixed typos and punctuation in the private data typescript application.

Signed-off-by: Stanislav Jakuschevskij <[email protected]>
  • Loading branch information
twoGiants committed Oct 30, 2024
1 parent f16e9e6 commit e6aca84
Show file tree
Hide file tree
Showing 7 changed files with 784 additions and 16 deletions.
10 changes: 7 additions & 3 deletions asset-transfer-private-data/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,9 @@ Like other samples, the Fabric test network is used to deploy and run this sampl
# To deploy the go chaincode implementation
./network.sh deployCC -ccn private -ccp ../asset-transfer-private-data/chaincode-go -ccl go -ccep "OR('Org1MSP.peer','Org2MSP.peer')" -cccg '../asset-transfer-private-data/chaincode-go/collections_config.json' -ccep "OR('Org1MSP.peer','Org2MSP.peer')"
# To deploy the typescript chaincode implementation
./network.sh deployCC -ccn private -ccp ../asset-transfer-private-data/chaincode-typescript/ -ccl typescript -ccep "OR('Org1MSP.peer','Org2MSP.peer')" -cccg ../asset-transfer-private-data/chaincode-typescript/collections_config.json
./network.sh deployCC -ccn private -ccp ../asset-transfer-private-data/chaincode-typescript/ -ccl typescript -ccep "OR('Org1MSP.peer','Org2MSP.peer')" -cccg ../asset-transfer-private-data/chaincode-typescript/collections_config.json
```

3. Run the application (from the `asset-transfer-private-data` folder).
Expand All @@ -64,6 +64,10 @@ Like other samples, the Fabric test network is used to deploy and run this sampl
cd application-gateway-typescript
npm install
npm start
# To run the Go sample application
cd application-gateway-go
go run .
```

## Clean up
Expand All @@ -72,4 +76,4 @@ When you are finished, you can bring down the test network (from the `test-netwo

```
./network.sh down
```
```
Loading

0 comments on commit e6aca84

Please sign in to comment.