latest.ipv8.attestation.wallet.database
Module Contents
Classes
Protocol to detect key-like objects. |
|
Database to store attestations. |
Attributes
- latest.ipv8.attestation.wallet.database.DATABASE_DIRECTORY
- class latest.ipv8.attestation.wallet.database.SecretKeyProtocol
Bases:
typing_extensions.Protocol
Protocol to detect key-like objects.
- public_key() Any
Get the associated public key.
- class latest.ipv8.attestation.wallet.database.AttestationsDB(working_directory: str, db_name: str)
Bases:
latest.ipv8.database.Database
Database to store attestations.
- LATEST_DB_VERSION = 2
- _get(query: str, params: _typeshed.SupportsLenAndGetItem | collections.abc.Mapping[str, Any]) list[bytes]
- get_attestation_by_hash(attestation_hash: bytes) list[bytes]
Retrieve a serialized attestation by hash.
- insert_attestation(attestation: latest.ipv8.attestation.identity_formats.Attestation, attestation_hash: bytes, secret_key: SecretKeyProtocol, id_format: str) None
Insert an attestation into the database.