func (e *DeviceKeygen) appendEldest(ds []libkb.Delegator, ctx *Context, pargs *DeviceKeygenPushArgs) []libkb.Delegator { if e.pushErr != nil { return ds } var d libkb.Delegator d, e.pushErr = e.naclSignGen.Push(ctx.LoginContext, true) if e.pushErr == nil { d.SetGlobalContext(e.G()) return append(ds, d) } return ds }
func (e *DeviceKeygen) appendEncKey(ds []libkb.Delegator, ctx *Context, signer libkb.GenericKey, eldestKID keybase1.KID, user *libkb.User) []libkb.Delegator { if e.pushErr != nil { return ds } e.naclEncGen.UpdateArg(signer, eldestKID, false, user) var d libkb.Delegator d, e.pushErr = e.naclEncGen.Push(ctx.LoginContext, true) if e.pushErr == nil { d.SetGlobalContext(e.G()) return append(ds, d) } return ds }
func (e *DeviceKeygen) appendSibkey(ds []libkb.Delegator, ctx *Context, pargs *DeviceKeygenPushArgs) []libkb.Delegator { if e.pushErr != nil { return ds } var d libkb.Delegator e.naclSignGen.UpdateArg(pargs.Signer, pargs.EldestKID, true, pargs.User) d, e.pushErr = e.naclSignGen.Push(ctx.LoginContext, true) if e.pushErr == nil { d.SetGlobalContext(e.G()) return append(ds, d) } return ds }