aboutsummaryrefslogtreecommitdiffstats
path: root/adenosine-pds
diff options
context:
space:
mode:
Diffstat (limited to 'adenosine-pds')
-rw-r--r--adenosine-pds/src/lib.rs10
1 files changed, 3 insertions, 7 deletions
diff --git a/adenosine-pds/src/lib.rs b/adenosine-pds/src/lib.rs
index 5a2266e..c267135 100644
--- a/adenosine-pds/src/lib.rs
+++ b/adenosine-pds/src/lib.rs
@@ -504,14 +504,10 @@ pub fn create_account(
srv.atp_db.put_did_doc(&did, &did_doc)?;
// insert empty MST repository
- let root_cid = {
- let empty_map_cid = srv.repo.mst_from_map(&Default::default())?;
- let meta_cid = srv.repo.write_metadata(&did)?;
- srv.repo.write_root(meta_cid, None, empty_map_cid)?
- };
- let _commit_cid = srv.repo.write_commit(&did, root_cid, "XXX-dummy-sig")?;
-
let keypair = srv.pds_keypair.clone();
+ let empty_map_cid = srv.repo.mst_from_map(&Default::default())?;
+ let _commit_cid = srv.repo.write_commit(&did, None, empty_map_cid, &keypair)?;
+
let sess = srv
.atp_db
.create_session(&req.handle, &req.password, &keypair)?;