aries_cloudagent.messaging.jsonld package¶
Submodules¶
aries_cloudagent.messaging.jsonld.create_verify_data module¶
Contains the functions needed to produce and verify a json-ld signature.
This file was ported from https://github.com/transmute-industries/Ed25519Signature2018/blob/master/src/createVerifyData/index.js
aries_cloudagent.messaging.jsonld.credential module¶
Sign and verify functions for json-ld based credentials.
-
aries_cloudagent.messaging.jsonld.credential.create_jws(encoded_header, verify_data)[source]¶ Compose JWS.
-
aries_cloudagent.messaging.jsonld.credential.did_key(verkey: str) → str[source]¶ Qualify verkey into DID key if need be.
-
aries_cloudagent.messaging.jsonld.credential.jws_sign(verify_data, verkey, wallet)[source]¶ Sign JWS.
-
aries_cloudagent.messaging.jsonld.credential.jws_verify(verify_data, signature, public_key, wallet)[source]¶ Detatched jws verify handling.
-
aries_cloudagent.messaging.jsonld.credential.sign_credential(credential, signature_options, verkey, wallet)[source]¶ Sign Credential.
aries_cloudagent.messaging.jsonld.routes module¶
jsonld admin routes.
-
class
aries_cloudagent.messaging.jsonld.routes.SignRequestSchema(*args, **kwargs)[source]¶ Bases:
aries_cloudagent.messaging.models.openapi.OpenAPISchemaRequest schema for signing a jsonld doc.
-
doc= <fields.Dict(default=<marshmallow.missing>, attribute=None, validate=None, required=True, load_only=False, dump_only=False, missing=<marshmallow.missing>, allow_none=False, error_messages={'required': 'Missing data for required field.', 'null': 'Field may not be null.', 'validator_failed': 'Invalid value.', 'invalid': 'Not a valid mapping type.'})>¶
-
verkey= <fields.String(default=<marshmallow.missing>, attribute=None, validate=None, required=True, load_only=False, dump_only=False, missing=<marshmallow.missing>, allow_none=False, error_messages={'required': 'Missing data for required field.', 'null': 'Field may not be null.', 'validator_failed': 'Invalid value.', 'invalid': 'Not a valid string.', 'invalid_utf8': 'Not a valid utf-8 string.'})>¶
-
-
class
aries_cloudagent.messaging.jsonld.routes.SignResponseSchema(*args, **kwargs)[source]¶ Bases:
aries_cloudagent.messaging.models.openapi.OpenAPISchemaResponse schema for a signed jsonld doc.
-
signed_doc= <fields.Dict(default=<marshmallow.missing>, attribute=None, validate=None, required=True, load_only=False, dump_only=False, missing=<marshmallow.missing>, allow_none=False, error_messages={'required': 'Missing data for required field.', 'null': 'Field may not be null.', 'validator_failed': 'Invalid value.', 'invalid': 'Not a valid mapping type.'})>¶
-
-
class
aries_cloudagent.messaging.jsonld.routes.VerifyRequestSchema(*args, **kwargs)[source]¶ Bases:
aries_cloudagent.messaging.models.openapi.OpenAPISchemaRequest schema for signing a jsonld doc.
-
doc= <fields.Dict(default=<marshmallow.missing>, attribute=None, validate=None, required=True, load_only=False, dump_only=False, missing=<marshmallow.missing>, allow_none=False, error_messages={'required': 'Missing data for required field.', 'null': 'Field may not be null.', 'validator_failed': 'Invalid value.', 'invalid': 'Not a valid mapping type.'})>¶
-
verkey= <fields.String(default=<marshmallow.missing>, attribute=None, validate=None, required=True, load_only=False, dump_only=False, missing=<marshmallow.missing>, allow_none=False, error_messages={'required': 'Missing data for required field.', 'null': 'Field may not be null.', 'validator_failed': 'Invalid value.', 'invalid': 'Not a valid string.', 'invalid_utf8': 'Not a valid utf-8 string.'})>¶
-
-
class
aries_cloudagent.messaging.jsonld.routes.VerifyResponseSchema(*args, **kwargs)[source]¶ Bases:
aries_cloudagent.messaging.models.openapi.OpenAPISchemaResponse schema for verification result.
-
valid= <fields.Boolean(default=<marshmallow.missing>, attribute=None, validate=None, required=True, load_only=False, dump_only=False, missing=<marshmallow.missing>, allow_none=False, error_messages={'required': 'Missing data for required field.', 'null': 'Field may not be null.', 'validator_failed': 'Invalid value.', 'invalid': 'Not a valid boolean.'})>¶
-
-
aries_cloudagent.messaging.jsonld.routes.register(app: <sphinx.ext.autodoc.importer._MockObject object at 0x7f760ddd9c50>)[source]¶ Register routes.