NucypherKeyring(account: str, keyring_root: str = None, root_key_path: str = None, pub_root_key_path: str = None, signing_key_path: str = None, pub_signing_key_path: str = None, delegating_key_path: str = None, wallet_path: str = None, tls_key_path: str = None, tls_certificate_path: str = None)¶
Handles keys for a single identity, recognized by account. Warning: This class handles private keys!
generate(password: str, encrypting: bool, wallet: bool, rest: bool, host: str = None, curve: cryptography.hazmat.primitives.asymmetric.ec.EllipticCurve = None, keyring_root: str = None) → nucypher.config.keyring.NucypherKeyring¶
Generates new encrypting, signing, and wallet keys encrypted with the password, respectively saving keyfiles on the local filesystem from default paths, returning the corresponding Keyring instance.
lock() → bool¶
Make efforts to remove references to the cached key data
validate_password(password: str) → List¶
Validate a password and return True or raise an error with a failure reason.
NOTICE: Do not raise inside this function.