latest.ipv8.attestation.wallet.caches
Attributes
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. |
Module Contents
- latest.ipv8.attestation.wallet.caches.logger
- 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.NumberCacheCache tied to a hash.
- id_format
- class latest.ipv8.attestation.wallet.caches.PeerCache(request_cache: latest.ipv8.requestcache.RequestCache, prefix: str, mid: bytes, id_format: str)
Bases:
latest.ipv8.requestcache.NumberCacheCache tied to a peer (mid).
- id_format
- class latest.ipv8.attestation.wallet.caches.ReceiveAttestationVerifyCache(community: latest.ipv8.attestation.wallet.community.AttestationCommunity, cache_hash: bytes, id_format: str)
Bases:
HashCachePending attestation transfer, after request for attestation verification.
- class latest.ipv8.attestation.wallet.caches.ReceiveAttestationRequestCache(community: latest.ipv8.attestation.wallet.community.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 latest.ipv8.attestation.wallet.caches.ProvingAttestationCache(community: latest.ipv8.attestation.wallet.community.AttestationCommunity, cache_hash: bytes, id_format: str, public_key: Any | None = None, on_complete: collections.abc.Callable[[bytes, dict], None] = lambda x, y: ...)
Bases:
HashCachePending attestation verification, stores expected relmap, hashed challenges and completion callback.
- hash
- public_key = None
- attestation_callbacks
- class latest.ipv8.attestation.wallet.caches.PendingChallengeCache(community: latest.ipv8.attestation.wallet.community.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 = -1