def store_key(self, key):
    kb = KeyBundle()
    kb.do_keys([key])
    key_thumbprint = b64e(kb.keys()[0].thumbprint('SHA-256')).decode('utf8')
    self.thumbprint2key[key_thumbprint] = key
    return key_thumbprint
def store_key(self, key):
    kb = KeyBundle()
    kb.do_keys([key])
    key_thumbprint = b64e(kb.keys()[0].thumbprint('SHA-256')).decode('utf8')
    self.thumbprint2key[key_thumbprint] = key
    return key_thumbprint