From 2cd4d96b73b5f99c9221a6ded19d025bf2cc19d4 Mon Sep 17 00:00:00 2001 From: Vecna Date: Mon, 14 Nov 2022 13:56:13 -0500 Subject: [PATCH] Make BridgeDb (de)serializable --- crates/lox-library/Cargo.toml | 2 +- crates/lox-library/src/lib.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/lox-library/Cargo.toml b/crates/lox-library/Cargo.toml index ea76d76..94702a7 100644 --- a/crates/lox-library/Cargo.toml +++ b/crates/lox-library/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" diff --git a/crates/lox-library/src/lib.rs b/crates/lox-library/src/lib.rs index f46e0bf..65709e0 100644 --- a/crates/lox-library/src/lib.rs +++ b/crates/lox-library/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,