how it works
The "Write" part is handled by the
B:// protocol, which means all B:// files are automatically compatible with C://.
C:// deals only with the referencing part.
Write
: Write with B://, a simple protocol for writing immutable files to Bitcoin
Read
: Read with C://, a content addressed URI scheme for B:// files. The URI is derived from the content.
Instead of using the
B://{{transaction id}}
URI scheme, you use the new
C://{{sha256(content)}}
to store and serve files. An example HTTP implementation:
https://c.bitdb.network/1KuUr2pSJDao97XM8Jsq8zwLS6W1WtFfLg/c/{{SHA256(content)}}
With C://, you can use any Bitcoin file serve provider WITHOUT having to trust them at all, because you can effortlessly verify the authenticity 100% client-side.
All you need to do is compare the URI with the SHA256 of the file itself.