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 given account (username) and password

Example:

>>> acc = Key.get_keys('someguy123', 'example')
>>> acc['private']['active']
5KME2a7DBdGBdpAwLC4tGmJ8mSz9HgZkcMtKc8rkADn6cLZyvPc
>>> acc['public']['active']
GLS7LjcmXF4mf9z3MNgcceSvMG8oezEtGhcL4yAXpJWFZxdX47ET7
Parameters
  • account (str) – The username to generate role keys for, e.g. someguy123

  • password (str) – The string password to use for generating the keys

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 and public):

dict(posting:str, active:str, memo:str, owner:str)