MCPcopy
hub / github.com/ayn2op/discordo / generatePrivateKey

Method generatePrivateKey

internal/ui/login/qr/msg.go:181–189  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

179}
180
181func (m *Model) generatePrivateKey() tview.Cmd {
182 return func() tview.Msg {
183 privateKey, err := rsa.GenerateKey(rand.Reader, 2048)
184 if err != nil {
185 return newErrMsg(err)
186 }
187 return privateKeyMsg{privateKey: privateKey}
188 }
189}
190
191func (m *Model) sendInit() tview.Cmd {
192 return func() tview.Msg {

Callers 1

UpdateMethod · 0.95

Calls 1

newErrMsgFunction · 0.85

Tested by

no test coverage detected