Go to file
Joel Burget d79a45fbf7 Merge branch 'geth1.6' into geth1.7.0-merge 2017-10-25 11:56:19 -04:00
.github README: removed develop mentions 2016-11-30 19:39:05 +01:00
accounts Merge tag 'v1.7.0' into geth1.7.0-merge 2017-10-24 14:22:33 -04:00
bmt bmt: Binary Merkle Tree Hash (#14334) 2017-09-05 12:38:36 +02:00
build build: bump PPA builders to Go 1.9 (#15083) 2017-09-05 10:16:46 +02:00
cmd Merge tag 'v1.7.0' into geth1.7.0-merge 2017-10-24 14:22:33 -04:00
common common: improve documentation of Hash.SetBytes (#15062) 2017-09-07 23:32:59 +02:00
compression/rle rlp, trie, contracts, compression, consensus: improve comments (#14580) 2017-06-12 14:45:17 +02:00
consensus Merge tag 'v1.7.0' into geth1.7.0-merge 2017-10-24 14:22:33 -04:00
console console: use keypad based pinpad (Trezor request) 2017-08-14 12:21:40 +03:00
containers cotnainers/docker: fix the legacy alpine image before dropping 2017-06-01 00:21:47 +03:00
contracts contracts/chequebook: fix race in test (#15058) 2017-09-07 23:14:47 +02:00
core Make IsQuorum the default configuration 2017-10-25 11:48:41 -04:00
crypto Add private state. 2017-08-24 10:24:10 -04:00
docs Fix the dash in the bootnode commands (#182) 2017-10-17 10:43:52 -04:00
eth Merge tag 'v1.7.0' into geth1.7.0-merge 2017-10-24 14:22:33 -04:00
ethclient ethclient: add NetworkID method (#14791) 2017-08-01 10:59:46 +02:00
ethdb core, eth/downloader: commit block data using batches (#15115) 2017-09-09 19:03:07 +03:00
ethstats core, light: send chain events using event.Feed (#14865) 2017-08-18 12:58:36 +02:00
event all: update license information 2017-04-14 10:29:00 +02:00
internal Merge tag 'v1.7.0' into geth1.7.0-merge 2017-10-24 14:22:33 -04:00
les Merge tag 'v1.7.0' into geth1.7.0-merge 2017-10-24 14:22:33 -04:00
light Merge tag 'v1.7.0' into geth1.7.0-merge 2017-10-24 14:22:33 -04:00
log Add private state. 2017-08-24 10:24:10 -04:00
metrics metrics: change MetricsEnabledFlag to be const 2017-08-22 18:35:09 +12:00
miner Merge tag 'v1.7.0' into geth1.7.0-merge 2017-10-24 14:22:33 -04:00
mobile Squashed commits. 2017-10-17 10:30:21 -04:00
node Add private state. 2017-08-24 10:24:10 -04:00
p2p Merge tag 'v1.7.0' into geth1.7.0-merge 2017-10-24 14:22:33 -04:00
params Make IsQuorum the default configuration 2017-10-25 11:48:41 -04:00
private private: Distinguish between privateFor being absent vs. an empty array to allow self-sending (#165) 2017-10-17 10:39:01 -04:00
raft Merge branch 'geth1.6' into geth1.7.0-merge 2017-10-25 11:56:19 -04:00
rlp rlp: fix decoding long strings into RawValue types 2017-08-24 13:10:50 +03:00
rpc rpc: fix megacheck warnings 2017-08-08 11:08:37 +02:00
swarm swarm/api/http: add error pages (#14967) 2017-09-08 20:29:09 +02:00
tests Merge tag 'v1.7.0' into geth1.7.0-merge 2017-10-24 14:22:33 -04:00
trie core, eth/downloader: commit block data using batches (#15115) 2017-09-09 19:03:07 +03:00
vendor Merge tag 'v1.7.0' into geth1.7.0-merge 2017-10-24 14:22:33 -04:00
whisper whisper: Fix spelling and grammar in error (#15009) 2017-08-21 12:22:00 +03:00
.dockerignore dockerignore: ignore all git metadata and all tests 2017-07-11 17:02:22 +03:00
.gitattributes .gitattributes: add 2015-08-06 17:18:59 +02:00
.gitignore Add .idea to gitignore. 2017-08-24 08:52:08 -04:00
.gitmodules tests: update tests and implement general state tests (#14734) 2017-07-11 13:49:14 +02:00
.mailmap all: update license information 2017-04-14 10:29:00 +02:00
.travis.yml travis, appveyor: bump Go to 1.9 stable 2017-08-28 11:15:29 +03:00
AUTHORS all: update license information 2017-04-14 10:29:00 +02:00
BUILDING.md Add private state. 2017-08-24 10:24:10 -04: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
Dockerfile Dockerfile: fix missing SSL certificates 2017-09-05 16:06:04 +03:00
HACKING.md Squashed commits. 2017-10-17 10:30:21 -04:00
Makefile Makefile: call shell function to get pwd 2017-08-04 23:54:30 +08:00
README.md README.md: Add ZSL links (2) 2017-10-17 10:44:28 -04:00
VERSION VERSION, params: begin 1.7.0 cycle (cannot downgrade) 2017-07-14 18:10:18 +03:00
appveyor.yml travis, appveyor: bump Go to 1.9 stable 2017-08-28 11:15:29 +03:00
circle.yml circleci: enable docker based hive testing 2016-07-15 16:07:34 +03:00
interfaces.go all: import "context" instead of "golang.org/x/net/context" 2017-03-22 20:49:15 +01: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
  • Raft-based Consensus - a consensus model for faster blocktimes, transaction finality, and on-demand block creation

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 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).

Demonstrating Privacy

Documentation detailing steps to demonstrate the privacy features of Quorum can be found in quorum-examples/7nodes/README.

Further Reading

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

See also

Third Party Tools/Libraries

The following Quorum-related libraries/applications have been created by Third Parties and as such are not specifically endorsed by J.P. Morgan. A big thanks to the developers for improving the tooling around Quorum!

Contributing

Thank you for your interest in contributing to Quorum!

Quorum is built on open source and we invite you to contribute enhancements. Upon review you will be required to complete a Contributor License Agreement (CLA) before we are able to merge. If you have any questions about the contribution process, please feel free to send an email to quorum_info@jpmorgan.com.

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.