ibrainwallet_algo
Module for implementing algorithms for brainwallet generation.
- class IBrainwalletAlgo
Bases:
ABC
Interface for an algorithm that computes a private key for a brainwallet. It can be inherited to implement custom algorithms.
- abstract static ComputePrivateKey(passphrase: str, **kwargs: Any) bytes
Compute the private key from the specified passphrase.
- Parameters:
passphrase (str) – Passphrase
**kwargs – Arbitrary arguments depending on the algorithm
- Returns:
Private key bytes
- Return type:
bytes