Make BridgeDb (de)serializable
This commit is contained in:
parent
b607f3bc37
commit
2cd4d96b73
|
@ -6,7 +6,7 @@ edition = "2018"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
curve25519-dalek = { package = "curve25519-dalek-ng", version = "3", default-features = false, features = ["serde", "std"] }
|
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 = { version = "0.8", features = ["debug-transcript"] }
|
||||||
zkp = "0.8"
|
zkp = "0.8"
|
||||||
bincode = "1"
|
bincode = "1"
|
||||||
|
|
|
@ -106,7 +106,7 @@ impl IssuerPubKey {
|
||||||
/// The BridgeDb. This will typically be a singleton object. The
|
/// The BridgeDb. This will typically be a singleton object. The
|
||||||
/// BridgeDb's role is simply to issue signed "open invitations" to
|
/// BridgeDb's role is simply to issue signed "open invitations" to
|
||||||
/// people who are not yet part of the system.
|
/// people who are not yet part of the system.
|
||||||
#[derive(Debug)]
|
#[derive(Debug, Serialize, Deserialize)]
|
||||||
pub struct BridgeDb {
|
pub struct BridgeDb {
|
||||||
/// The keypair for signing open invitations
|
/// The keypair for signing open invitations
|
||||||
keypair: Keypair,
|
keypair: Keypair,
|
||||||
|
|
Loading…
Reference in New Issue