Closed rllola closed 5 years ago
The actual code we use:
del(new_content["signs"]) # Delete old signs
sign_content = json.dumps(new_content, sort_keys=True)
sign = btctools.ecdsa_sign(sign_content, privatekey)
new_content["signs"] = {}
new_content["signs"][privatekey_address] = sign
It does not includes the cryptography part, but I think we don't have to go that deep
In the documentation there is a section that explain everything we need to know on
content.json
. It has a subsection callsigns
.See (https://github.com/HelloZeroNet/Documentation/blob/master/docs/en/site_development/content_json.md)
A code snippet in python showing how it is working would be nice to help people understand how it works.