Post
Topic
Board Announcements (Altcoins)
Re: [ANN] Datacoin - Censorship-Free Data Storage
by
gjhiggins
on 09/01/2021, 00:20:24 UTC
It only works with uncompressed data right now but I may be able to develop the code so that it handles compressed data.
It now uncompresses gzipped/zipped data, detects the mimetype of the uncompressed content and saves that uncompressed content as a file in the OS' temporary file area with the relevant file extension to allow QDesktopservices to call the appropriate viewer. So now you can zip/gzip your standalone web pages, saving a few DTC.

I've also fixed a small interface bug introduced in the 0.15.99 client here src/wallet/rpcwallet.cpp#L532. The 0.15.99 implementation improperly checks the size of the base64-encoded data against MAX_TX_DATA_SIZE and I'm afraid I transcribed the error into the 0.16.3 client (src/wallet/rpcwallet.cpp#L560).

A correct implementation would check the length of the data after base64-decoding it - the base64 encoding is just a transport mechanism for ferrying the binary data to be stored through the RPC interface - although in this instance, the data length check is actually performed later, at the stage where the transaction is being generated, so the improper check is actually redundant and I have removed it: src/wallet/rpcwallet.cpp#L564

I've refreshed the Windows, OS X and Linux binaries for the alpha release https://github.com/gjhiggins/datacoin/releases/tag/alpha.

If you're on Linux and want to compile your own binaries, git clone https://github.com/gjhiggins/datacoin.git will get you this latest source.

Cheers

Graham