Open
Conversation
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
This file contains hidden or 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
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 Genesisis 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
prevHashof the initial block with heighth = 0is 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
NodeAcontaining 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