brainwallet_algo_getter

Module for getting brainwallet algorithms.

class BrainwalletAlgoGetterConst

Bases: object

Class container for brainwallet algorithm getter constants.

ENUM_TO_ALGO: Dict[BrainwalletAlgos, Type[IBrainwalletAlgo]] = {<BrainwalletAlgos.SHA256: 1>: <class 'bip_utils.brainwallet.brainwallet_algo.BrainwalletAlgoSha256'>, <BrainwalletAlgos.DOUBLE_SHA256: 2>: <class 'bip_utils.brainwallet.brainwallet_algo.BrainwalletAlgoDoubleSha256'>, <BrainwalletAlgos.PBKDF2_HMAC_SHA512: 3>: <class 'bip_utils.brainwallet.brainwallet_algo.BrainwalletAlgoPbkdf2HmacSha512'>, <BrainwalletAlgos.SCRYPT: 4>: <class 'bip_utils.brainwallet.brainwallet_algo.BrainwalletAlgoScrypt'>}
class BrainwalletAlgoGetter

Bases: object

Brainwallet algorithm getter class. It allows to get the a specific brainwallet algorithm.

static GetAlgo(algo_type: BrainwalletAlgos) Type[IBrainwalletAlgo]

Get algorithm class.

Parameters:

algo_type (BrainwalletAlgos) – Algorithm type

Returns:

Algorithm class

Return type:

IBrainwalletAlgo class

Raises:

TypeError – If algorithm type is not of a BrainwalletAlgos enumerative