Signs JSON objects with ED25519 signatures.
- More than one entity can sign the same object.
- Each entity can sign the object with more than one key making it easier to rotate keys
- ED25519 can be replaced with a different algorithm.
- Unprotected data can be added to the object under the
"unsigned"key.
pip install signedjsonfrom signedjson.key import generate_signing_key, get_verify_key
from signedjson.sign import (
sign_json, verify_signed_json, SignatureVerifyException
)
signing_key = generate_signing_key('zxcvb')
signed_json