2.12.ipv8.attestation.wallet.caches
Module Contents
Classes
- class 2.12.ipv8.attestation.wallet.caches.HashCache(request_cache: 2.12.ipv8.requestcache.RequestCache, prefix: str, cache_hash: bytes, id_format: str)
Bases:
2.12.ipv8.requestcache.NumberCache
Cache tied to a hash.
- class 2.12.ipv8.attestation.wallet.caches.PeerCache(request_cache: 2.12.ipv8.requestcache.RequestCache, prefix: str, mid: bytes, id_format: str)
Bases:
2.12.ipv8.requestcache.NumberCache
Cache tied to a peer (mid).
- class 2.12.ipv8.attestation.wallet.caches.ReceiveAttestationVerifyCache(community: 2.12.ipv8.types.AttestationCommunity, cache_hash: bytes, id_format: str)
Bases:
HashCache
Pending attestation transfer, after request for attestation verification.
- class 2.12.ipv8.attestation.wallet.caches.ReceiveAttestationRequestCache(community: 2.12.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 2.12.ipv8.attestation.wallet.caches.ProvingAttestationCache(community: 2.12.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.