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