3 ms·
hey geoah, Thanks a bunch for taking the time to write. I am referring to minimum viable product here. I really tried to avoid using the term blockchain for jus
by samternent 6y ago
hey geoah,
Thanks a bunch for taking the time to write. I am referring to minimum viable product here.
I really tried to avoid using the term blockchain for just that reason :)
And you're right, this runs a blockchain inspired Merkle tree to handle transactions and we deal with consensus in the standard blockchain way, longest chain wins.
It's a custom bit of code, a functional implementation of a blockchain that runs in the browser using the Web Crypto API.
That merkle tree is where the file based approach comes in. We export the JSON representation of the tree (can be encrypted down to the authentication module), which can be downloaded from the browser. Then that file becomes our source of truth, IndexedDB knows how to read the data, and our frontend plugs into a reactive fetcher on top of that.
So we write to the tree and read from the DB.
Now the file is saved, it can be shared and that's down to the user to chose how to do that. I don't have anything extra built for that at the moment, but I've ran a working prototype of a simple https://dat.foundation/ https://dat.foundation/ implementation with pretty good success for sharing.
I've also got in mind how it could work with services like dropbox and cloud drives as file storage. I figure as long as I'm not storing anything (I don't run a server, DB or cloud functions, just a static vercel site) then it's decentralized. Being decentralized to me is about providing just an interface, then allow the user to plug in a suitable storage provider
(ps. Sorry, I did post up here but then I removed it - that's so much for taking the time to reply)
- geoah 6y agoThanks for the reply, the file-based stuff makes more sense now, I kinda understand where you wanna go with this. A way to keep up to date with project updates would be nice. :)