-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactors: Try to communicate with Ethereum network
- Loading branch information
1 parent
7ed0ced
commit 7faf603
Showing
11 changed files
with
310 additions
and
244 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,16 @@ | ||
# blockchain2-demo | ||
blockchain2 demo | ||
|
||
This repository contains a PoC of Anchor APIs using the Quorum blockchain network. | ||
|
||
* API documentation can be found here [Swagger](anchor_api/swagger.yaml) | ||
The actual implementation is designed using Node.js ecosystem. | ||
The web service will expose operations in which, an anchor defined as JSON, will be stored, updated, fetched or removed. | ||
All operations are executed over the Quorum blockchain network using a smart contract. | ||
The smart contract are intended to be implemented using Solidity and Truffle framework [47]. U | ||
sing the demo Anchor API, one can store a data anchor (generating a proof of existence receipt) to prove the existence of some data at some point in time using the Quorum blockchain. | ||
Following operations will be exposed by the PoC | ||
|
||
* POST /data_anchors - Create a new data anchor | ||
* GET - /data_anchors /{anchorId} - Get an anchor by its identifier | ||
* PUT - /data_anchors /{anchorId} - Update an anchor by its identifier | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
WEB3_PROVIDER=http://3.10.195.154:8545 | ||
WEB3_ACCOUNT=0x66d66805E29EaB59901f8B7c4CAE0E38aF31cb0e | ||
WEB3_PROVIDER=http://18.132.141.64:8545 | ||
WEB3_ACCOUNT=0x66d66805E29EaB59901f8B7c4CAE0E38aF31cb0e | ||
WEB3_PASSWORD= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
``` | ||
helm install --set env.web3_provider=http://172.20.123.13:8545 --set env.web3_account=0x66d66805E29EaB59901f8B7c4CAE0E38aF31cb0e anchor-api helm-charts/ | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
{ | ||
"web3": { | ||
"provider": "WEB3_PROVIDER", | ||
"account": "WEB3_ACCOUNT" | ||
"account": "WEB3_ACCOUNT", | ||
"password": "WEB3_PASSWORD" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,12 @@ | ||
{ | ||
"truffle": { | ||
"host": "3.10.195.154", | ||
"host": "3.9.53.187", | ||
"port": 8545, | ||
"network_id": "*", | ||
"gasPrice": 0, | ||
"gas": 4500000, | ||
"type": "quorum", | ||
"from": "0x66d66805E29EaB59901f8B7c4CAE0E38aF31cb0e" | ||
"type": "ethereum", | ||
"from": "0x3852360755845889E675C4b683f3F26bf8f12aeA", | ||
"password": "lst7upm" | ||
} | ||
} |