本文整理汇总了Python中dbclient.DbClient.getOwnKeyId方法的典型用法代码示例。如果您正苦于以下问题:Python DbClient.getOwnKeyId方法的具体用法?Python DbClient.getOwnKeyId怎么用?Python DbClient.getOwnKeyId使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类dbclient.DbClient
的用法示例。
在下文中一共展示了DbClient.getOwnKeyId方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: _createPayload
# 需要导入模块: from dbclient import DbClient [as 别名]
# 或者: from dbclient.DbClient import getOwnKeyId [as 别名]
def _createPayload(self, recipientKeyId):
'''Create the encrypted output for the given recipient'''
total = self._createUnencryptedPayload()
# Encrypt and sign the result
ownKeyId = DbClient.getOwnKeyId()
return CryptoClient.encryptAndSign(total, recipientKeyId, ownKeyId)
示例2: _makeFingerprintChecker
# 需要导入模块: from dbclient import DbClient [as 别名]
# 或者: from dbclient.DbClient import getOwnKeyId [as 别名]
def _makeFingerprintChecker(self, userid):
'''Use the given userid to make a FingerprintChecker between me and them'''
person = DbClient.getProfile(userid, False)
ownFingerprint = CryptoClient.getFingerprint(DbClient.getOwnKeyId())
usrFingerprint = CryptoClient.getFingerprint(person['keyid'])
return FingerprintChecker(ownFingerprint, usrFingerprint)