Documentation ¶
Overview ¶
PaperKeyPrimary creates the initial paper backup key for a user. It differs from the PaperKey engine in that it already knows the signing key and it doesn't offer to revoke any devices, plus it uses a different UI call to display the phrase.
Index ¶
- Variables
- func CheckUsernameAvailable(g *libkb.GlobalContext, s string) (err error)
- func IsLoggedIn(e Engine, ctx *Context) (bool, error)
- func IsProvisioned(e Engine, ctx *Context) (bool, error)
- func OutputSignatureSuccess(ctx *Context, fingerprint libkb.PGPFingerprint, owner *libkb.User, ...)
- func PGPCheckMulti(me *libkb.User, allowMulti bool) (err error)
- func RunEngine(e Engine, ctx *Context) (err error)
- func SignED25519(g *libkb.GlobalContext, secretUI libkb.SecretUI, arg keybase1.SignED25519Arg) (ret keybase1.ED25519SignatureInfo, err error)
- func UnboxBytes32(g *libkb.GlobalContext, secretUI libkb.SecretUI, arg keybase1.UnboxBytes32Arg) (bytes32 keybase1.Bytes32, err error)
- type BTCEngine
- type CheckError
- type Context
- type DevList
- type DeviceAdd
- type DeviceKeygen
- func (e *DeviceKeygen) EncryptionKey() libkb.NaclKeyPair
- func (e *DeviceKeygen) Name() string
- func (e *DeviceKeygen) Prereqs() Prereqs
- func (e *DeviceKeygen) Push(ctx *Context, pargs *DeviceKeygenPushArgs) error
- func (e *DeviceKeygen) RequiredUIs() []libkb.UIKind
- func (e *DeviceKeygen) Run(ctx *Context) error
- func (e *DeviceKeygen) SigningKey() libkb.NaclKeyPair
- func (e *DeviceKeygen) SigningKeyPublic() (libkb.NaclSigningKeyPublic, error)
- func (e *DeviceKeygen) SubConsumers() []libkb.UIConsumer
- type DeviceKeygenArgs
- type DeviceKeygenPushArgs
- type DeviceRegister
- type DeviceRegisterArgs
- type DeviceWrap
- func (e *DeviceWrap) EncryptionKey() libkb.GenericKey
- func (e *DeviceWrap) Name() string
- func (e *DeviceWrap) Prereqs() Prereqs
- func (e *DeviceWrap) RequiredUIs() []libkb.UIKind
- func (e *DeviceWrap) Run(ctx *Context) error
- func (e *DeviceWrap) SigningKey() libkb.GenericKey
- func (e *DeviceWrap) SubConsumers() []libkb.UIConsumer
- type DeviceWrapArgs
- type Engine
- type FavoriteAdd
- type FavoriteDelete
- type FavoriteList
- type GPGImportKeyArg
- type GPGImportKeyEngine
- func (e *GPGImportKeyEngine) LastKey() *libkb.PGPKeyBundle
- func (e *GPGImportKeyEngine) Name() string
- func (e *GPGImportKeyEngine) Prereqs() Prereqs
- func (e *GPGImportKeyEngine) RequiredUIs() []libkb.UIKind
- func (e *GPGImportKeyEngine) Run(ctx *Context) (err error)
- func (e *GPGImportKeyEngine) SubConsumers() []libkb.UIConsumer
- func (e *GPGImportKeyEngine) WantsGPG(ctx *Context) (bool, error)
- type IDEngine
- type IDEngineArg
- type IDRes
- type Identify
- func (e *Identify) Name() string
- func (e *Identify) Outcome() *libkb.IdentifyOutcome
- func (e *Identify) Prereqs() Prereqs
- func (e *Identify) RequiredUIs() []libkb.UIKind
- func (e *Identify) Run(ctx *Context) error
- func (e *Identify) SubConsumers() []libkb.UIConsumer
- func (e *Identify) TrackInstructions() *libkb.TrackInstructions
- func (e *Identify) TrackToken() libkb.IdentifyCacheToken
- func (e *Identify) User() *libkb.User
- type IdentifyArg
- type Kex2Provisionee
- func (e *Kex2Provisionee) APIArgs() (token, csrf string)
- func (e *Kex2Provisionee) AddSecret(s kex2.Secret)
- func (e *Kex2Provisionee) Device() *libkb.Device
- func (e *Kex2Provisionee) GetLogFactory() rpc.LogFactory
- func (e *Kex2Provisionee) GetName() string
- func (e *Kex2Provisionee) GetUID() keybase1.UID
- func (e *Kex2Provisionee) HandleDidCounterSign(sig []byte) (err error)
- func (e *Kex2Provisionee) HandleHello(harg keybase1.HelloArg) (res keybase1.HelloRes, err error)
- func (e *Kex2Provisionee) Invalidate()
- func (e *Kex2Provisionee) IsLoggedIn() bool
- func (e *Kex2Provisionee) Logout() error
- func (e *Kex2Provisionee) Name() string
- func (e *Kex2Provisionee) Prereqs() Prereqs
- func (e *Kex2Provisionee) RequiredUIs() []libkb.UIKind
- func (e *Kex2Provisionee) Run(ctx *Context) error
- func (e *Kex2Provisionee) SubConsumers() []libkb.UIConsumer
- type Kex2Provisioner
- func (e *Kex2Provisioner) AddSecret(s kex2.Secret)
- func (e *Kex2Provisioner) CounterSign(input keybase1.HelloRes) (sig []byte, err error)
- func (e *Kex2Provisioner) GetHelloArg() (arg keybase1.HelloArg, err error)
- func (e *Kex2Provisioner) GetLogFactory() rpc.LogFactory
- func (e *Kex2Provisioner) Name() string
- func (e *Kex2Provisioner) Prereqs() Prereqs
- func (e *Kex2Provisioner) RequiredUIs() []libkb.UIKind
- func (e *Kex2Provisioner) Run(ctx *Context) error
- func (e *Kex2Provisioner) SubConsumers() []libkb.UIConsumer
- type ListTrackersEngine
- func (e *ListTrackersEngine) ExportedList() (ret []keybase1.Tracker)
- func (e *ListTrackersEngine) List() []libkb.Tracker
- func (e *ListTrackersEngine) Name() string
- func (e *ListTrackersEngine) Prereqs() Prereqs
- func (e *ListTrackersEngine) RequiredUIs() []libkb.UIKind
- func (e *ListTrackersEngine) Run(ctx *Context) error
- func (e *ListTrackersEngine) SubConsumers() []libkb.UIConsumer
- type ListTrackingEngine
- func (e *ListTrackingEngine) JSONResult() string
- func (e *ListTrackingEngine) Name() string
- func (e *ListTrackingEngine) Prereqs() Prereqs
- func (e *ListTrackingEngine) RequiredUIs() []libkb.UIKind
- func (e *ListTrackingEngine) Run(ctx *Context) (err error)
- func (e *ListTrackingEngine) SubConsumers() []libkb.UIConsumer
- func (e *ListTrackingEngine) TableResult() []keybase1.UserSummary
- type ListTrackingEngineArg
- type Login
- type LoginCurrentDevice
- type LoginProvision
- type LoginProvisionArg
- type PGPDecrypt
- func (e *PGPDecrypt) Name() string
- func (e *PGPDecrypt) Owner() *libkb.User
- func (e *PGPDecrypt) Prereqs() Prereqs
- func (e *PGPDecrypt) RequiredUIs() []libkb.UIKind
- func (e *PGPDecrypt) Run(ctx *Context) (err error)
- func (e *PGPDecrypt) SignatureStatus() *libkb.SignatureStatus
- func (e *PGPDecrypt) SubConsumers() []libkb.UIConsumer
- type PGPDecryptArg
- type PGPEncrypt
- type PGPEncryptArg
- type PGPKey
- type PGPKeyExportEngine
- func NewPGPKeyExportByFingerprintEngine(arg keybase1.PGPExportByFingerprintArg, g *libkb.GlobalContext) *PGPKeyExportEngine
- func NewPGPKeyExportByKIDEngine(arg keybase1.PGPExportByKIDArg, g *libkb.GlobalContext) *PGPKeyExportEngine
- func NewPGPKeyExportEngine(arg keybase1.PGPExportArg, g *libkb.GlobalContext) *PGPKeyExportEngine
- func (e *PGPKeyExportEngine) Name() string
- func (e *PGPKeyExportEngine) Prereqs() Prereqs
- func (e *PGPKeyExportEngine) RequiredUIs() []libkb.UIKind
- func (e *PGPKeyExportEngine) Results() []keybase1.KeyInfo
- func (e *PGPKeyExportEngine) Run(ctx *Context) (err error)
- func (e *PGPKeyExportEngine) SubConsumers() []libkb.UIConsumer
- type PGPKeyImportEngine
- type PGPKeyImportEngineArg
- type PGPKeyfinder
- type PGPKeyfinderArg
- type PGPPullEngine
- type PGPPullEngineArg
- type PGPSignArg
- type PGPSignEngine
- type PGPUpdateEngine
- type PGPVerify
- func (e *PGPVerify) Name() string
- func (e *PGPVerify) Owner() *libkb.User
- func (e *PGPVerify) Prereqs() Prereqs
- func (e *PGPVerify) RequiredUIs() []libkb.UIKind
- func (e *PGPVerify) Run(ctx *Context) error
- func (e *PGPVerify) SignatureStatus() *libkb.SignatureStatus
- func (e *PGPVerify) SubConsumers() []libkb.UIConsumer
- type PGPVerifyArg
- type PaperKey
- type PaperKeyGen
- func (e *PaperKeyGen) EncKey() libkb.GenericKey
- func (e *PaperKeyGen) Name() string
- func (e *PaperKeyGen) Prereqs() Prereqs
- func (e *PaperKeyGen) RequiredUIs() []libkb.UIKind
- func (e *PaperKeyGen) Run(ctx *Context) error
- func (e *PaperKeyGen) SigKey() libkb.GenericKey
- func (e *PaperKeyGen) SubConsumers() []libkb.UIConsumer
- type PaperKeyGenArg
- type PaperKeyPrimary
- type PaperKeyPrimaryArgs
- type PassphraseChange
- type Prereqs
- type Proofs
- type Prove
- type ProveCheck
- func (e *ProveCheck) Name() string
- func (e *ProveCheck) Prereqs() Prereqs
- func (e *ProveCheck) RequiredUIs() []libkb.UIKind
- func (e *ProveCheck) Results() (found bool, status keybase1.ProofStatus, proofText string)
- func (e *ProveCheck) Run(ctx *Context) error
- func (e *ProveCheck) SubConsumers() []libkb.UIConsumer
- type ResetEngine
- type RevokeDeviceEngineArgs
- type RevokeEngine
- type RevokeMode
- type RevokeSigsEngine
- type ScanKeys
- func (s *ScanKeys) Count() int
- func (s *ScanKeys) DecryptionKeys() []openpgp.Key
- func (s *ScanKeys) KeysById(id uint64) []openpgp.Key
- func (s *ScanKeys) KeysByIdUsage(id uint64, requiredUsage byte) []openpgp.Key
- func (s *ScanKeys) Name() string
- func (s *ScanKeys) Owner() *libkb.User
- func (s *ScanKeys) RequiredUIs() []libkb.UIKind
- func (s *ScanKeys) SubConsumers() []libkb.UIConsumer
- type SearchEngine
- type SearchEngineArgs
- type SignupEngine
- type SignupEngineRunArg
- type SignupJoinEngine
- func (s *SignupJoinEngine) CheckRegistered() (err error)
- func (s *SignupJoinEngine) Init() error
- func (s *SignupJoinEngine) Post(arg SignupJoinEngineRunArg) (err error)
- func (s *SignupJoinEngine) PostInviteRequest(arg libkb.InviteRequestArg) error
- func (s *SignupJoinEngine) Run(lctx libkb.LoginContext, arg SignupJoinEngineRunArg) (res SignupJoinEngineRunRes)
- func (s *SignupJoinEngine) WriteOut(lctx libkb.LoginContext, salt []byte) error
- type SignupJoinEngineRunArg
- type SignupJoinEngineRunRes
- type SigsList
- type SigsListArgs
- type SocialProof
- type SocialProofList
- type Summary
- type TrackEngine
- type TrackEngineArg
- type TrackList
- type TrackToken
- type TrackTokenArg
- type Unlock
- type UntrackEngine
- type UntrackEngineArg
- type UserConfigEngine
- type UserConfigEngineArg
- type UserPlusKeys
- type UserSummary
- func (e *UserSummary) ExportedSummariesList() (ret []keybase1.UserSummary)
- func (e *UserSummary) Name() string
- func (e *UserSummary) Prereqs() Prereqs
- func (e *UserSummary) RequiredUIs() []libkb.UIKind
- func (e *UserSummary) Run(ctx *Context) error
- func (e *UserSummary) SubConsumers() []libkb.UIConsumer
- func (e *UserSummary) Summaries() map[keybase1.UID]*Summary
- func (e *UserSummary) SummariesList() []*Summary
- type WebProof
- type WebProofList
Constants ¶
This section is empty.
Variables ¶
var ErrDeviceAlreadyRegistered = errors.New("Device already registered (device id exists in config)")
var ErrKeyGenArgNoDefNoCustom = errors.New("invalid args: NoDefPGPUid set, but no custom PGPUids")
Functions ¶
func CheckUsernameAvailable ¶
func CheckUsernameAvailable(g *libkb.GlobalContext, s string) (err error)
XXX why is this here?
func OutputSignatureSuccess ¶
func OutputSignatureSuccess(ctx *Context, fingerprint libkb.PGPFingerprint, owner *libkb.User, signatureTime time.Time)
OutputSignatureSuccess prints the details of a successful verification.
func SignED25519 ¶
func SignED25519(g *libkb.GlobalContext, secretUI libkb.SecretUI, arg keybase1.SignED25519Arg) ( ret keybase1.ED25519SignatureInfo, err error)
SignED25519 signs the given message with the current user's private signing key.
func UnboxBytes32 ¶
func UnboxBytes32(g *libkb.GlobalContext, secretUI libkb.SecretUI, arg keybase1.UnboxBytes32Arg) (bytes32 keybase1.Bytes32, err error)
UnboxBytes32 decrypts the given message with the current user's private encryption key and the given nonce and peer public key.
Types ¶
type BTCEngine ¶
type BTCEngine struct { libkb.Contextified // contains filtered or unexported fields }
func NewBTCEngine ¶
func NewBTCEngine(address string, force bool, g *libkb.GlobalContext) *BTCEngine
func (*BTCEngine) RequiredUIs ¶
func (*BTCEngine) SubConsumers ¶
func (e *BTCEngine) SubConsumers() []libkb.UIConsumer
type CheckError ¶
type CheckError struct {
// contains filtered or unexported fields
}
func (CheckError) Error ¶
func (e CheckError) Error() string
type Context ¶
type DevList ¶
type DevList struct { libkb.Contextified // contains filtered or unexported fields }
DevList is an engine that gets a list of all the user's devices.
func NewDevList ¶
func NewDevList(g *libkb.GlobalContext) *DevList
NewDevList creates a DevList engine.
func (*DevList) RequiredUIs ¶
func (*DevList) SubConsumers ¶
func (d *DevList) SubConsumers() []libkb.UIConsumer
type DeviceAdd ¶
type DeviceAdd struct {
libkb.Contextified
}
DeviceAdd is an engine.
func NewDeviceAdd ¶
func NewDeviceAdd(g *libkb.GlobalContext) *DeviceAdd
NewDeviceAdd creates a DeviceAdd engine.
func (*DeviceAdd) RequiredUIs ¶
RequiredUIs returns the required UIs.
func (*DeviceAdd) SubConsumers ¶
func (e *DeviceAdd) SubConsumers() []libkb.UIConsumer
SubConsumers returns the other UI consumers for this engine.
type DeviceKeygen ¶
type DeviceKeygen struct { libkb.Contextified // contains filtered or unexported fields }
func NewDeviceKeygen ¶
func NewDeviceKeygen(args *DeviceKeygenArgs, g *libkb.GlobalContext) *DeviceKeygen
NewDeviceKeygen creates a DeviceKeygen engine.
func (*DeviceKeygen) EncryptionKey ¶
func (e *DeviceKeygen) EncryptionKey() libkb.NaclKeyPair
func (*DeviceKeygen) Prereqs ¶
func (e *DeviceKeygen) Prereqs() Prereqs
GetPrereqs returns the engine prereqs.
func (*DeviceKeygen) Push ¶
func (e *DeviceKeygen) Push(ctx *Context, pargs *DeviceKeygenPushArgs) error
Push pushes the generated keys to the api server and stores the local key security server half on the api server as well.
func (*DeviceKeygen) RequiredUIs ¶
func (e *DeviceKeygen) RequiredUIs() []libkb.UIKind
RequiredUIs returns the required UIs.
func (*DeviceKeygen) SigningKey ¶
func (e *DeviceKeygen) SigningKey() libkb.NaclKeyPair
func (*DeviceKeygen) SigningKeyPublic ¶
func (e *DeviceKeygen) SigningKeyPublic() (libkb.NaclSigningKeyPublic, error)
func (*DeviceKeygen) SubConsumers ¶
func (e *DeviceKeygen) SubConsumers() []libkb.UIConsumer
SubConsumers returns the other UI consumers for this engine.
type DeviceKeygenArgs ¶
type DeviceKeygenPushArgs ¶
type DeviceKeygenPushArgs struct { IsEldest bool SkipSignerPush bool Signer libkb.GenericKey EldestKID keybase1.KID User *libkb.User // optional }
DeviceKeygenPushArgs determines how the push will run. There are currently three different paths it can take:
1. this device is the eldest device: pushes eldest signing key, encryption subkey. (IsEldest => true)
2. this device is a sibling (but we're not in a key exchange scenario): pushes sibkey signing key, encryption subkey. (IsEldest => False, SkipSignerPush => false, Signer != nil, EldestKID != nil)
3. this device is a sibling, but another device pushed the signing key, so skip that part. (IsEldest => False, SkipSignerPush => true, Signer != nil, EldestKID != nil)
The User argument is optional, but it is necessary if the user's sigchain changes between key generation and key push.
type DeviceRegister ¶
type DeviceRegister struct { libkb.Contextified // contains filtered or unexported fields }
func NewDeviceRegister ¶
func NewDeviceRegister(args *DeviceRegisterArgs, g *libkb.GlobalContext) *DeviceRegister
func (*DeviceRegister) DeviceID ¶
func (d *DeviceRegister) DeviceID() keybase1.DeviceID
func (*DeviceRegister) Name ¶
func (d *DeviceRegister) Name() string
func (*DeviceRegister) Prereqs ¶
func (d *DeviceRegister) Prereqs() Prereqs
func (*DeviceRegister) RequiredUIs ¶
func (d *DeviceRegister) RequiredUIs() []libkb.UIKind
func (*DeviceRegister) Run ¶
func (d *DeviceRegister) Run(ctx *Context) error
func (*DeviceRegister) SubConsumers ¶
func (d *DeviceRegister) SubConsumers() []libkb.UIConsumer
type DeviceRegisterArgs ¶
type DeviceWrap ¶
type DeviceWrap struct { libkb.Contextified // contains filtered or unexported fields }
DeviceWrap is an engine that wraps DeviceRegister and DeviceKeygen.
func NewDeviceWrap ¶
func NewDeviceWrap(args *DeviceWrapArgs, g *libkb.GlobalContext) *DeviceWrap
NewDeviceWrap creates a DeviceWrap engine.
func (*DeviceWrap) EncryptionKey ¶
func (e *DeviceWrap) EncryptionKey() libkb.GenericKey
func (*DeviceWrap) Prereqs ¶
func (e *DeviceWrap) Prereqs() Prereqs
GetPrereqs returns the engine prereqs.
func (*DeviceWrap) RequiredUIs ¶
func (e *DeviceWrap) RequiredUIs() []libkb.UIKind
RequiredUIs returns the required UIs.
func (*DeviceWrap) SigningKey ¶
func (e *DeviceWrap) SigningKey() libkb.GenericKey
func (*DeviceWrap) SubConsumers ¶
func (e *DeviceWrap) SubConsumers() []libkb.UIConsumer
SubConsumers returns the other UI consumers for this engine.
type DeviceWrapArgs ¶
type Engine ¶
type Engine interface { Run(ctx *Context) error Prereqs() Prereqs libkb.UIConsumer G() *libkb.GlobalContext }
type FavoriteAdd ¶
type FavoriteAdd struct { libkb.Contextified // contains filtered or unexported fields }
FavoriteAdd is an engine.
func NewFavoriteAdd ¶
func NewFavoriteAdd(arg *keybase1.FavoriteAddArg, g *libkb.GlobalContext) *FavoriteAdd
NewFavoriteAdd creates a FavoriteAdd engine.
func (*FavoriteAdd) Prereqs ¶
func (e *FavoriteAdd) Prereqs() Prereqs
GetPrereqs returns the engine prereqs.
func (*FavoriteAdd) RequiredUIs ¶
func (e *FavoriteAdd) RequiredUIs() []libkb.UIKind
RequiredUIs returns the required UIs.
func (*FavoriteAdd) SubConsumers ¶
func (e *FavoriteAdd) SubConsumers() []libkb.UIConsumer
SubConsumers returns the other UI consumers for this engine.
type FavoriteDelete ¶
type FavoriteDelete struct { libkb.Contextified // contains filtered or unexported fields }
FavoriteDelete is an engine.
func NewFavoriteDelete ¶
func NewFavoriteDelete(arg *keybase1.FavoriteDeleteArg, g *libkb.GlobalContext) *FavoriteDelete
NewFavoriteDelete creates a FavoriteDelete engine.
func (*FavoriteDelete) Name ¶
func (e *FavoriteDelete) Name() string
Name is the unique engine name.
func (*FavoriteDelete) Prereqs ¶
func (e *FavoriteDelete) Prereqs() Prereqs
GetPrereqs returns the engine prereqs.
func (*FavoriteDelete) RequiredUIs ¶
func (e *FavoriteDelete) RequiredUIs() []libkb.UIKind
RequiredUIs returns the required UIs.
func (*FavoriteDelete) Run ¶
func (e *FavoriteDelete) Run(ctx *Context) error
Run starts the engine.
func (*FavoriteDelete) SubConsumers ¶
func (e *FavoriteDelete) SubConsumers() []libkb.UIConsumer
SubConsumers returns the other UI consumers for this engine.
type FavoriteList ¶
type FavoriteList struct {
libkb.Contextified
}
FavoriteList is an engine.
func NewFavoriteList ¶
func NewFavoriteList(g *libkb.GlobalContext) *FavoriteList
NewFavoriteList creates a FavoriteList engine.
func (*FavoriteList) Favorites ¶
func (e *FavoriteList) Favorites() []keybase1.Folder
Favorites returns the list of favorites that Run generated.
func (*FavoriteList) Prereqs ¶
func (e *FavoriteList) Prereqs() Prereqs
GetPrereqs returns the engine prereqs.
func (*FavoriteList) RequiredUIs ¶
func (e *FavoriteList) RequiredUIs() []libkb.UIKind
RequiredUIs returns the required UIs.
func (*FavoriteList) SubConsumers ¶
func (e *FavoriteList) SubConsumers() []libkb.UIConsumer
SubConsumers returns the other UI consumers for this engine.
type GPGImportKeyArg ¶
type GPGImportKeyEngine ¶
type GPGImportKeyEngine struct { libkb.Contextified // contains filtered or unexported fields }
func NewGPGImportKeyEngine ¶
func NewGPGImportKeyEngine(arg *GPGImportKeyArg, g *libkb.GlobalContext) *GPGImportKeyEngine
func (*GPGImportKeyEngine) LastKey ¶
func (e *GPGImportKeyEngine) LastKey() *libkb.PGPKeyBundle
func (*GPGImportKeyEngine) Name ¶
func (e *GPGImportKeyEngine) Name() string
func (*GPGImportKeyEngine) Prereqs ¶
func (e *GPGImportKeyEngine) Prereqs() Prereqs
func (*GPGImportKeyEngine) RequiredUIs ¶
func (e *GPGImportKeyEngine) RequiredUIs() []libkb.UIKind
func (*GPGImportKeyEngine) Run ¶
func (e *GPGImportKeyEngine) Run(ctx *Context) (err error)
func (*GPGImportKeyEngine) SubConsumers ¶
func (e *GPGImportKeyEngine) SubConsumers() []libkb.UIConsumer
type IDEngine ¶
type IDEngine struct { libkb.Contextified // contains filtered or unexported fields }
IDEnginge is the type used by cmd_id Run, daemon id handler.
func NewIDEngine ¶
func NewIDEngine(arg *IDEngineArg, g *libkb.GlobalContext) *IDEngine
func (*IDEngine) RequiredUIs ¶
func (*IDEngine) SubConsumers ¶
func (e *IDEngine) SubConsumers() []libkb.UIConsumer
type IDEngineArg ¶
type IDEngineArg struct { UserAssertion string TrackStatement bool // output a track statement ForceRemoteCheck bool // don't use proof cache }
func ImportIDEngineArg ¶
func ImportIDEngineArg(a keybase1.IdentifyArg) (ret IDEngineArg)
func (IDEngineArg) Export ¶
func (a IDEngineArg) Export() (res keybase1.IdentifyArg)
type IDRes ¶
type IDRes struct { Outcome *libkb.IdentifyOutcome User *libkb.User TrackToken libkb.IdentifyCacheToken ComputedKeyFamily *libkb.ComputedKeyFamily }
func (*IDRes) Export ¶
func (ir *IDRes) Export() *keybase1.IdentifyRes
type Identify ¶
type Identify struct { libkb.Contextified // contains filtered or unexported fields }
Identify is an engine to identify a user.
func NewIdentify ¶
func NewIdentify(arg *IdentifyArg, g *libkb.GlobalContext) *Identify
NewIdentify creates a Identify engine.
func (*Identify) Outcome ¶
func (e *Identify) Outcome() *libkb.IdentifyOutcome
func (*Identify) RequiredUIs ¶
RequiredUIs returns the required UIs.
func (*Identify) SubConsumers ¶
func (e *Identify) SubConsumers() []libkb.UIConsumer
SubConsumers returns the other UI consumers for this engine.
func (*Identify) TrackInstructions ¶
func (e *Identify) TrackInstructions() *libkb.TrackInstructions
func (*Identify) TrackToken ¶
func (e *Identify) TrackToken() libkb.IdentifyCacheToken
type IdentifyArg ¶
type IdentifyArg struct { TargetUsername string // The user being identified, leave blank to identify self WithTracking bool // true if want tracking statement for logged in user on TargetUsername AllowSelf bool // if we're allowed to id/track ourself ForceRemoteCheck bool // true: skip proof cache and perform all remote proof checks // When tracking is being performed, the identify engine is used with a tracking ui. // These options are sent to the ui based on command line options. // For normal identify, safe to leave these in their default zero state. TrackOptions keybase1.TrackOptions }
func NewIdentifyArg ¶
func NewIdentifyArg(targetUsername string, withTracking, forceRemoteCheck bool) *IdentifyArg
func NewIdentifyTrackArg ¶
func NewIdentifyTrackArg(targetUsername string, withTracking, forceRemoteCheck bool, options keybase1.TrackOptions) *IdentifyArg
func (*IdentifyArg) SelfID ¶
func (ia *IdentifyArg) SelfID() bool
type Kex2Provisionee ¶
type Kex2Provisionee struct { libkb.Contextified // contains filtered or unexported fields }
Kex2Provisionee is an engine.
func NewKex2Provisionee ¶
func NewKex2Provisionee(g *libkb.GlobalContext, device *libkb.Device, secret kex2.Secret) *Kex2Provisionee
NewKex2Provisionee creates a Kex2Provisionee engine.
func (*Kex2Provisionee) APIArgs ¶
func (e *Kex2Provisionee) APIArgs() (token, csrf string)
APIArgs implements libkb.SessionReader interface.
func (*Kex2Provisionee) AddSecret ¶
func (e *Kex2Provisionee) AddSecret(s kex2.Secret)
AddSecret inserts a received secret into the provisionee's secret channel.
func (*Kex2Provisionee) Device ¶
func (e *Kex2Provisionee) Device() *libkb.Device
Device returns the new device struct.
func (*Kex2Provisionee) GetLogFactory ¶
func (e *Kex2Provisionee) GetLogFactory() rpc.LogFactory
GetLogFactory implements GetLogFactory in kex2.Provisionee.
func (*Kex2Provisionee) GetName ¶
func (e *Kex2Provisionee) GetName() string
GetName implements libkb.UserBasic interface.
func (*Kex2Provisionee) GetUID ¶
func (e *Kex2Provisionee) GetUID() keybase1.UID
GetUID implements libkb.UserBasic interface.
func (*Kex2Provisionee) HandleDidCounterSign ¶
func (e *Kex2Provisionee) HandleDidCounterSign(sig []byte) (err error)
HandleDidCounterSign implements HandleDidCounterSign in kex2.Provisionee interface.
func (*Kex2Provisionee) HandleHello ¶
HandleHello implements HandleHello in kex2.Provisionee.
func (*Kex2Provisionee) Invalidate ¶
func (e *Kex2Provisionee) Invalidate()
Invalidate implements libkb.SessionReader interface.
func (*Kex2Provisionee) IsLoggedIn ¶
func (e *Kex2Provisionee) IsLoggedIn() bool
IsLoggedIn implements libkb.SessionReader interface. For the sake of kex2 provisionee, we are logged in because we have a session token.
func (*Kex2Provisionee) Logout ¶
func (e *Kex2Provisionee) Logout() error
Logout implements libkb.SessionReader interface. Noop.
func (*Kex2Provisionee) Name ¶
func (e *Kex2Provisionee) Name() string
Name is the unique engine name.
func (*Kex2Provisionee) Prereqs ¶
func (e *Kex2Provisionee) Prereqs() Prereqs
GetPrereqs returns the engine prereqs.
func (*Kex2Provisionee) RequiredUIs ¶
func (e *Kex2Provisionee) RequiredUIs() []libkb.UIKind
RequiredUIs returns the required UIs.
func (*Kex2Provisionee) Run ¶
func (e *Kex2Provisionee) Run(ctx *Context) error
Run starts the engine.
func (*Kex2Provisionee) SubConsumers ¶
func (e *Kex2Provisionee) SubConsumers() []libkb.UIConsumer
SubConsumers returns the other UI consumers for this engine.
type Kex2Provisioner ¶
type Kex2Provisioner struct { libkb.Contextified // contains filtered or unexported fields }
Kex2Provisioner is an engine.
func NewKex2Provisioner ¶
func NewKex2Provisioner(g *libkb.GlobalContext, secret kex2.Secret, pps *libkb.PassphraseStream) *Kex2Provisioner
NewKex2Provisioner creates a Kex2Provisioner engine.
func (*Kex2Provisioner) AddSecret ¶
func (e *Kex2Provisioner) AddSecret(s kex2.Secret)
AddSecret inserts a received secret into the provisioner's secret channel.
func (*Kex2Provisioner) CounterSign ¶
func (e *Kex2Provisioner) CounterSign(input keybase1.HelloRes) (sig []byte, err error)
CounterSign implements CounterSign in kex2.Provisioner.
func (*Kex2Provisioner) GetHelloArg ¶
func (e *Kex2Provisioner) GetHelloArg() (arg keybase1.HelloArg, err error)
GetHelloArg implements GetHelloArg in kex2.Provisioner.
func (*Kex2Provisioner) GetLogFactory ¶
func (e *Kex2Provisioner) GetLogFactory() rpc.LogFactory
GetLogFactory implements GetLogFactory in kex2.Provisioner.
func (*Kex2Provisioner) Name ¶
func (e *Kex2Provisioner) Name() string
Name is the unique engine name.
func (*Kex2Provisioner) Prereqs ¶
func (e *Kex2Provisioner) Prereqs() Prereqs
GetPrereqs returns the engine prereqs.
func (*Kex2Provisioner) RequiredUIs ¶
func (e *Kex2Provisioner) RequiredUIs() []libkb.UIKind
RequiredUIs returns the required UIs.
func (*Kex2Provisioner) Run ¶
func (e *Kex2Provisioner) Run(ctx *Context) error
Run starts the provisioner engine.
func (*Kex2Provisioner) SubConsumers ¶
func (e *Kex2Provisioner) SubConsumers() []libkb.UIConsumer
SubConsumers returns the other UI consumers for this engine.
type ListTrackersEngine ¶
type ListTrackersEngine struct { libkb.Contextified // contains filtered or unexported fields }
TrackerList is an engine to get a list of user's trackers (other users tracking this user).
func NewListTrackers ¶
func NewListTrackers(uid keybase1.UID, g *libkb.GlobalContext) *ListTrackersEngine
NewListTrackers creates a TrackerList engine for uid.
func NewListTrackersByName ¶
func NewListTrackersByName(username string) *ListTrackersEngine
NewListTrackersByName creates a TrackerList engine that will do a lookup by username.
func NewListTrackersSelf ¶
func NewListTrackersSelf() *ListTrackersEngine
func (*ListTrackersEngine) ExportedList ¶
func (e *ListTrackersEngine) ExportedList() (ret []keybase1.Tracker)
func (*ListTrackersEngine) List ¶
func (e *ListTrackersEngine) List() []libkb.Tracker
List returns the array of trackers for this user.
func (*ListTrackersEngine) Name ¶
func (e *ListTrackersEngine) Name() string
Name is the unique engine name.
func (*ListTrackersEngine) Prereqs ¶
func (e *ListTrackersEngine) Prereqs() Prereqs
GetPrereqs returns the engine prereqs (none).
func (*ListTrackersEngine) RequiredUIs ¶
func (e *ListTrackersEngine) RequiredUIs() []libkb.UIKind
RequiredUIs returns the required UIs.
func (*ListTrackersEngine) Run ¶
func (e *ListTrackersEngine) Run(ctx *Context) error
Run starts the engine.
func (*ListTrackersEngine) SubConsumers ¶
func (e *ListTrackersEngine) SubConsumers() []libkb.UIConsumer
SubConsumers returns the other UI consumers for this engine.
type ListTrackingEngine ¶
type ListTrackingEngine struct { libkb.Contextified // contains filtered or unexported fields }
func NewListTrackingEngine ¶
func NewListTrackingEngine(arg *ListTrackingEngineArg, g *libkb.GlobalContext) *ListTrackingEngine
func (*ListTrackingEngine) JSONResult ¶
func (e *ListTrackingEngine) JSONResult() string
func (*ListTrackingEngine) Name ¶
func (e *ListTrackingEngine) Name() string
func (*ListTrackingEngine) Prereqs ¶
func (e *ListTrackingEngine) Prereqs() Prereqs
func (*ListTrackingEngine) RequiredUIs ¶
func (e *ListTrackingEngine) RequiredUIs() []libkb.UIKind
func (*ListTrackingEngine) Run ¶
func (e *ListTrackingEngine) Run(ctx *Context) (err error)
func (*ListTrackingEngine) SubConsumers ¶
func (e *ListTrackingEngine) SubConsumers() []libkb.UIConsumer
func (*ListTrackingEngine) TableResult ¶
func (e *ListTrackingEngine) TableResult() []keybase1.UserSummary
type ListTrackingEngineArg ¶
type Login ¶
type Login struct { libkb.Contextified // contains filtered or unexported fields }
Login is an engine.
func NewLogin ¶
func NewLogin(g *libkb.GlobalContext, deviceType, username string) *Login
NewLogin creates a Login engine. username is optional. deviceType should be libkb.DeviceTypeDesktop or libkb.DeviceTypeMobile.
func (*Login) RequiredUIs ¶
RequiredUIs returns the required UIs.
func (*Login) SubConsumers ¶
func (e *Login) SubConsumers() []libkb.UIConsumer
SubConsumers returns the other UI consumers for this engine.
type LoginCurrentDevice ¶
type LoginCurrentDevice struct { libkb.Contextified // contains filtered or unexported fields }
LoginCurrentDevice is an engine that tries to login using the current device, if there is an existing provisioned device.
func NewLoginCurrentDevice ¶
func NewLoginCurrentDevice(g *libkb.GlobalContext, username string) *LoginCurrentDevice
NewLoginCurrentDevice creates a LoginCurrentDevice engine.
func (*LoginCurrentDevice) Name ¶
func (e *LoginCurrentDevice) Name() string
Name is the unique engine name.
func (*LoginCurrentDevice) Prereqs ¶
func (e *LoginCurrentDevice) Prereqs() Prereqs
GetPrereqs returns the engine prereqs.
func (*LoginCurrentDevice) RequiredUIs ¶
func (e *LoginCurrentDevice) RequiredUIs() []libkb.UIKind
RequiredUIs returns the required UIs.
func (*LoginCurrentDevice) Run ¶
func (e *LoginCurrentDevice) Run(ctx *Context) error
Run starts the engine.
func (*LoginCurrentDevice) SubConsumers ¶
func (e *LoginCurrentDevice) SubConsumers() []libkb.UIConsumer
SubConsumers returns the other UI consumers for this engine.
type LoginProvision ¶
type LoginProvision struct { libkb.Contextified // contains filtered or unexported fields }
LoginProvision is an engine that will provision the current device.
func NewLoginProvision ¶
func NewLoginProvision(g *libkb.GlobalContext, arg *LoginProvisionArg) *LoginProvision
NewLoginProvision creates a LoginProvision engine. username is optional.
func (*LoginProvision) Name ¶
func (e *LoginProvision) Name() string
Name is the unique engine name.
func (*LoginProvision) Prereqs ¶
func (e *LoginProvision) Prereqs() Prereqs
GetPrereqs returns the engine prereqs.
func (*LoginProvision) RequiredUIs ¶
func (e *LoginProvision) RequiredUIs() []libkb.UIKind
RequiredUIs returns the required UIs.
func (*LoginProvision) Run ¶
func (e *LoginProvision) Run(ctx *Context) error
Run starts the engine.
func (*LoginProvision) SubConsumers ¶
func (e *LoginProvision) SubConsumers() []libkb.UIConsumer
SubConsumers returns the other UI consumers for this engine.
type LoginProvisionArg ¶
type PGPDecrypt ¶
type PGPDecrypt struct { libkb.Contextified // contains filtered or unexported fields }
PGPDecrypt decrypts data read from source into sink for the logged in user.
func NewPGPDecrypt ¶
func NewPGPDecrypt(arg *PGPDecryptArg, g *libkb.GlobalContext) *PGPDecrypt
NewPGPDecrypt creates a PGPDecrypt engine.
func (*PGPDecrypt) Owner ¶
func (e *PGPDecrypt) Owner() *libkb.User
func (*PGPDecrypt) Prereqs ¶
func (e *PGPDecrypt) Prereqs() Prereqs
GetPrereqs returns the engine prereqs.
func (*PGPDecrypt) RequiredUIs ¶
func (e *PGPDecrypt) RequiredUIs() []libkb.UIKind
RequiredUIs returns the required UIs.
func (*PGPDecrypt) SignatureStatus ¶
func (e *PGPDecrypt) SignatureStatus() *libkb.SignatureStatus
func (*PGPDecrypt) SubConsumers ¶
func (e *PGPDecrypt) SubConsumers() []libkb.UIConsumer
SubConsumers returns the other UI consumers for this engine.
type PGPDecryptArg ¶
type PGPDecryptArg struct { Source io.Reader Sink io.WriteCloser AssertSigned bool SignedBy string TrackOptions keybase1.TrackOptions }
type PGPEncrypt ¶
type PGPEncrypt struct { libkb.Contextified // contains filtered or unexported fields }
PGPEncrypt encrypts data read from a source into a sink for a set of users. It will track them if necessary.
func NewPGPEncrypt ¶
func NewPGPEncrypt(arg *PGPEncryptArg, g *libkb.GlobalContext) *PGPEncrypt
NewPGPEncrypt creates a PGPEncrypt engine.
func (*PGPEncrypt) Prereqs ¶
func (e *PGPEncrypt) Prereqs() Prereqs
GetPrereqs returns the engine prereqs.
func (*PGPEncrypt) RequiredUIs ¶
func (e *PGPEncrypt) RequiredUIs() []libkb.UIKind
RequiredUIs returns the required UIs.
func (*PGPEncrypt) SubConsumers ¶
func (e *PGPEncrypt) SubConsumers() []libkb.UIConsumer
SubConsumers returns the other UI consumers for this engine.
type PGPEncryptArg ¶
type PGPKey ¶
type PGPKeyExportEngine ¶
type PGPKeyExportEngine struct { libkb.Contextified // contains filtered or unexported fields }
func NewPGPKeyExportByFingerprintEngine ¶
func NewPGPKeyExportByFingerprintEngine(arg keybase1.PGPExportByFingerprintArg, g *libkb.GlobalContext) *PGPKeyExportEngine
func NewPGPKeyExportByKIDEngine ¶
func NewPGPKeyExportByKIDEngine(arg keybase1.PGPExportByKIDArg, g *libkb.GlobalContext) *PGPKeyExportEngine
func NewPGPKeyExportEngine ¶
func NewPGPKeyExportEngine(arg keybase1.PGPExportArg, g *libkb.GlobalContext) *PGPKeyExportEngine
func (*PGPKeyExportEngine) Name ¶
func (e *PGPKeyExportEngine) Name() string
func (*PGPKeyExportEngine) Prereqs ¶
func (e *PGPKeyExportEngine) Prereqs() Prereqs
func (*PGPKeyExportEngine) RequiredUIs ¶
func (e *PGPKeyExportEngine) RequiredUIs() []libkb.UIKind
func (*PGPKeyExportEngine) Results ¶
func (e *PGPKeyExportEngine) Results() []keybase1.KeyInfo
func (*PGPKeyExportEngine) Run ¶
func (e *PGPKeyExportEngine) Run(ctx *Context) (err error)
func (*PGPKeyExportEngine) SubConsumers ¶
func (e *PGPKeyExportEngine) SubConsumers() []libkb.UIConsumer
type PGPKeyImportEngine ¶
type PGPKeyImportEngine struct { libkb.Contextified // contains filtered or unexported fields }
func NewPGPKeyImportEngine ¶
func NewPGPKeyImportEngine(arg PGPKeyImportEngineArg) *PGPKeyImportEngine
func NewPGPKeyImportEngineFromBytes ¶
func NewPGPKeyImportEngineFromBytes(key []byte, pushPrivate bool, gc *libkb.GlobalContext) (eng *PGPKeyImportEngine, err error)
func (*PGPKeyImportEngine) Name ¶
func (e *PGPKeyImportEngine) Name() string
func (*PGPKeyImportEngine) Prereqs ¶
func (e *PGPKeyImportEngine) Prereqs() Prereqs
func (*PGPKeyImportEngine) RequiredUIs ¶
func (e *PGPKeyImportEngine) RequiredUIs() []libkb.UIKind
func (*PGPKeyImportEngine) Run ¶
func (e *PGPKeyImportEngine) Run(ctx *Context) error
func (*PGPKeyImportEngine) SubConsumers ¶
func (e *PGPKeyImportEngine) SubConsumers() []libkb.UIConsumer
type PGPKeyImportEngineArg ¶
type PGPKeyImportEngineArg struct { Gen *libkb.PGPGenArg Pregen *libkb.PGPKeyBundle SigningKey libkb.GenericKey Me *libkb.User Ctx *libkb.GlobalContext Lks *libkb.LKSec NoSave bool PushSecret bool OnlySave bool AllowMulti bool DoExport bool DoUnlock bool }
func ImportPGPKeyImportEngineArg ¶
func ImportPGPKeyImportEngineArg(a keybase1.PGPKeyGenArg) (ret PGPKeyImportEngineArg)
func (*PGPKeyImportEngineArg) Export ¶
func (a *PGPKeyImportEngineArg) Export() (ret keybase1.PGPKeyGenArg)
type PGPKeyfinder ¶
type PGPKeyfinder struct { libkb.Contextified // contains filtered or unexported fields }
PGPKeyfinder is an engine to find PGP Keys for users (loaded by assertions), possibly tracking them if necessary.
func NewPGPKeyfinder ¶
func NewPGPKeyfinder(arg *PGPKeyfinderArg, g *libkb.GlobalContext) *PGPKeyfinder
NewPGPKeyfinder creates a PGPKeyfinder engine.
func (*PGPKeyfinder) Prereqs ¶
func (e *PGPKeyfinder) Prereqs() Prereqs
GetPrereqs returns the engine prereqs.
func (*PGPKeyfinder) RequiredUIs ¶
func (e *PGPKeyfinder) RequiredUIs() []libkb.UIKind
RequiredUIs returns the required UIs.
func (*PGPKeyfinder) SubConsumers ¶
func (e *PGPKeyfinder) SubConsumers() []libkb.UIConsumer
SubConsumers returns the other UI consumers for this engine.
func (*PGPKeyfinder) UsersPlusKeys ¶
func (e *PGPKeyfinder) UsersPlusKeys() []*UserPlusKeys
UsersPlusKeys returns the users found while running the engine, plus their pgp keys.
type PGPKeyfinderArg ¶
type PGPKeyfinderArg struct { Users []string SkipTrack bool TrackOptions keybase1.TrackOptions }
type PGPPullEngine ¶
type PGPPullEngine struct { libkb.Contextified // contains filtered or unexported fields }
func NewPGPPullEngine ¶
func NewPGPPullEngine(arg *PGPPullEngineArg, g *libkb.GlobalContext) *PGPPullEngine
func (*PGPPullEngine) Name ¶
func (e *PGPPullEngine) Name() string
func (*PGPPullEngine) Prereqs ¶
func (e *PGPPullEngine) Prereqs() Prereqs
func (*PGPPullEngine) RequiredUIs ¶
func (e *PGPPullEngine) RequiredUIs() []libkb.UIKind
func (*PGPPullEngine) Run ¶
func (e *PGPPullEngine) Run(ctx *Context) error
func (*PGPPullEngine) SubConsumers ¶
func (e *PGPPullEngine) SubConsumers() []libkb.UIConsumer
type PGPPullEngineArg ¶
type PGPPullEngineArg struct {
UserAsserts []string
}
type PGPSignArg ¶
type PGPSignArg struct { Sink io.WriteCloser Source io.ReadCloser Opts keybase1.PGPSignOptions }
type PGPSignEngine ¶
type PGPSignEngine struct { libkb.Contextified // contains filtered or unexported fields }
func NewPGPSignEngine ¶
func NewPGPSignEngine(arg *PGPSignArg, g *libkb.GlobalContext) *PGPSignEngine
func (*PGPSignEngine) Name ¶
func (p *PGPSignEngine) Name() string
func (*PGPSignEngine) Prereqs ¶
func (p *PGPSignEngine) Prereqs() Prereqs
func (*PGPSignEngine) RequiredUIs ¶
func (p *PGPSignEngine) RequiredUIs() []libkb.UIKind
func (*PGPSignEngine) Run ¶
func (p *PGPSignEngine) Run(ctx *Context) (err error)
func (*PGPSignEngine) SubConsumers ¶
func (p *PGPSignEngine) SubConsumers() []libkb.UIConsumer
type PGPUpdateEngine ¶
type PGPUpdateEngine struct { libkb.Contextified // contains filtered or unexported fields }
func NewPGPUpdateEngine ¶
func NewPGPUpdateEngine(fingerprints []string, all bool, g *libkb.GlobalContext) *PGPUpdateEngine
func (*PGPUpdateEngine) Name ¶
func (e *PGPUpdateEngine) Name() string
func (*PGPUpdateEngine) Prereqs ¶
func (e *PGPUpdateEngine) Prereqs() Prereqs
func (*PGPUpdateEngine) RequiredUIs ¶
func (e *PGPUpdateEngine) RequiredUIs() []libkb.UIKind
func (*PGPUpdateEngine) Run ¶
func (e *PGPUpdateEngine) Run(ctx *Context) error
func (*PGPUpdateEngine) SubConsumers ¶
func (e *PGPUpdateEngine) SubConsumers() []libkb.UIConsumer
type PGPVerify ¶
type PGPVerify struct { libkb.Contextified // contains filtered or unexported fields }
PGPVerify is an engine.
func NewPGPVerify ¶
func NewPGPVerify(arg *PGPVerifyArg, g *libkb.GlobalContext) *PGPVerify
NewPGPVerify creates a PGPVerify engine.
func (*PGPVerify) RequiredUIs ¶
RequiredUIs returns the required UIs.
func (*PGPVerify) SignatureStatus ¶
func (e *PGPVerify) SignatureStatus() *libkb.SignatureStatus
func (*PGPVerify) SubConsumers ¶
func (e *PGPVerify) SubConsumers() []libkb.UIConsumer
SubConsumers returns the other UI consumers for this engine.
type PGPVerifyArg ¶
type PaperKey ¶
type PaperKey struct { libkb.Contextified // contains filtered or unexported fields }
PaperKey is an engine.
func NewPaperKey ¶
func NewPaperKey(g *libkb.GlobalContext) *PaperKey
NewPaperKey creates a PaperKey engine.
func (*PaperKey) Passphrase ¶
func (*PaperKey) RequiredUIs ¶
RequiredUIs returns the required UIs.
func (*PaperKey) SubConsumers ¶
func (e *PaperKey) SubConsumers() []libkb.UIConsumer
SubConsumers returns the other UI consumers for this engine.
type PaperKeyGen ¶
type PaperKeyGen struct { libkb.Contextified // contains filtered or unexported fields }
PaperKeyGen is an engine.
func NewPaperKeyGen ¶
func NewPaperKeyGen(arg *PaperKeyGenArg, g *libkb.GlobalContext) *PaperKeyGen
NewPaperKeyGen creates a PaperKeyGen engine.
func (*PaperKeyGen) EncKey ¶
func (e *PaperKeyGen) EncKey() libkb.GenericKey
func (*PaperKeyGen) Prereqs ¶
func (e *PaperKeyGen) Prereqs() Prereqs
GetPrereqs returns the engine prereqs.
func (*PaperKeyGen) RequiredUIs ¶
func (e *PaperKeyGen) RequiredUIs() []libkb.UIKind
RequiredUIs returns the required UIs.
func (*PaperKeyGen) SigKey ¶
func (e *PaperKeyGen) SigKey() libkb.GenericKey
func (*PaperKeyGen) SubConsumers ¶
func (e *PaperKeyGen) SubConsumers() []libkb.UIConsumer
SubConsumers returns the other UI consumers for this engine.
type PaperKeyGenArg ¶
type PaperKeyGenArg struct { Passphrase libkb.PaperKeyPhrase SkipPush bool Me *libkb.User SigningKey libkb.GenericKey }
type PaperKeyPrimary ¶
type PaperKeyPrimary struct { libkb.Contextified // contains filtered or unexported fields }
PaperKeyPrimary is an engine.
func NewPaperKeyPrimary ¶
func NewPaperKeyPrimary(g *libkb.GlobalContext, args *PaperKeyPrimaryArgs) *PaperKeyPrimary
NewPaperKeyPrimary creates a PaperKeyPrimary engine.
func (*PaperKeyPrimary) Name ¶
func (e *PaperKeyPrimary) Name() string
Name is the unique engine name.
func (*PaperKeyPrimary) Prereqs ¶
func (e *PaperKeyPrimary) Prereqs() Prereqs
GetPrereqs returns the engine prereqs.
func (*PaperKeyPrimary) RequiredUIs ¶
func (e *PaperKeyPrimary) RequiredUIs() []libkb.UIKind
RequiredUIs returns the required UIs.
func (*PaperKeyPrimary) Run ¶
func (e *PaperKeyPrimary) Run(ctx *Context) error
Run starts the engine.
func (*PaperKeyPrimary) SubConsumers ¶
func (e *PaperKeyPrimary) SubConsumers() []libkb.UIConsumer
SubConsumers returns the other UI consumers for this engine.
type PaperKeyPrimaryArgs ¶
type PaperKeyPrimaryArgs struct { SigningKey libkb.GenericKey Me *libkb.User }
type PassphraseChange ¶
type PassphraseChange struct { libkb.Contextified // contains filtered or unexported fields }
PassphraseChange engine is used for changing the user's passphrase, either by replacement or by force.
func NewPassphraseChange ¶
func NewPassphraseChange(a *keybase1.PassphraseChangeArg, g *libkb.GlobalContext) *PassphraseChange
NewPassphraseChange creates a new engine for changing user passphrases, either if the current passphrase is known, or in "force" mode
func (*PassphraseChange) Name ¶
func (c *PassphraseChange) Name() string
Name provides the name of the engine for the engine interface
func (*PassphraseChange) Prereqs ¶
func (c *PassphraseChange) Prereqs() Prereqs
Prereqs returns engine prereqs
func (*PassphraseChange) RequiredUIs ¶
func (c *PassphraseChange) RequiredUIs() []libkb.UIKind
RequiredUIs returns the required UIs.
func (*PassphraseChange) Run ¶
func (c *PassphraseChange) Run(ctx *Context) (err error)
Run the engine
func (*PassphraseChange) SubConsumers ¶
func (c *PassphraseChange) SubConsumers() []libkb.UIConsumer
SubConsumers requires the other UI consumers of this engine
type Proofs ¶
type Proofs struct { Social SocialProofList `json:"social,omitempty"` Web WebProofList `json:"web,omitempty"` PGPKeys []*PGPKey `json:"pgp_keys,omitempty"` }
type Prove ¶
type Prove struct { libkb.Contextified // contains filtered or unexported fields }
Prove is an engine used for proving ownership of remote accounts, like Twitter, GitHub, etc.
func NewProve ¶
func NewProve(arg *keybase1.StartProofArg, g *libkb.GlobalContext) *Prove
NewProve makes a new Prove Engine given an RPC-friendly ProveArg.
func (*Prove) RequiredUIs ¶
RequiredUIs returns the required UIs.
func (*Prove) SubConsumers ¶
func (p *Prove) SubConsumers() []libkb.UIConsumer
SubConsumers returns the other UI consumers for this engine.
type ProveCheck ¶
type ProveCheck struct { libkb.Contextified // contains filtered or unexported fields }
ProveCheck is an engine.
func NewProveCheck ¶
func NewProveCheck(g *libkb.GlobalContext, sigID keybase1.SigID) *ProveCheck
NewProveCheck creates a ProveCheck engine.
func (*ProveCheck) Prereqs ¶
func (e *ProveCheck) Prereqs() Prereqs
GetPrereqs returns the engine prereqs.
func (*ProveCheck) RequiredUIs ¶
func (e *ProveCheck) RequiredUIs() []libkb.UIKind
RequiredUIs returns the required UIs.
func (*ProveCheck) Results ¶
func (e *ProveCheck) Results() (found bool, status keybase1.ProofStatus, proofText string)
func (*ProveCheck) SubConsumers ¶
func (e *ProveCheck) SubConsumers() []libkb.UIConsumer
SubConsumers returns the other UI consumers for this engine.
type ResetEngine ¶
type ResetEngine struct {
libkb.Contextified
}
func NewResetEngine ¶
func NewResetEngine(g *libkb.GlobalContext) *ResetEngine
func (*ResetEngine) Name ¶
func (e *ResetEngine) Name() string
func (*ResetEngine) Prereqs ¶
func (e *ResetEngine) Prereqs() Prereqs
func (*ResetEngine) RequiredUIs ¶
func (e *ResetEngine) RequiredUIs() []libkb.UIKind
func (*ResetEngine) Run ¶
func (e *ResetEngine) Run(ctx *Context) (err error)
func (*ResetEngine) SubConsumers ¶
func (e *ResetEngine) SubConsumers() []libkb.UIConsumer
type RevokeDeviceEngineArgs ¶
type RevokeEngine ¶
type RevokeEngine struct { libkb.Contextified // contains filtered or unexported fields }
func NewRevokeDeviceEngine ¶
func NewRevokeDeviceEngine(args RevokeDeviceEngineArgs, g *libkb.GlobalContext) *RevokeEngine
func NewRevokeKeyEngine ¶
func NewRevokeKeyEngine(kid string, g *libkb.GlobalContext) *RevokeEngine
func (*RevokeEngine) Name ¶
func (e *RevokeEngine) Name() string
func (*RevokeEngine) Prereqs ¶
func (e *RevokeEngine) Prereqs() Prereqs
func (*RevokeEngine) RequiredUIs ¶
func (e *RevokeEngine) RequiredUIs() []libkb.UIKind
func (*RevokeEngine) Run ¶
func (e *RevokeEngine) Run(ctx *Context) error
func (*RevokeEngine) SubConsumers ¶
func (e *RevokeEngine) SubConsumers() []libkb.UIConsumer
type RevokeSigsEngine ¶
type RevokeSigsEngine struct { libkb.Contextified // contains filtered or unexported fields }
func NewRevokeSigsEngine ¶
func NewRevokeSigsEngine(sigIDs []keybase1.SigID, g *libkb.GlobalContext) *RevokeSigsEngine
func (*RevokeSigsEngine) Name ¶
func (e *RevokeSigsEngine) Name() string
func (*RevokeSigsEngine) Prereqs ¶
func (e *RevokeSigsEngine) Prereqs() Prereqs
func (*RevokeSigsEngine) RequiredUIs ¶
func (e *RevokeSigsEngine) RequiredUIs() []libkb.UIKind
func (*RevokeSigsEngine) Run ¶
func (e *RevokeSigsEngine) Run(ctx *Context) error
func (*RevokeSigsEngine) SubConsumers ¶
func (e *RevokeSigsEngine) SubConsumers() []libkb.UIConsumer
type ScanKeys ¶
type ScanKeys struct { libkb.Contextified // contains filtered or unexported fields }
ScanKeys finds pgp decryption keys in SKB and also if there is one stored on the server. It satisfies the openpgp.KeyRing interface.
It also will find public pgp keys for signature verification.
It is not an engine, but uses an engine and is used by engines, so has to be in the engine package. It is a UIConsumer.
func NewScanKeys ¶
func NewScanKeys(secui libkb.SecretUI, idui libkb.IdentifyUI, opts *keybase1.TrackOptions, g *libkb.GlobalContext) (*ScanKeys, error)
NewScanKeys creates a ScanKeys type. If there is a login session, it will load the pgp keys for that user.
func (*ScanKeys) DecryptionKeys ¶
DecryptionKeys returns all private keys that are valid for decryption. It is only used if there is no key id in the message.
func (*ScanKeys) KeysById ¶
KeysById returns the set of keys that have the given key id. It is only called during decryption by openpgp.
func (*ScanKeys) KeysByIdUsage ¶
KeysByIdAndUsage returns the set of public keys with the given id that also meet the key usage given by requiredUsage.
The requiredUsage is expressed as the bitwise-OR of packet.KeyFlag* values.
It is only called during signature verification so therefore requiredUsage will only equal KeyFlagSign, thus only public keys are required. If this ever changes upstream in openpgp, this function will panic.
func (*ScanKeys) Owner ¶
Owner returns the owner of the keys found by ScanKeys that were used in KeysById or KeysByIdUsage.
func (*ScanKeys) RequiredUIs ¶
func (*ScanKeys) SubConsumers ¶
func (s *ScanKeys) SubConsumers() []libkb.UIConsumer
type SearchEngine ¶
type SearchEngine struct { libkb.Contextified // contains filtered or unexported fields }
func NewSearchEngine ¶
func NewSearchEngine(args SearchEngineArgs, g *libkb.GlobalContext) *SearchEngine
func (*SearchEngine) GetResults ¶
func (e *SearchEngine) GetResults() []keybase1.SearchResult
func (*SearchEngine) Name ¶
func (e *SearchEngine) Name() string
func (*SearchEngine) Prereqs ¶
func (e *SearchEngine) Prereqs() Prereqs
func (*SearchEngine) RequiredUIs ¶
func (e *SearchEngine) RequiredUIs() []libkb.UIKind
func (*SearchEngine) Run ¶
func (e *SearchEngine) Run(ctx *Context) error
func (*SearchEngine) SubConsumers ¶
func (e *SearchEngine) SubConsumers() []libkb.UIConsumer
type SearchEngineArgs ¶
type SignupEngine ¶
type SignupEngine struct { libkb.Contextified // contains filtered or unexported fields }
func NewSignupEngine ¶
func NewSignupEngine(arg *SignupEngineRunArg, g *libkb.GlobalContext) *SignupEngine
func (*SignupEngine) GetMe ¶
func (s *SignupEngine) GetMe() *libkb.User
func (*SignupEngine) Name ¶
func (s *SignupEngine) Name() string
func (*SignupEngine) Prereqs ¶
func (s *SignupEngine) Prereqs() Prereqs
func (*SignupEngine) RequiredUIs ¶
func (s *SignupEngine) RequiredUIs() []libkb.UIKind
func (*SignupEngine) Run ¶
func (s *SignupEngine) Run(ctx *Context) error
func (*SignupEngine) SubConsumers ¶
func (s *SignupEngine) SubConsumers() []libkb.UIConsumer
type SignupEngineRunArg ¶
type SignupJoinEngine ¶
type SignupJoinEngine struct { libkb.Contextified // contains filtered or unexported fields }
func NewSignupJoinEngine ¶
func NewSignupJoinEngine(g *libkb.GlobalContext) *SignupJoinEngine
func (*SignupJoinEngine) CheckRegistered ¶
func (s *SignupJoinEngine) CheckRegistered() (err error)
func (*SignupJoinEngine) Init ¶
func (s *SignupJoinEngine) Init() error
func (*SignupJoinEngine) Post ¶
func (s *SignupJoinEngine) Post(arg SignupJoinEngineRunArg) (err error)
func (*SignupJoinEngine) PostInviteRequest ¶
func (s *SignupJoinEngine) PostInviteRequest(arg libkb.InviteRequestArg) error
func (*SignupJoinEngine) Run ¶
func (s *SignupJoinEngine) Run(lctx libkb.LoginContext, arg SignupJoinEngineRunArg) (res SignupJoinEngineRunRes)
func (*SignupJoinEngine) WriteOut ¶
func (s *SignupJoinEngine) WriteOut(lctx libkb.LoginContext, salt []byte) error
type SignupJoinEngineRunArg ¶
type SignupJoinEngineRunRes ¶
type SignupJoinEngineRunRes struct { PassphraseOk bool PostOk bool WriteOk bool UID keybase1.UID User *libkb.User Err error PpGen libkb.PassphraseGeneration }
func (SignupJoinEngineRunRes) Error ¶
func (r SignupJoinEngineRunRes) Error() string
type SigsList ¶
type SigsList struct { SigsListArgs libkb.Contextified // contains filtered or unexported fields }
SigsList is an engine for the sigs-list command.
func NewSigsList ¶
func NewSigsList(args SigsListArgs, g *libkb.GlobalContext) *SigsList
NewSigsList creates a SigsList engine.
func (*SigsList) RequiredUIs ¶
RequiredUIs returns the required UIs.
func (*SigsList) SubConsumers ¶
func (e *SigsList) SubConsumers() []libkb.UIConsumer
SubConsumers returns the other UI consumers for this engine.
type SigsListArgs ¶
type SocialProof ¶
func (SocialProof) Export ¶
func (s SocialProof) Export() keybase1.TrackProof
type SocialProofList ¶
type SocialProofList []SocialProof
func (SocialProofList) Export ¶
func (s SocialProofList) Export() []keybase1.TrackProof
type Summary ¶
type Summary struct { UID keybase1.UID `json:"-"` Username string `json:"username"` Thumbnail string `json:"thumbnail"` IDVersion int `json:"id_version"` FullName string `json:"full_name"` Bio string `json:"bio"` Proofs *Proofs `json:"remote_proofs,omitempty"` }
func (Summary) Export ¶
func (s Summary) Export() keybase1.UserSummary
type TrackEngine ¶
type TrackEngine struct { libkb.Contextified // contains filtered or unexported fields }
func NewTrackEngine ¶
func NewTrackEngine(arg *TrackEngineArg, g *libkb.GlobalContext) *TrackEngine
NewTrackEngine creates a default TrackEngine for tracking theirName.
func (*TrackEngine) Name ¶
func (e *TrackEngine) Name() string
func (*TrackEngine) Prereqs ¶
func (e *TrackEngine) Prereqs() Prereqs
func (*TrackEngine) RequiredUIs ¶
func (e *TrackEngine) RequiredUIs() []libkb.UIKind
func (*TrackEngine) Run ¶
func (e *TrackEngine) Run(ctx *Context) error
func (*TrackEngine) SubConsumers ¶
func (e *TrackEngine) SubConsumers() []libkb.UIConsumer
func (*TrackEngine) User ¶
func (e *TrackEngine) User() *libkb.User
type TrackEngineArg ¶
type TrackList ¶
type TrackList []*libkb.TrackChainLink
type TrackToken ¶
type TrackToken struct { libkb.Contextified // contains filtered or unexported fields }
TrackToken is an engine.
func NewTrackToken ¶
func NewTrackToken(arg *TrackTokenArg, g *libkb.GlobalContext) *TrackToken
NewTrackToken creates a TrackToken engine.
func (*TrackToken) Prereqs ¶
func (e *TrackToken) Prereqs() Prereqs
GetPrereqs returns the engine prereqs.
func (*TrackToken) RequiredUIs ¶
func (e *TrackToken) RequiredUIs() []libkb.UIKind
RequiredUIs returns the required UIs.
func (*TrackToken) SubConsumers ¶
func (e *TrackToken) SubConsumers() []libkb.UIConsumer
SubConsumers returns the other UI consumers for this engine.
type TrackTokenArg ¶
type TrackTokenArg struct { Token libkb.IdentifyCacheToken Me *libkb.User Options keybase1.TrackOptions }
type Unlock ¶
type Unlock struct {
libkb.Contextified
}
Unlock is an engine.
func (*Unlock) RequiredUIs ¶
RequiredUIs returns the required UIs.
func (*Unlock) SubConsumers ¶
func (e *Unlock) SubConsumers() []libkb.UIConsumer
SubConsumers returns the other UI consumers for this engine.
type UntrackEngine ¶
type UntrackEngine struct { libkb.Contextified // contains filtered or unexported fields }
func NewUntrackEngine ¶
func NewUntrackEngine(arg *UntrackEngineArg, g *libkb.GlobalContext) *UntrackEngine
NewUntrackEngine creates a default UntrackEngine for tracking theirName.
func (*UntrackEngine) Name ¶
func (e *UntrackEngine) Name() string
func (*UntrackEngine) Prereqs ¶
func (e *UntrackEngine) Prereqs() Prereqs
func (*UntrackEngine) RequiredUIs ¶
func (e *UntrackEngine) RequiredUIs() []libkb.UIKind
func (*UntrackEngine) Run ¶
func (e *UntrackEngine) Run(ctx *Context) (err error)
func (*UntrackEngine) SubConsumers ¶
func (e *UntrackEngine) SubConsumers() []libkb.UIConsumer
type UntrackEngineArg ¶
type UserConfigEngine ¶
type UserConfigEngine struct { libkb.Contextified // contains filtered or unexported fields }
func NewUserConfigEngine ¶
func NewUserConfigEngine(arg *UserConfigEngineArg, g *libkb.GlobalContext) *UserConfigEngine
func (*UserConfigEngine) Name ¶
func (e *UserConfigEngine) Name() string
func (*UserConfigEngine) Prereqs ¶
func (e *UserConfigEngine) Prereqs() Prereqs
func (*UserConfigEngine) RequiredUIs ¶
func (e *UserConfigEngine) RequiredUIs() []libkb.UIKind
func (*UserConfigEngine) Run ¶
func (e *UserConfigEngine) Run(ctx *Context) (err error)
func (*UserConfigEngine) SubConsumers ¶
func (e *UserConfigEngine) SubConsumers() []libkb.UIConsumer
type UserConfigEngineArg ¶
type UserPlusKeys ¶
type UserPlusKeys struct { User *libkb.User IsTracked bool Keys []*libkb.PGPKeyBundle }
type UserSummary ¶
type UserSummary struct { libkb.Contextified // contains filtered or unexported fields }
func NewUserSummary ¶
func NewUserSummary(uids []keybase1.UID, g *libkb.GlobalContext) *UserSummary
func (*UserSummary) ExportedSummariesList ¶
func (e *UserSummary) ExportedSummariesList() (ret []keybase1.UserSummary)
func (*UserSummary) Prereqs ¶
func (e *UserSummary) Prereqs() Prereqs
GetPrereqs returns the engine prereqs (none).
func (*UserSummary) RequiredUIs ¶
func (e *UserSummary) RequiredUIs() []libkb.UIKind
RequiredUIs returns the required UIs.
func (*UserSummary) SubConsumers ¶
func (e *UserSummary) SubConsumers() []libkb.UIConsumer
SubConsumers returns the other UI consumers for this engine.
func (*UserSummary) SummariesList ¶
func (e *UserSummary) SummariesList() []*Summary
type WebProofList ¶
type WebProofList []WebProof
func (WebProofList) Export ¶
func (w WebProofList) Export() []keybase1.WebProof
Source Files ¶
- btc.go
- common.go
- context.go
- crypto.go
- device_add.go
- device_keygen.go
- device_register.go
- device_wrap.go
- devlist.go
- engine.go
- errors.go
- favorite_add.go
- favorite_delete.go
- favorite_list.go
- gpg_import_key.go
- id.go
- identify.go
- kex2_provisionee.go
- kex2_provisioner.go
- list_trackers.go
- list_tracking.go
- login.go
- login_current_device.go
- login_provision.go
- paperkey.go
- paperkey_gen.go
- paperkey_primary.go
- passphrase_change.go
- pgp_common.go
- pgp_decrypt.go
- pgp_encrypt.go
- pgp_export_key.go
- pgp_import_key.go
- pgp_keyfinder.go
- pgp_pull.go
- pgp_sign.go
- pgp_update.go
- pgp_verify.go
- prove.go
- prove_check.go
- reset.go
- revoke.go
- revoke_sigs.go
- rpc_exim.go
- scankeys.go
- search.go
- signup.go
- signup_join.go
- sigslist.go
- track.go
- track_token.go
- unlock.go
- untrack.go
- user_config.go
- user_summary.go