Storing metadata hash of length more than 32

Hi Everyone,

I was trying to build an application using assets feature. But one of the function I would like to use is to store a long array in the metadata hash field but it has to be base64 encoded but with a restriction of length 32. But I find it difficult cause the length is always more. Any ideas how to go about with the type conversion so I could place the data there and get it back.


Hi @anupcoded,

One solution is to store your full metadata somewhere else, and just provide a URL to the full metadata and a hash of the metadata in the actual asset metadata.

You may consider using IPFS to store the full metadata.
If the full metadata is shorter than 512 bytes, you may also use the note field of another transaction (and point to this transaction in the asset metadata).