latest.ipv8.attestation.wallet.primitives.attestation

Module Contents

Functions

to_ascii(→ bytes)

Convert any string type to bytes.

sha512_as_int(→ int)

Convert a SHA512 hash to an integer.

sha256_as_int(→ int)

Convert a SHA256 hash to an integer.

sha256_4_as_int(→ int)

Convert a SHA256 4 byte hash to an integer.

latest.ipv8.attestation.wallet.primitives.attestation.to_ascii(value: str | bytes) bytes

Convert any string type to bytes.

latest.ipv8.attestation.wallet.primitives.attestation.sha512_as_int(value: str | bytes) int

Convert a SHA512 hash to an integer.

latest.ipv8.attestation.wallet.primitives.attestation.sha256_as_int(value: str | bytes) int

Convert a SHA256 hash to an integer.

latest.ipv8.attestation.wallet.primitives.attestation.sha256_4_as_int(value: str | bytes) int

Convert a SHA256 4 byte hash to an integer.