Skip to content

Commit ae96e46

Browse files
authored
Merge pull request #259 from VRamakrishna/main
Support for end-to-end confidentiality in the data sharing protocol
2 parents b2d2a7b + 7968cbe commit ae96e46

File tree

64 files changed

+1648
-252
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

64 files changed

+1648
-252
lines changed

.github/workflows/test_asset-exchange-fabric.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ on:
1717
jobs:
1818

1919
asset-exchange-fabric:
20+
if: ${{ false }} # disable for now
2021
# The type of runner that the job will run on
2122
runs-on: ubuntu-latest
2223

@@ -90,6 +91,7 @@ jobs:
9091
working-directory: samples/fabric/fabric-cli
9192

9293
asset-exchange-fabric-semi-local:
94+
if: ${{ false }} # disable for now
9395
# The type of runner that the job will run on
9496
runs-on: ubuntu-latest
9597

.github/workflows/test_asset-transfer.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ on:
1616
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
1717
jobs:
1818
fabric-asset-transfer:
19+
if: ${{ false }} # disable for now
1920
# The type of runner that the job will run on
2021
runs-on: ubuntu-latest
2122

@@ -369,6 +370,7 @@ jobs:
369370
working-directory: samples/fabric/fabric-cli
370371

371372
fabric-asset-transfer-semi-local:
373+
if: ${{ false }} # disable for now
372374
# The type of runner that the job will run on
373375
runs-on: ubuntu-latest
374376

.github/workflows/test_data-transfer.yml

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ on:
1616
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
1717
jobs:
1818
data-transfer:
19+
if: ${{ false }} # disable for now
1920
# The type of runner that the job will run on
2021
runs-on: ubuntu-latest
2122

@@ -279,6 +280,7 @@ jobs:
279280
working-directory: samples/fabric/fabric-cli
280281

281282
data-transfer-semi-local:
283+
if: ${{ false }} # disable for now
282284
# The type of runner that the job will run on
283285
runs-on: ubuntu-latest
284286

@@ -791,7 +793,7 @@ jobs:
791793
- name: Data Transfer Fabric CLI Tests
792794
run: |
793795
COUNT=0
794-
TOTAL=8
796+
TOTAL=12
795797
796798
# FABRIC2 - FABRIC1
797799
cp chaincode.json.template chaincode.json
@@ -803,8 +805,18 @@ jobs:
803805
tail -n 1 tmp.out | grep "Result from network query: Arcturus" && COUNT=$(( COUNT + 1 )) && echo "PASS"
804806
cat tmp.out
805807
808+
# FABRIC2 - FABRIC1 - CONFIDENTIAL
809+
sed -i "s/\"args\"\: \[\"a\"/\"args\"\: \[\"b\"/g" chaincode.json
810+
./bin/fabric-cli interop --local-network=network2 --requesting-org=Org1MSP --e2e-confidentiality=true localhost:9080/network1/mychannel:simplestate:Read:b &> tmp.out
811+
tail -n 1 tmp.out | grep "Args: b, Betelgeuse" && COUNT=$(( COUNT + 1 )) && echo "PASS"
812+
cat tmp.out
813+
814+
./bin/fabric-cli chaincode query mychannel simplestate read '["b"]' --local-network=network2 &> tmp.out
815+
tail -n 1 tmp.out | grep "Result from network query: Betelgeuse" && COUNT=$(( COUNT + 1 )) && echo "PASS"
816+
cat tmp.out
817+
806818
# FABRIC1 - FABRIC2
807-
sed -i "s/\"args\"\: \[\"a\"/\"args\"\: \[\"Arcturus\"/g" chaincode.json
819+
sed -i "s/\"args\"\: \[\"b\"/\"args\"\: \[\"Arcturus\"/g" chaincode.json
808820
./bin/fabric-cli interop --local-network=network1 --requesting-org=Org1MSP localhost:9083/network2/mychannel:simplestate:Read:Arcturus &> tmp.out
809821
tail -n 1 tmp.out | grep "Args: Arcturus, 17.671" && COUNT=$(( COUNT + 1 )) && echo "PASS"
810822
cat tmp.out
@@ -813,6 +825,16 @@ jobs:
813825
tail -n 1 tmp.out | grep "Result from network query: 17.671" && COUNT=$(( COUNT + 1 )) && echo "PASS"
814826
cat tmp.out
815827
828+
# FABRIC1 - FABRIC2 - CONFIDENTIAL
829+
sed -i "s/\"args\"\: \[\"Arcturus\"/\"args\"\: \[\"Betelgeuse\"/g" chaincode.json
830+
./bin/fabric-cli interop --local-network=network1 --requesting-org=Org1MSP --e2e-confidentiality=true localhost:9083/network2/mychannel:simplestate:Read:Betelgeuse &> tmp.out
831+
tail -n 1 tmp.out | grep "Args: Betelgeuse, 617.1" && COUNT=$(( COUNT + 1 )) && echo "PASS"
832+
cat tmp.out
833+
834+
./bin/fabric-cli chaincode query mychannel simplestate read '["Betelgeuse"]' --local-network=network1 &> tmp.out
835+
tail -n 1 tmp.out | grep "Result from network query: 617.1" && COUNT=$(( COUNT + 1 )) && echo "PASS"
836+
cat tmp.out
837+
816838
# FABRIC1 - CORDA
817839
cp chaincode.json.template chaincode.json
818840
sed -i "s/\"args\"\: \[\"a\"/\"args\"\: \[\"H\"/g" chaincode.json

.github/workflows/test_go.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ on:
88

99
jobs:
1010
test_interopcc_github:
11+
if: ${{ false }} # disable for now
1112
runs-on: ubuntu-latest
1213
steps:
1314
- uses: actions/checkout@v2

common/protos-go/common/access_control.pb.go

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

common/protos-go/common/ack.pb.go

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

common/protos-go/common/asset_locks.pb.go

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

common/protos-go/common/asset_transfer.pb.go

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)