aboutsummaryrefslogtreecommitdiffstats
path: root/adenosine-pds/src/db.rs
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2022-11-02 01:39:19 -0700
committerBryan Newbold <bnewbold@robocracy.org>2022-11-02 01:39:19 -0700
commit5a9333475518c3a7d9396d120e07d813252a0a09 (patch)
treed38b3faa7e334e7674f6819f855b5dbbcb9eb180 /adenosine-pds/src/db.rs
parentf3fdc7ba600c65fdb05efc2fd5e9a651b4b9956e (diff)
downloadadenosine-5a9333475518c3a7d9396d120e07d813252a0a09.tar.gz
adenosine-5a9333475518c3a7d9396d120e07d813252a0a09.zip
pds: refactoring
Diffstat (limited to 'adenosine-pds/src/db.rs')
-rw-r--r--adenosine-pds/src/db.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/adenosine-pds/src/db.rs b/adenosine-pds/src/db.rs
index 905210c..35c798d 100644
--- a/adenosine-pds/src/db.rs
+++ b/adenosine-pds/src/db.rs
@@ -2,6 +2,7 @@ use crate::AtpSession;
/// ATP database (as distinct from blockstore)
use anyhow::{anyhow, Result};
use lazy_static::lazy_static;
+use log::debug;
use rusqlite::{params, Connection};
use rusqlite_migration::{Migrations, M};
use serde_json::Value;
@@ -107,6 +108,7 @@ impl AtpDatabase {
// TODO: insert did_doc
// TODO: also need to initialize repo with... profile?
{
+ debug!("bcrypt hashing password (can be slow)...");
let password_bcrypt = bcrypt::hash(password, bcrypt::DEFAULT_COST)?;
let signing_key = "key:TODO";
let did = "did:TODO";