latest.ipv8.attestation.wallet.irmaexact.algorithm
Module Contents
Classes
IPv8 wrapper for IRMA-based attestations. |
|
We don't use an IPv8 key for this algorithm. |
|
IPv8 wrapper around the IRMA business logic. |
- class latest.ipv8.attestation.wallet.irmaexact.algorithm.IRMAAttestation(sign_date: int, proofd: latest.ipv8.attestation.wallet.irmaexact.gabi.proofs.ProofD, z: int | None = None)
Bases:
latest.ipv8.attestation.identity_formats.Attestation
IPv8 wrapper for IRMA-based attestations.
- classmethod unserialize(s: bytes, id_format: str) IRMAAttestation
Read an attestation from its serialized form.
- classmethod unserialize_private(SK: None, s: bytes, id_format: str) IRMAAttestation
Read the secret part of an attestation from its serialized form.
- class latest.ipv8.attestation.wallet.irmaexact.algorithm.KeyStub
We don’t use an IPv8 key for this algorithm.
- class latest.ipv8.attestation.wallet.irmaexact.algorithm.IRMAExactAlgorithm(id_format: str, formats: dict[str, dict[str, Any]])
Bases:
latest.ipv8.attestation.identity_formats.IdentityAlgorithm
IPv8 wrapper around the IRMA business logic.
- get_attestation_class() type[IRMAAttestation]
Get our class.
- certainty(value: bytes, aggregate: dict) float
Get the certainty that the given value is equal to the attestation in the aggregate.
- create_challenges(PK: KeyStub, attestation: IRMAAttestation) list[bytes]
Generate the raw messages to be sent over the Internet as challenges.
- create_challenge_response(SK: KeyStub, attestation: IRMAAttestation, challenge: bytes) bytes
Create a response to a given challenge to our attestation.
- create_certainty_aggregate(attestation: IRMAAttestation | None) dict
Create the aggregation dictionary (just one key with the attestation).