Drops-of-Diamond / diamond_drops

WIP on sharding and Ethereum 2.0 with enshrined-in-consensus data availability and Rust: a fast, safe, concurrent and practical programming language
The Unlicense
57 stars 14 forks source link

Create a sharding manager contract #1

Open jamesray1 opened 6 years ago

jamesray1 commented 6 years ago

The plan is to create a contract in Vyper, which I've started here, based on https://ethresear.ch/t/sharding-phase-1-spec/1407/44 and adapting from https://github.com/ethereum/py-evm/blob/sharding/evm/vm/forks/sharding/contracts/validator_manager.v.py. A contract written in Rust was started, but then stopped due to difficulties with compiling to EVM bytecode.

jamesray1 commented 6 years ago

https://github.com/Drops-of-Diamond/sharding/blob/develop/smc/sharding_manager_contract.v.py

jamesray1 commented 6 years ago

Did some work, then will let @NIC619 complete it as per https://github.com/ethereum/py-evm/issues/452.

jamesray1 commented 6 years ago

I figure it will be easier to understand the SMC by actually writing it, and thus it will be easier to write, use and test interfaces for the SMC. So I will continue working on it.

jamesray1 commented 6 years ago

https://github.com/fubuloubu/pytest-ethereum. https://gitter.im/ethereum/vyper?at=5ac6f3497c3a01610db2319c

jamesray1 commented 6 years ago

https://github.com/ethereum/sharding/issues/76 https://ethresear.ch/t/a-minimal-sharding-protocol-that-may-be-worthwhile-as-a-development-target-now/1650/4

jamesray1 commented 6 years ago

https://github.com/ethereum/sharding/pull/74

jamesray1 commented 6 years ago

I think it's better to let Py-EVM work on the SMC in Vyper. We can review it when they're done.

jamesray1 commented 6 years ago

The above commit fixes issue number 1 in another directory, https://github.com/NitorCreations/license-maintainer/issues/1, not the issue #1 in this directory. So when the above commit is merged into develop this issue will need to be reopened.