get_keys¶
-
static
Key.
get_keys
(account: str, password: str) → Dict[str, Union[str, Dict[str, str]]][source]¶ Generates a dictionary containing public/private keys for each role of an account (e.g.
active
) based on the givenaccount
(username) andpassword
Example:
>>> acc = Key.get_keys('someguy123', 'example') >>> acc['private']['active'] 5KME2a7DBdGBdpAwLC4tGmJ8mSz9HgZkcMtKc8rkADn6cLZyvPc >>> acc['public']['active'] GLS7LjcmXF4mf9z3MNgcceSvMG8oezEtGhcL4yAXpJWFZxdX47ET7
- Parameters
- Return dict acc_keys
dict(login:str, password:str, private:Dict[str,str], public:Dict[str,str])
First layer of returned dict:
dict(login:str, password:str, private:Dict[str,str], public:Dict[str,str])
Second layer (dict keys
private
andpublic
):dict(posting:str, active:str, memo:str, owner:str)