latest.ipv8.attestation.wallet.primitives.structs
Module Contents
Classes
A public key for Boneh et al.'s cryptosystem. |
|
A private key for Boneh et al.'s cryptosystem. |
Functions
|
Serialize an integer. |
|
Unserialize an integer from a str. |
|
Serialize a pair of two integers. |
|
Unserialize a pair of two integers. |
- latest.ipv8.attestation.wallet.primitives.structs.iunpack(s: bytes) tuple[int, bytes]
Unserialize an integer from a str.
- latest.ipv8.attestation.wallet.primitives.structs.pack_pair(a: int, b: int) bytes
Serialize a pair of two integers.
- latest.ipv8.attestation.wallet.primitives.structs.unpack_pair(s: bytes) tuple[int, int, bytes]
Unserialize a pair of two integers.
- class latest.ipv8.attestation.wallet.primitives.structs.BonehPublicKey(p: int, g: latest.ipv8.attestation.wallet.primitives.value.FP2Value, h: latest.ipv8.attestation.wallet.primitives.value.FP2Value)
A public key for Boneh et al.’s cryptosystem.
- FIELDS = 5
- class latest.ipv8.attestation.wallet.primitives.structs.BonehPrivateKey(p: int, g: latest.ipv8.attestation.wallet.primitives.value.FP2Value, h: latest.ipv8.attestation.wallet.primitives.value.FP2Value, n: int, t1: int)
Bases:
BonehPublicKey
A private key for Boneh et al.’s cryptosystem.
- FIELDS = 7
- public_key() BonehPublicKey
Strip out the private information.