aionnetwork / aion-unity-poc

Aion Unity Consensus - Proof-of-Concept
GNU General Public License v3.0
0 stars 0 forks source link

staking contract #7

Closed ghost closed 5 years ago

ghost commented 5 years ago

initial staking contract

iamyulong commented 5 years ago

Looks good.

Based on the contract structure, what is' the key offset in the storage for a given staker address staker? Presumably it's something like keccak256(storage_offsest, staker)

This is required when validating a PoS block.