Make BridgeDb (de)serializable

This commit is contained in:
Vecna 2022-11-14 13:56:13 -05:00
parent b607f3bc37
commit 2cd4d96b73
2 changed files with 2 additions and 2 deletions

View File

@ -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"

View File

@ -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,