3.0.ipv8.attestation.wallet.bonehexact.structs ============================================== .. py:module:: 3.0.ipv8.attestation.wallet.bonehexact.structs Classes ------- .. autoapisummary:: 3.0.ipv8.attestation.wallet.bonehexact.structs.BitPairAttestation 3.0.ipv8.attestation.wallet.bonehexact.structs.BonehAttestation Module Contents --------------- .. py:class:: BitPairAttestation(a: 3.0.ipv8.attestation.wallet.primitives.value.FP2Value, b: 3.0.ipv8.attestation.wallet.primitives.value.FP2Value, complement: 3.0.ipv8.attestation.wallet.primitives.value.FP2Value) An attestation of a single bitpair of a larger Attestation. .. py:attribute:: a .. py:attribute:: b .. py:attribute:: complement .. py:method:: compress() -> 3.0.ipv8.attestation.wallet.primitives.value.FP2Value Compress this attestation. .. py:method:: serialize() -> bytes Convert the attestation to bytes. .. py:method:: unserialize(s: bytes, p: int) -> typing_extensions.Self :classmethod: Unserialize using a pre-known modulus p. .. py:class:: BonehAttestation(PK: 3.0.ipv8.attestation.wallet.primitives.structs.BonehPublicKey, bitpairs: list[BitPairAttestation], id_format: str | None = None) Bases: :py:obj:`3.0.ipv8.attestation.identity_formats.Attestation` An attestation for a public key of a value consisting of multiple bitpairs. .. py:attribute:: bitpairs .. py:attribute:: PK .. py:attribute:: id_format .. py:method:: serialize() -> bytes Serialize this attestation to bytes. .. py:method:: serialize_private(PK: 3.0.ipv8.attestation.wallet.primitives.structs.BonehPublicKey) -> bytes Serialize the private part of this attestation. .. py:method:: unserialize(s: bytes, id_format: str | None = None) -> typing_extensions.Self :classmethod: Unserialize the public format of this attestation. .. py:method:: unserialize_private(sk: 3.0.ipv8.attestation.wallet.primitives.structs.BonehPrivateKey, s: bytes, id_format: str | None = None) -> typing_extensions.Self :classmethod: Unserialize the private format of this attestation.