serde-hex icon indicating copy to clipboard operation
serde-hex copied to clipboard

Only transform arrays to hex when using human-readable serialisers?

Open fadedbee opened this issue 3 years ago • 2 comments

This create is just what I need for use with serde_json.

Unfortunately, it doubles the length of all arrays when used with bincode, etc.

Is there a way of ignoring serde-hex for bincode serialisation, while keeping it for serde_json?

fadedbee avatar Apr 18 '21 05:04 fadedbee

https://stackoverflow.com/questions/67145666/make-serde-only-produce-hex-strings-for-human-readable-serialiser

fadedbee avatar Apr 18 '21 06:04 fadedbee

I notice that secp256k1 uses d.is_human_readable().

fadedbee avatar Apr 18 '21 06:04 fadedbee