diff --git a/coopengo_modules/cryptolog/signature.py b/coopengo_modules/cryptolog/signature.py index a7884e2e7d7..840311f6b2f 100644 --- a/coopengo_modules/cryptolog/signature.py +++ b/coopengo_modules/cryptolog/signature.py @@ -92,6 +92,22 @@ def signature_position(cls, conf): res['signerIndex'] = 0 return res + @classmethod + def cryptolog_call_back(cls, params): + cls.call_back('cryptolog', params['id'], params['signer'], + params['status']) + + @classmethod + def cryptolog_transcode_status(cls): + return { + 0: 'ready', + 1: 'expired', + 2: 'completed', + 3: 'canceled', + 4: 'failed', + 5: 'pending_validation', + } + class SignatureCredential(metaclass=PoolMeta): __name__ = 'document.signature.credential'