Unresolved
Details
Assignee
Marcin SwieczkowskiMarcin SwieczkowskiReporter
Nikita BaksalyarNikita BaksalyarStart date
Jun 18, 2018End date
Jun 26, 2018Story Points
8Components
Priority
Major
Details
Details
Assignee
Marcin Swieczkowski
Marcin SwieczkowskiReporter
Nikita Baksalyar
Nikita BaksalyarStart date
Jun 18, 2018
End date
Jun 26, 2018
Story Points
8
Components
Priority
Created May 29, 2018 at 11:31 AM
Updated June 26, 2018 at 3:39 PM
It should not be possible to create
safe_core::Client
with user's credentials directly through an app written in Rust (or at least it should not be as simple as it is now).Move the Client constructors out of the Client
impl
so that they are stand-alone functions in theclient
module. Note that theclient
module is private and these functions will need to bepub use
fromlib.rs
. Rename them when exporting by prepending aclient_*
prefix, i.e.unregistered
should bepub use
asclient_unregistered
. Do not re-export them in safe_app; only re-export Client. This ensures that the Client constructors are only usable within the safe_app internal implementation (unless somoene links directly to safe_core, in which case they're on their own).We will be moving the following functions out of
Client
:unregistered
registered_with_seed
registered
login_with_seed
login
from_keys
from_keys_with_hook
In addition to the new constructor-less
Client
, re-export the following:ClientKeys
andMDataInfo
structsDIR_TAG
andMAIDSAFE_TAG
constantsapp_container_name
functionimmutable_data
moduleipc
modulemdata_info
modulenfs
module