From e393e7f72b61e77a49ddb74c83c8be087fbeffa0 Mon Sep 17 00:00:00 2001 From: mycognosist Date: Wed, 15 Dec 2021 15:28:34 +0200 Subject: [PATCH] import identity types --- src/keystore/patchwork.rs | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/src/keystore/patchwork.rs b/src/keystore/patchwork.rs index 2ce42de..0340226 100644 --- a/src/keystore/patchwork.rs +++ b/src/keystore/patchwork.rs @@ -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(err: T) -> async_std::io::Error { async_std::io::Error::new(std::io::ErrorKind::Other, err.to_string()) }