Function ruma_signatures::sign_json
source · Expand description
Signs an arbitrary JSON object.
Parameters
- key_pair: A cryptographic key pair used to sign the JSON.
- value: A JSON object to be signed according to the Matrix specification.
Errors
Returns an error if the JSON value is not a JSON object.