本文整理匯總了Golang中github.com/keybase/client/go/protocol.UserPlusKeys.Uvv方法的典型用法代碼示例。如果您正苦於以下問題:Golang UserPlusKeys.Uvv方法的具體用法?Golang UserPlusKeys.Uvv怎麽用?Golang UserPlusKeys.Uvv使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類github.com/keybase/client/go/protocol.UserPlusKeys
的用法示例。
在下文中一共展示了UserPlusKeys.Uvv方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Golang代碼示例。
示例1: ExportToUserPlusKeys
func (u *User) ExportToUserPlusKeys(idTime keybase1.Time) keybase1.UserPlusKeys {
ret := keybase1.UserPlusKeys{
Uid: u.GetUID(),
Username: u.GetName(),
}
ckf := u.GetComputedKeyFamily()
if ckf != nil {
ret.DeviceKeys, ret.PGPKeyCount = ckf.ExportDeviceKeys()
ret.RevokedDeviceKeys = ckf.ExportRevokedDeviceKeys()
}
ret.Uvv = u.ExportToVersionVector(idTime)
return ret
}
示例2: ExportToUserPlusKeys
func (u *User) ExportToUserPlusKeys(idTime keybase1.Time) keybase1.UserPlusKeys {
ret := keybase1.UserPlusKeys{
Uid: u.GetUID(),
Username: u.GetName(),
}
ckf := u.GetComputedKeyFamily()
if ckf != nil {
// DeviceKeys is poorly named, so let's deprecate it.
ret.DeviceKeys = ckf.Export()
ret.Keys = ret.DeviceKeys
}
ret.Uvv = u.ExportToVersionVector(idTime)
return ret
}