pub fn create_chain(key: Key<P>, id: Id) -> Client<P> {
        let req = DBWriter::<P>::create_chain(&key, id);
        // send to the connection interface.
        send(CRequest::Write(req));

        Self {
            id,
            db: Vault::<P>::new(key),
        }
    }
// create a chain for the user
create a chain for the user
create a chain for the user
pub fn create_chain(key: Key<P>, id: Id) -> Client<P> {
        let req = DBWriter::<P>::create_chain(&key, id);
        // send to the connection interface.
        send(CRequest::Write(req));
        Self {
            id,
            db: Vault::<P>::new(key),
        }
    }
pub fn create_chain ( key : Key < P > , id : Id ) -> Client < P > { let req = DBWriter :: < P > :: create_chain ( & key , id ) ; // send to the connection interface. send ( CRequest :: Write ( req ) ) ; Self { id , db : Vault :: < P > :: new ( key ) , } }
create a chain for the user
create a chain for the user
key
Key<P>
id
Id