Browse Source

Make BridgeDb (de)serializable

Vecna 2 years ago
parent
commit
6ffc49a459
2 changed files with 2 additions and 2 deletions
  1. 1 1
      Cargo.toml
  2. 1 1
      src/lib.rs

+ 1 - 1
Cargo.toml

@@ -6,7 +6,7 @@ edition = "2018"
 
 [dependencies]
 curve25519-dalek = { package = "curve25519-dalek-ng", version = "3", default-features = false, features = ["serde", "std"] }
-ed25519-dalek = "1"
+ed25519-dalek = { version = "1", features = ["serde"] }
 # zkp = { version = "0.8", features = ["debug-transcript"] }
 zkp = "0.8"
 bincode = "1"

+ 1 - 1
src/lib.rs

@@ -106,7 +106,7 @@ impl IssuerPubKey {
 /// The BridgeDb.  This will typically be a singleton object.  The
 /// BridgeDb's role is simply to issue signed "open invitations" to
 /// people who are not yet part of the system.
-#[derive(Debug)]
+#[derive(Debug, Serialize, Deserialize)]
 pub struct BridgeDb {
     /// The keypair for signing open invitations
     keypair: Keypair,