group identity types together
This commit is contained in:
parent
22a631d4aa
commit
e04426524a
|
@ -1,7 +1,18 @@
|
|||
use crate::crypto::CURVE_ED25519_SUFFIX;
|
||||
use kuska_sodiumoxide::crypto::sign::ed25519;
|
||||
|
||||
#[derive(Debug, Clone)]
|
||||
/// Ed25519 signature scheme identifier.
|
||||
pub const CURVE_ED25519: &str = "ed25519";
|
||||
|
||||
#[derive(Serialize, Deserialize)]
|
||||
pub struct JsonSSBSecret {
|
||||
pub curve: String,
|
||||
pub id: String,
|
||||
pub private: String,
|
||||
pub public: String,
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, PartialEq)]
|
||||
pub struct OwnedIdentity {
|
||||
pub id: String,
|
||||
pub pk: ed25519::PublicKey,
|
||||
|
|
Loading…
Reference in New Issue