2.13.ipv8.attestation.wallet.bonehexact.attestation
Module Contents
Functions
Attributes
- 2.13.ipv8.attestation.wallet.bonehexact.attestation.multithread_update_lock
- 2.13.ipv8.attestation.wallet.bonehexact.attestation.generate_modular_additive_inverse(p: int, n: int) list[int]
Generate a group of size n which is its own modular additive inverse modulo p + 1.
- 2.13.ipv8.attestation.wallet.bonehexact.attestation.attest(PK: 2.13.ipv8.attestation.wallet.primitives.structs.BonehPublicKey, value: int, bitspace: int) 2.13.ipv8.attestation.wallet.bonehexact.structs.BonehAttestation
Create an attestation for a public key’s value lying within a certain bitspace.
- 2.13.ipv8.attestation.wallet.bonehexact.attestation.attest_sha512(PK: 2.13.ipv8.attestation.wallet.primitives.structs.BonehPublicKey, value: bytes) 2.13.ipv8.attestation.wallet.bonehexact.structs.BonehAttestation
Create an attestation for a value using a SHA512 hash.
- 2.13.ipv8.attestation.wallet.bonehexact.attestation.binary_relativity_sha512(value: bytes) dict[int, int]
Create the inter-bitpair relativity map of a value using the SHA512 hash.
- 2.13.ipv8.attestation.wallet.bonehexact.attestation.attest_sha256(PK: 2.13.ipv8.attestation.wallet.primitives.structs.BonehPublicKey, value: bytes) 2.13.ipv8.attestation.wallet.bonehexact.structs.BonehAttestation
Create an attestation for a value using a SHA256 hash.
- 2.13.ipv8.attestation.wallet.bonehexact.attestation.binary_relativity_sha256(value: bytes) dict[int, int]
Create the inter-bitpair relativity map of a value using the SHA256 hash.
- 2.13.ipv8.attestation.wallet.bonehexact.attestation.attest_sha256_4(PK: 2.13.ipv8.attestation.wallet.primitives.structs.BonehPublicKey, value: bytes) 2.13.ipv8.attestation.wallet.bonehexact.structs.BonehAttestation
Create an attestation for a value using a SHA256 4 byte hash.
- 2.13.ipv8.attestation.wallet.bonehexact.attestation.binary_relativity_sha256_4(value: bytes) dict[int, int]
Create the inter-bitpair relativity map of a value using the SHA256 4 byte hash.
- 2.13.ipv8.attestation.wallet.bonehexact.attestation.create_empty_relativity_map() dict[int, int]
Construct a map of possible challenge responses.
- 2.13.ipv8.attestation.wallet.bonehexact.attestation.binary_relativity(value: int, bitspace: int) dict[int, int]
Create the inter-bitpair relativity map of a value.
- 2.13.ipv8.attestation.wallet.bonehexact.attestation.binary_relativity_match(expected: dict[int, int], value: dict[int, int]) float
Get the matching percentage between relativity maps. Mismatches result in 0.0.
- 2.13.ipv8.attestation.wallet.bonehexact.attestation.binary_relativity_certainty(expected: dict[int, int], value: dict[int, int]) float
Give the chance of a current relativity map being the expected one.
- 2.13.ipv8.attestation.wallet.bonehexact.attestation.create_challenge(PK: 2.13.ipv8.attestation.wallet.primitives.structs.BonehPublicKey, bitpair: 2.13.ipv8.attestation.wallet.bonehexact.structs.BitPairAttestation) 2.13.ipv8.attestation.wallet.primitives.value.FP2Value
Create a challenge for a bitpair attestation of a certain public key.
- 2.13.ipv8.attestation.wallet.bonehexact.attestation.create_honesty_check(PK: 2.13.ipv8.attestation.wallet.primitives.structs.BonehPublicKey, value: int) 2.13.ipv8.attestation.wallet.primitives.value.FP2Value
Create a honesty check challenge.
- 2.13.ipv8.attestation.wallet.bonehexact.attestation.create_challenge_response_from_pair(SK: 2.13.ipv8.attestation.wallet.primitives.structs.BonehPrivateKey, pair: tuple[int, int] | tuple[int, int, bytes]) int
Respond to a bitpair challenge.
- 2.13.ipv8.attestation.wallet.bonehexact.attestation.create_challenge_response(SK: 2.13.ipv8.attestation.wallet.primitives.structs.BonehPrivateKey, challenge: 2.13.ipv8.attestation.wallet.primitives.value.FP2Value) int
Respond to a bitpair challenge.