-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make the Bazo Blockchain truly permissionless #26
Open
rmnblm
wants to merge
44
commits into
master
Choose a base branch
from
make-permissionless
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
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
13e9ea3
to
2d79f6c
Compare
No need to have AccTx because the blockchain is now permissionless, new contracts can be deployed by sending a ContractTx to the network.
mchetelat
approved these changes
Jan 21, 2019
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hey there Bazorians, Bazonians, Bazingos or whatever we call ourselves 👋
I've been working hard the past week to make this PR reality, but here it is:
This PR will make the Bazo blockchain truly permissionless.
What does truly permissionless mean?
Well, a (single) root account still exists (I didn't say truly decentralized, but truly permissionless) but is only able to change configurations in the network (by sending a
ConfigTx
). What's new is that accounts now can simply join the network. No need for a root to create an account in the network.Furthermore, if user A wants to transfer coins to user B that does not exist yet, the account will be created automatically. Caution: You can now send coins to accounts where nobody is in possession of the private key (yet).
Starting a miner also has become even more simpler because miners do not need the wallet address or the commitment key of the root. Instead, a new
struct Genesis
is being introduced. This struct contains the root's wallet address and commitment public key.The genesis is created by the first miner of the network. The previous hash
prevHash
of the initial block with heighth = 0
is the hash of the genesis.Once a second miner joins the network, it makes a genesis request to a random peer which then responds with the genesis.
Further improvements
The CLI now is even easier than before, you can start a miner A (as root) with the following command:
This will create a directory
NodeA
containing all required keys and databases.Starting a second miner B is also easy:
Note that miner B still must have sufficient funds and be part of the validator set in order to start mining. You can read more about the setup of two miners here.
Other mentionable changes:
Enjoy black friday and see you next week at the Bazo workshop 🖤
Roman