latest.ipv8.attestation.wallet.caches
Module Contents
Classes
Cache tied to a hash. |
|
Cache tied to a peer (mid). |
|
Pending attestation transfer, after request for attestation verification. |
|
Pending attestation transfer, after request for a new attestation. |
|
Pending attestation verification, stores expected relmap, hashed challenges and completion callback. |
|
Single pending challenge for a ProvingAttestationCache. |
- class latest.ipv8.attestation.wallet.caches.HashCache(request_cache: latest.ipv8.requestcache.RequestCache, prefix: str, cache_hash: bytes, id_format: str)
Bases:
latest.ipv8.requestcache.NumberCache
Cache tied to a hash.
- class latest.ipv8.attestation.wallet.caches.PeerCache(request_cache: latest.ipv8.requestcache.RequestCache, prefix: str, mid: bytes, id_format: str)
Bases:
latest.ipv8.requestcache.NumberCache
Cache tied to a peer (mid).
- class latest.ipv8.attestation.wallet.caches.ReceiveAttestationVerifyCache(community: latest.ipv8.types.AttestationCommunity, cache_hash: bytes, id_format: str)
Bases:
HashCache
Pending attestation transfer, after request for attestation verification.
- class latest.ipv8.attestation.wallet.caches.ReceiveAttestationRequestCache(community: latest.ipv8.types.AttestationCommunity, mid: bytes, key: Any, name: str, id_format: str)
Bases:
PeerCache
Pending attestation transfer, after request for a new attestation. Stores one-time key for this attribute attestation.
- class latest.ipv8.attestation.wallet.caches.ProvingAttestationCache(community: latest.ipv8.types.AttestationCommunity, cache_hash: bytes, id_format: str, public_key: Any | None = None, on_complete: Callable[[bytes, dict], None] = lambda x, y: ...)
Bases:
HashCache
Pending attestation verification, stores expected relmap, hashed challenges and completion callback.