diff --git a/xxdk/e2e.go b/xxdk/e2e.go index ce139c2941c26eb86ccd917403864718b61c2946..0a58b8af5b7f6a007c7b717e11ad0e57fb20196a 100644 --- a/xxdk/e2e.go +++ b/xxdk/e2e.go @@ -35,14 +35,14 @@ type E2e struct { } // Login creates a new E2e backed by the xxdk.Cmix persistent versioned.KV -// If identity == nil, a new ReceptionIdentity will be generated automagically +// It bundles a Cmix object with a ReceptionIdentity object +// and initializes the auth.State and e2e.Handler objects func Login(client *Cmix, callbacks auth.Callbacks, identity ReceptionIdentity) (m *E2e, err error) { return login(client, callbacks, identity, client.GetStorage().GetKV()) } // LoginEphemeral creates a new E2e backed by a totally ephemeral versioned.KV -// If identity == nil, a new ReceptionIdentity will be generated automagically func LoginEphemeral(client *Cmix, callbacks auth.Callbacks, identity ReceptionIdentity) (m *E2e, err error) { return login(client, callbacks, identity, versioned.NewKV(ekv.MakeMemstore()))