Skip to content

Commit

Permalink
[coopengo_modules/cryptolog] add callback (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
JCavallo authored and nicoe committed Jul 5, 2023
1 parent 9601782 commit 321ee18
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions coopengo_modules/cryptolog/signature.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit 321ee18

Please sign in to comment.