Пример #1
0
 def suggest_brain(self):
     bk = BrainKey()
     b = dict()
     b['brainkey'] = bk.get_brainkey()
     b['privkey'] = bk.get_private()
     b['pubkey'] = bk.get_public_key()
     return b
Пример #2
0
 def keygen(self, brain='', seq=0):
     bk = BrainKey(brainkey=brain, sequence=seq)
     b = dict()
     b['brainkey'] = bk.get_brainkey()
     b['privkey'] = bk.get_private()
     b['pubkey'] = bk.get_public_key()
     return b