oioioi.confirmations.utils
¶
Module Contents¶
Functions¶
|
|
|
Returns pair of data and its signed version which may be used by |
|
grouper(3, 'ABCDEFG', 'x') --> ABC DEF Gxx |
|
|
|
Verifies a signed proof of user's submission and returns proven |
|
Attributes¶
- exception oioioi.confirmations.utils.ProofCorrupted[source]¶
Bases:
ValueError
Inappropriate argument value (of correct type).
- oioioi.confirmations.utils.submission_receipt_proof(submission)[source]¶
Returns pair of data and its signed version which may be used by the user to prove that we received his submission someday.
The returned data are not encrypted, just signed.
- oioioi.confirmations.utils.grouper(n, iterable, fillvalue=None)[source]¶
grouper(3, ‘ABCDEFG’, ‘x’) –> ABC DEF Gxx
- oioioi.confirmations.utils.verify_submission_receipt_proof(proof, source)[source]¶
Verifies a signed proof of user’s submission and returns proven metadata.
:raises
ProofCorrupted
upon failure of any reason.