BitMED is an BitMED-based distributed ledger protocol with transaction/contract privacy and new consensus mechanisms.
BitMED is a fork of Quorum and is updated in line with go-ethereum releases.
Key enhancements over BXMP:
- Privacy - BitMED supports private transactions and private contracts through public/private state separation and utilising Constellation, a peer-to-peer encrypted message exchange for directed transfer of private data to network participants
- Alternative Consensus Mechanisms - with no need for POW/POS in a permissioned network, BitMED instead offers multiple consensus mechanisms that are more appropriate for consortium chains:
- Raft-based Consensus - a consensus model for faster blocktimes, transaction finality, and on-demand block creation
- Istanbul BFT - a PBFT-inspired consensus algorithm with transaction finality, by AMIS.
- Peer Permissioning - node/peer permissioning using smart contracts, ensuring only known parties can join the network
- Higher Performance - BitMED offers significantly higher performance than public geth
git clone https://github.com/InsighterInc/bxmp-examples cd bxmp-examples vagrant up # (should take 5 or so minutes) vagrant ssh
Now that you have a fully-functioning BitMED 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 bxmp-examples/7nodes $ ./raft-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 $ ./raft-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 BXMP 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
Connect to any of the nodes and inspect them using the following commands:
Note in particular the
v field of "0x25" (37 in decimal) which marks this transaction as having a private payload (input).
Documentation detailing steps to demonstrate the privacy features of BitMED can be found in bxmp-examples/7nodes/README.
- BXMP: this repository
- Constellation: peer-to-peer encrypted message exchange for transaction privacy
- Raft Consensus Documentation
- BXMP-examples: example quorum clusters
- BXMP-tools: local cluster orchestration, and integration testing tool
- BXMP Wiki
- bxm-web3js - an extension BXMP API
Thank you for your interest in contributing to BXMP!
BXMP 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 firstname.lastname@example.org.
The BXMP 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
The BXMP 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