Open Aareon opened 6 years ago
Hi, which JSON? Default implementation of JSON does not support unsorted keys?
@hclivess right now the current usage creates an unsorted string containing the JSON. With sort_keys
enabled, the JSON will be sorted alphabetically by key. This is generally preferred as unsorted JSON doesn't work well in cryptocurrency. In this case, it may work fine, but as a future note, I would suggest sorting keys.
https://github.com/bismuthfoundation/masternodes/blob/eecc38559d471ee4a4011a59d576948119dad8d1/modules/poscrypto.py#L208