QUORUM DEMO

Install

1. Git https://git-scm.com/downloads

2. VirtualBox https://www.virtualbox.org/wiki/Downloads

3. Vagrant https://www.vagrantup.com/downloads.html

 

Open Terminal or Command Prompt

1. git clone https://github.com/jpmorganchase/quorum-examples

2. cd quorum-examples

3. vagrant up

# should take 5 or so minutes

--- COMPLETE TILL HERE PRIOR TO IN-PERSON DEMO --- 

4. vagrant ssh

 

Now inside virtual box:

5. cd quorum-examples/7nodes

6.  ./init.sh

7.  ./start.sh

8.  geth attach ipc:qdata/dd1/geth.ipc

# Do steps 2, 4, 5, and 8 above on two additional terminals. Except replace dd1 in step 8 with dd4 and dd7.

 # Replace the transaction hash in step 9 with the one that outputted in step 7

9.  eth.getTransactionReceipt("0x64bf8c808c3a7fb15a649c08bf5220b3e63cb1a0a1566729e9a90c7cb0b635cd");

 # Do steps 10-13 below in all 3 terminal windows

 # Replace the value below with the "contractAddress" outputted in step 9

10.  var contractAddress = "0x1932c48b2bf8102ba33b4a6b545c32236e342f34";

11.  var abi = [{"constant":true,"inputs":[],"name":"storedData","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"x","type":"uint256"}],"name":"set","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"get","outputs":[{"name":"retVal","type":"uint256"}],"payable":false,"type":"function"},{"inputs":[{"name":"initVal","type":"uint256"}],"type":"constructor"}];

12. var contract = eth.contract(abi).at(contractAddress)

13. contract.get();

14. contract.set(100,{from:eth.coinbase,privateFor:["ROAZBWtSacxXQrOe3FGAqJDyJjFePR5ce4TSIzmJ0Bc="]});

15. contract.get();

 

 

logo-blue-matrix