cennznet / plug-blockchain

PL^G: a framework for building customised blockchains
GNU General Public License v3.0
11 stars 3 forks source link

Create a `doughnut-registry` runtime module. #44

Open jordy25519 opened 5 years ago

jordy25519 commented 5 years ago

It should be a simple key-value store of hash(doughnut)-> doughnut. It requires a public call which takes a doughnut (<T as system::Trait>::Doughnut) and stores it keyed against it's hash.

This will serve as a base for doughnut storage prototyping and will allow us to try periodisation, revocation, and the like. A more sophisticated storage solution can be designed in parallel as we become more familiar with requirements.