This story was written by: @whysasha. Learn more about this writer by checking @whysasha's about page,
and for more stories, please visit hackernoon.com.
TL;DRIn the account model, a blockchain ledger is a map from Address to Amount. It knows who holds how much and nothing about what the money is for. When money is given for a fixed purpose, that missing field is the whole problem. So I made the state key (Address, Purpose), made non-reassignability a rule of the transition function, and put disbursement behind on-chain verification. Here is how it works, how it differs from ERC-1155 and colored coins, and where it still falls short.
Podden och tillhörande omslagsbild på den här sidan tillhör
HackerNoon. Innehållet i podden är skapat av HackerNoon och inte av,
eller tillsammans med, Poddtoppen.