Go to file
Chetan Sarva 6ab6277724 docs: privacy APIs 2016-11-18 10:51:43 -05:00
.github misc: fix spelling mistake 2016-05-24 22:13:05 -05:00
_data Remove _data files and point to quorum-examples repository 2016-11-14 00:32:43 -05:00
accounts cmd,eth enforce gas price of 0 2016-11-15 18:40:08 +01:00
build Godeps, vendor: convert dependency management to trash (#3198) 2016-10-28 19:05:01 +02:00
cmd implemented node permissioning 2016-11-17 18:50:28 -05:00
common cmd,eth enforce gas price of 0 2016-11-15 18:40:08 +01:00
compression/rle all: Rename crypto.Sha3{,Hash}() to crypto.Keccak256{,Hash}() 2016-02-21 22:34:34 +00:00
console internal/ethapi: add personal_sign and fix eth_sign to hash message (#2940) 2016-10-28 21:25:49 +02:00
containers containers/docker: whitespace changes only, make future diffs more readable 2016-07-25 16:39:00 +02:00
contracts Change a couple references 2016-11-14 00:34:02 -05:00
core quorum: retrieve nonce from txpool instead of pending state 2016-11-18 13:58:52 +01:00
crypto Fix SetPrivate and validation 2016-11-14 23:48:10 -05:00
docs docs: privacy APIs 2016-11-18 10:51:43 -05:00
errs all: fix license headers one more time 2015-07-23 18:35:11 +02:00
eth implemented node permissioning 2016-11-17 18:50:28 -05:00
ethclient ethclient: changed TransactionByHash to only pass one argument to api method (#3209) 2016-10-27 23:10:24 +02:00
ethdb Merge pull request #2914 from fjl/node-coinhabit 2016-09-29 14:24:37 +02:00
event event: fixed subscribtions to stopped event mux 2016-05-12 20:38:09 +02:00
generators all: fix go vet warnings 2016-04-15 11:17:27 +02:00
internal cmd,eth enforce gas price of 0 2016-11-15 18:40:08 +01:00
light trie, core/state: improve memory usage and performance (#3135) 2016-10-14 19:04:33 +03:00
logger logger/glog: fix go vet issues 2016-04-15 10:58:41 +02:00
metrics metrics, internal/debug: Add --pprofaddr flag, expose metrics via gexp 2016-10-14 12:29:08 +01:00
node implemented node permissioning 2016-11-17 18:50:28 -05:00
p2p implemented node permissioning 2016-11-17 18:50:28 -05:00
params params: make quorum voting address global 2016-11-09 18:56:05 +01:00
pow all: fix go vet warnings 2016-04-15 11:17:27 +02:00
private Rename private.go import path to ethereum/go-ethereum 2016-11-14 00:39:47 -05:00
rlp all: fix go vet warnings 2016-04-15 11:17:27 +02:00
rpc go fmt 2016-11-14 00:35:27 -05:00
swarm go fmt 2016-11-14 00:35:27 -05:00
tests cmd,eth enforce gas price of 0 2016-11-15 18:40:08 +01:00
trie trie: while fast syncing, don't keep trie nodes in memory (#3186) 2016-10-21 17:34:17 +02:00
vendor Add new vendored packages 2016-11-14 00:41:46 -05:00
whisper whisper: project restructured, version 5 introduced (#3022) 2016-10-29 14:11:37 +02:00
.gitattributes .gitattributes: add 2015-08-06 17:18:59 +02:00
.gitignore Godeps, vendor: convert dependency management to trash (#3198) 2016-10-28 19:05:01 +02:00
.mailmap all: update license information 2016-04-15 09:48:05 +02:00
.travis.yml build: improve debian packaging 2016-10-02 13:08:56 +02:00
AUTHORS all: update license information 2016-04-15 09:48:05 +02:00
BUILDING.md [docs] updated documentation: edited for clarity 2016-11-15 16:55:10 -05:00
COPYING all: update license information 2015-07-07 14:12:44 +02:00
COPYING.LESSER all: update license information 2015-07-07 14:12:44 +02:00
Makefile build: improve debian packaging 2016-10-02 13:08:56 +02:00
README.md docs: updated contributing info 2016-11-17 22:35:18 -05:00
VERSION VERSION, cmd/geth: bumped version 2016-04-19 18:17:44 +02:00
appveyor.yml appveyor.yml: don't install Go and MinGW, they're already there (#2813) 2016-07-14 10:33:20 +02:00
circle.yml circleci: enable docker based hive testing 2016-07-15 16:07:34 +03:00
interfaces.go ethereum, ethclient: add SyncProgress API endpoint 2016-09-06 13:41:43 +03:00
permissioned-nodes-sample.json implemented node permissioning 2016-11-17 18:50:28 -05:00
permissioned-nodes.json implemented node permissioning 2016-11-17 18:50:28 -05:00
vendor.conf Godeps, vendor: convert dependency management to trash (#3198) 2016-10-28 19:05:01 +02:00

README.md

Quorum

Quorum is an Ethereum-based distributed ledger protocol with transaction/contract privacy and a new consensus mechanism.

Key enhancements:

  • QuorumChain - a new consensus model based on majority voting
  • Constellation - a peer-to-peer encrypted message exchange
  • Peer Security - node/peer permissioning using smart contracts

Architecture

Quorum privacy architecture

The above diagram is a high-level overview of the privacy architecture used by Quorum. For more in-depth discussion of the components, refer to the wiki pages.

Quickstart

The quickest way to get started with Quorum is using VirtualBox and Vagrant:

git clone https://github.com/jpmorganchase/quorum-examples
cd quorum-examples/vagrant
vagrant up
# (should take 5 or so minutes)
vagrant ssh

Now that you have a fully-functioning Quorum environment set up, let's run the 7-node cluster example. This will spin up several nodes with a mix of voters, block makers, and unprivileged nodes.

# (from within vagrant env, use `vagrant ssh` to enter)
ubuntu@ubuntu-xenial:~$ cd quorum-examples/7nodes

$ ./init.sh
# (output condensed for clarity)
[*] Cleaning up temporary data directories
[*] Configuring node 1
[*] Configuring node 2 as block maker and voter
[*] Configuring node 3
[*] Configuring node 4 as voter
[*] Configuring node 5 as voter
[*] Configuring node 6
[*] Configuring node 7

$ ./start.sh
[*] Starting Constellation nodes
[*] Starting bootnode... waiting... done
[*] Starting node 1
[*] Starting node 2
[*] Starting node 3
[*] Starting node 4
[*] Starting node 5
[*] Starting node 6
[*] Starting node 7
[*] Unlocking account and sending first transaction
Contract transaction send: TransactionHash: 0xbfb7bfb97ba9bacbf768e67ac8ef05e4ac6960fc1eeb6ab38247db91448b8ec6 waiting to be mined...
true

We now have a 7-node Quorum cluster with a private smart contract (SimpleStorage) sent from node 1 "for" node 7 (denoted by the public key passed via privateFor: ["ROAZBWtSacxXQrOe3FGAqJDyJjFePR5ce4TSIzmJ0Bc="] in the sendTransaction call).

Connect to any of the nodes and inspect them using the following commands:

$ geth attach ipc:qdata/dd1/geth.ipc
$ geth attach ipc:qdata/dd2/geth.ipc
...
$ geth attach ipc:qdata/dd7/geth.ipc


# e.g.

$ geth attach ipc:qdata/dd2/geth.ipc
Welcome to the Geth JavaScript console!

instance: Geth/v1.5.0-unstable/linux/go1.7.3
coinbase: 0xca843569e3427144cead5e4d5999a3d0ccf92b8e
at block: 679 (Tue, 15 Nov 2016 00:01:05 UTC)
 datadir: /home/ubuntu/quorum-examples/7nodes/qdata/dd2
 modules: admin:1.0 debug:1.0 eth:1.0 net:1.0 personal:1.0 quorum:1.0 rpc:1.0 txpool:1.0 web3:1.0

> quorum.nodeInfo
{
  blockMakerAccount: "0xca843569e3427144cead5e4d5999a3d0ccf92b8e",
  blockmakestrategy: {
    maxblocktime: 10,
    minblocktime: 3,
    status: "active",
    type: "deadline"
  },
  canCreateBlocks: true,
  canVote: true,
  voteAccount: "0x0fbdc686b912d7722dc86510934589e0aaf3b55a"
}

# let's look at the private txn created earlier:
> eth.getTransaction("0xbfb7bfb97ba9bacbf768e67ac8ef05e4ac6960fc1eeb6ab38247db91448b8ec6")
{
  blockHash: "0xb6aec633ef1f79daddc071bec8a56b7099ab08ac9ff2dc2764ffb34d5a8d15f8",
  blockNumber: 1,
  from: "0xed9d02e382b34818e88b88a309c7fe71e65f419d",
  gas: 300000,
  gasPrice: 0,
  hash: "0xbfb7bfb97ba9bacbf768e67ac8ef05e4ac6960fc1eeb6ab38247db91448b8ec6",
  input: "0x9820c1a5869713757565daede6fcec57f3a6b45d659e59e72c98c531dcba9ed206fd0012c75ce72dc8b48cd079ac08536d3214b1a4043da8cea85be858b39c1d",
  nonce: 0,
  r: "0x226615349dc143a26852d91d2dff1e57b4259b576f675b06173e9972850089e7",
  s: "0x45d74765c5400c5c280dd6285a84032bdcb1de85a846e87b57e9e0cedad6c427",
  to: null,
  transactionIndex: 1,
  v: "0x25",
  value: 0
}

Note in particular the v field of "0x25" (37 in decimal) which marks this transaction as having a private payload (input).

Further Reading

Further documentation can be found in the docs folder and on the wiki.

See also

Contributing

Thank you for your interest in contributing to Quorum!

Quorum is built on open source and we fully intend to accept public contributions in the near future. Until then, feel free to file issues and open pull requests, but note that we won't be merging them until the necessary processes are in place.

License

The go-ethereum library (i.e. all code outside of the cmd directory) is licensed under the GNU Lesser General Public License v3.0, also included in our repository in the COPYING.LESSER file.

The go-ethereum binaries (i.e. all code inside of the cmd directory) is licensed under the GNU General Public License v3.0, also included in our repository in the COPYING file.