{"type":"rich","version":"1.0","provider_name":"Transistor","provider_url":"https://transistor.fm","author_name":"Web3 Tech Brief By HackerNoon","title":"Your Ledger Stores Balances. I Built One That Stores Intentions.","html":"<iframe width=\"100%\" height=\"180\" frameborder=\"no\" scrolling=\"no\" seamless src=\"https://share.transistor.fm/e/b8e87906\"></iframe>","width":"100%","height":180,"duration":984,"description":"\n        This story was originally published on HackerNoon at: https://hackernoon.com/your-ledger-stores-balances-i-built-one-that-stores-intentions.\nA blockchain ledger records who owns what. I built one that records what each unit was given for, as a consensus rule, with spending gated by on-chain proof\nCheck more stories related to web3 at: https://hackernoon.com/c/web3.\n            You can also check exclusive content about #blockchain, #web3, #formal-verification, #distributed-systems, #smart-contracts, #fintech, #protocol-design, #philanthropy,  and more.\nThis story was written by: @whysasha. Learn more about this writer by checking @whysasha's about page,\n            and for more stories, please visit hackernoon.com.\nTL;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.\n        \n        ","thumbnail_url":"https://img.transistorcdn.com/eO2Jn0gxT_H9qDuuD0uleszE2n40sbZ-1T2r0zOcj9c/rs:fill:0:0:1/w:400/h:400/q:60/mb:500000/aHR0cHM6Ly9pbWct/dXBsb2FkLXByb2R1/Y3Rpb24udHJhbnNp/c3Rvci5mbS9zaG93/LzQxMTY4LzE2ODMz/MTU4ODQtYXJ0d29y/ay5qcGc.webp","thumbnail_width":300,"thumbnail_height":300}