helium_py.crypto.mnemonic.Mnemonic

class helium_py.crypto.mnemonic.Mnemonic(words: List[str])[source]

Bases: object

Mnemonic class with conversion to/from entropy.

__init__(words: List[str])[source]

Initialize Mnemonic class with list of words.

Methods

__init__(words)

Initialize Mnemonic class with list of words.

create([length])

Return a randomly generated Mnemonic of the provided length.

from_entropy(entropy)

Return a Mnemonic generated from provided entropy.

to_entropy()

Return entropy bytes generated from provided Mnemonic.

Attributes

words

static create(length: int = 12) Mnemonic[source]

Return a randomly generated Mnemonic of the provided length.

static from_entropy(entropy: bytes) Mnemonic[source]

Return a Mnemonic generated from provided entropy.

to_entropy() bytes[source]

Return entropy bytes generated from provided Mnemonic.