Create account

Ayn Rothbard
2313d · what projects are ya'll working on bch related?
Is there an easy way(java or nodejs library) storing data using op_return. I want to store small images(tiles (own file format)). Goal is an online game
replied 2312d
https://bitdb.network maybe? dont know much about databases
replied 2312d
Can you express the tiles as text or structured data? It's a 220 byte (character) limit. BITBOX node.js library could be a good place to start https://developer.bitcoin.com/bitbox.html
Ayn Rothbard
replied 2312d
thank you very much! I want to store a small bitmap into 220 byte:
2 byte prefix
26 byte meta data(text descr.)
192 byte pic=16x16 pixel and 6 bit color depth
so one can use 64 colors
replied 2312d
Oh nice! https://bitdb.network/ works to read JSON. To write, looks like https://developer.bitcoin.com/bitbox/docs/script.html has encodeNullDataOutput... looking for something easier.