functionland / sugarfunge-node

The SugarFunge blockchain powers the SugarFunge Protocol. A protocol for creating privately-owned economies without the complexity of building and maintaining their own blockchain infrastructure. Empowering businesses with digital and physical assets with minting, crafting and trading mechanics.
Other
0 stars 1 forks source link

[priority 5] We need a mechanism to verify payments for the data users upload #33

Open ehsan6sha opened 10 months ago

ehsan6sha commented 10 months ago

One major part that I think all missed together is how is someone who want to upload a file pays? It should be managed by blockchain as the payment is made but blockchain is the payment mechanism. If we implement this on any other layer (like protocol) then it is prone to misuse. The idea we initially discussed was they pay to the treasury, and then get an allowance. But that allowance should be stored somewhere on the chain that storage providers can query and verify. So on the chain there should be something like (account: 123, allowance: 1000 Bytes, used: 100 Bytes) that everyone can query. This is not implemented and also it requires that manifest/available endpoint also shows the account like manifest/all endpoint which is not the case right now. At least the payment to treasury for an account should be recorded and queryable on the chain in order for the process to work => Victor/Alex: to discuss for mainnet