fspmarshall / serde-hex

Rust crate for easy serialization/deserialization of hexadecimal values.
Other
29 stars 9 forks source link

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

Open fadedbee opened 3 years ago

fadedbee commented 3 years ago

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 commented 3 years ago

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

fadedbee commented 3 years ago

I notice that secp256k1 uses d.is_human_readable().