Skip to content

CryptoTypes

Hash256 ⚓︎

Bases: ByteArray

symbolchain.CryptoTypes.Hash256

Represents a 256-bit hash.

__init__(hash256) ⚓︎

symbolchain.CryptoTypes.Hash256.__init__

Creates a hash from bytes or a hex string.

zero() staticmethod ⚓︎

symbolchain.CryptoTypes.Hash256.zero

Creates a zeroed hash.

PrivateKey ⚓︎

Bases: ByteArray

symbolchain.CryptoTypes.PrivateKey

Represents a private key.

__init__(private_key) ⚓︎

symbolchain.CryptoTypes.PrivateKey.__init__

Creates a private key from bytes or a hex string.

random() staticmethod ⚓︎

symbolchain.CryptoTypes.PrivateKey.random

Generates a random private key.

PublicKey ⚓︎

Bases: ByteArray

symbolchain.CryptoTypes.PublicKey

Represents a public key.

__init__(public_key) ⚓︎

symbolchain.CryptoTypes.PublicKey.__init__

Creates a public key from bytes or a hex string.

SharedKey256 ⚓︎

Bases: ByteArray

symbolchain.CryptoTypes.SharedKey256

Represents 256-bit symmetric encryption key.

__init__(key) ⚓︎

symbolchain.CryptoTypes.SharedKey256.__init__

Creates a key from bytes or a hex string.

Signature ⚓︎

Bases: ByteArray

symbolchain.CryptoTypes.Signature

Represents a signature.

__init__(signature) ⚓︎

symbolchain.CryptoTypes.Signature.__init__

Creates a signature from bytes or a hex string.

zero() staticmethod ⚓︎

symbolchain.CryptoTypes.Signature.zero

Creates a zeroed signature.