本文整理匯總了Golang中github.com/keybase/client/go/libkb.User.Export方法的典型用法代碼示例。如果您正苦於以下問題:Golang User.Export方法的具體用法?Golang User.Export怎麽用?Golang User.Export使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類github.com/keybase/client/go/libkb.User
的用法示例。
在下文中一共展示了User.Export方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Golang代碼示例。
示例1: checkKeyedProfile
func checkKeyedProfile(tb testing.TB, idUI *FakeIdentifyUI, them *libkb.User, name string, hasImg bool, expectedProofs map[string]string) {
if exported := them.Export(); !reflect.DeepEqual(idUI.User, exported) {
tb.Fatal("LaunchNetworkChecks User not equal to result user.", idUI.User, exported)
}
if !reflect.DeepEqual(expectedProofs, idUI.Proofs) {
tb.Fatal("Wrong proofs.", expectedProofs, idUI.Proofs)
}
}
示例2: sigVer
func sigVer(ss *libkb.SignatureStatus, owner *libkb.User) keybase1.PGPSigVerification {
var res keybase1.PGPSigVerification
if ss.IsSigned {
res.IsSigned = ss.IsSigned
res.Verified = ss.Verified
if owner != nil {
signer := owner.Export()
if signer != nil {
res.Signer = *signer
}
}
if ss.Entity != nil {
bundle := libkb.NewPGPKeyBundle(ss.Entity)
res.SignKey = bundle.Export()
}
}
return res
}