Skip to content

CryptoTypes

Hash256 ⚓︎

Bases: ByteArray

Hash256

Represents a 256-bit hash.

__init__(hash256) ⚓︎

Hash256.__init__

Creates a hash from bytes or a hex string.

zero() staticmethod ⚓︎

Hash256.zero

Creates a zeroed hash.

PrivateKey ⚓︎

Bases: ByteArray

PrivateKey

Represents a private key.

__init__(private_key) ⚓︎

PrivateKey.__init__

Creates a private key from bytes or a hex string.

random() staticmethod ⚓︎

PrivateKey.random

Generates a random private key.

PublicKey ⚓︎

Bases: ByteArray

PublicKey

Represents a public key.

__init__(public_key) ⚓︎

PublicKey.__init__

Creates a public key from bytes or a hex string.

SharedKey256 ⚓︎

Bases: ByteArray

SharedKey256

Represents 256-bit symmetric encryption key.

__init__(key) ⚓︎

SharedKey256.__init__

Creates a key from bytes or a hex string.

Signature ⚓︎

Bases: ByteArray

Signature

Represents a signature.

__init__(signature) ⚓︎

Signature.__init__

Creates a signature from bytes or a hex string.

zero() staticmethod ⚓︎

Signature.zero

Creates a zeroed signature.