Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
strawberry 2024-03-17 17:38:59 -04:00
parent 7f22f0e3a6
commit 2fad03597a
3 changed files with 96 additions and 10 deletions

View file

@ -211,9 +211,10 @@ lasttimelinecount_cache: {lasttimelinecount_cache}\n"
.map(|key| (version, key))
})
.and_then(|(version, key)| {
debug!("Keypair bytes: {:?}", key);
let keypair = Ed25519KeyPair::from_der(key, version)
.map_err(|_| Error::bad_database("Private or public keys are invalid."));
debug!("Private and public key bytes: {keypair:?}");
debug!("Private and public key: {keypair:?}");
keypair
})
}