I'm not sure if my question is related to the source code, because I'm asking for something general- guarantee that the data can only be changed by the code itsself. But here you go:
This is my current Ethereum Cryptocontract. It simply has a few structs for members, pools (groups of members) and votes (to accept / decline a proposed change).. Generally the balance of each member in each pool can be changed as time passes, and each change needs to be accepted trough voting to take effect.
The contract has access control on multiple levels (who is allowed to call which method; lines 151-169) and fires events in the blockchain for each data change (lines 5-32).
Lines 171 - 277 are CRUD methods for the structs.
Lines 280-357 are for liquid democracy and voting on proposed changes.
Lines 359-511 are for balance changes of a pool's members. Each member has a balance of tokens / slices / money in each pool, which are changed overtime according to a few rules.
How can this be implemented using Blockstack? I really need the guarantee that this system is autonomous and nobody can break it, even if he wants to.
Ps: when will this documentation for dapp developers be out?