HelloZeroNet / Documentation

ZeroNet Documentation
https://zeronet.readthedocs.org/
GNU General Public License v2.0
74 stars 107 forks source link

How to format JSON file before signing it? #74

Closed MuxZeroNet closed 6 years ago

MuxZeroNet commented 6 years ago

What deterministic algorithms/formatting parameters are used to format a JSON file for signing?

HelloZeroNet commented 6 years ago

I have added specification on the dumped json format: https://zeronet.readthedocs.io/en/latest/site_development/content_json/#signs

Unfortunately I have not found any offical specification on standard Bitcoin message signature format, so I added the PR's link.

MuxZeroNet commented 6 years ago

Electrum is especially infamous for not following the conventions the rest of the crypto community agreed on. It has a different serialization format, and adds a message-dependent magic header to the signed message. In the documentation, you may need to note this inconsistency.

HelloZeroNet commented 6 years ago

I have added some corrections, please feel free to edit it if you think it need some more changes: https://zeronet.readthedocs.io/en/latest/site_development/content_json/#signs