import identity types

This commit is contained in:
mycognosist 2021-12-15 15:28:34 +02:00 committed by adria0.eth
parent e04426524a
commit e393e7f72b
1 changed files with 1 additions and 11 deletions

View File

@ -7,21 +7,11 @@ use std::string::ToString;
use super::{
error::{Error, Result},
OwnedIdentity,
JsonSSBSecret, OwnedIdentity, CURVE_ED25519,
};
use crate::crypto::{ToSodiumObject, ToSsbId};
use serde_json::to_vec_pretty;
pub const CURVE_ED25519: &str = "ed25519";
#[derive(Serialize, Deserialize)]
struct JsonSSBSecret {
id: String,
curve: String,
public: String,
private: String,
}
fn to_io_error<T: ToString>(err: T) -> async_std::io::Error {
async_std::io::Error::new(std::io::ErrorKind::Other, err.to_string())
}