From 0e960d915603ffca111e72938ce34ace3febbc37 Mon Sep 17 00:00:00 2001 From: onyinyang Date: Mon, 6 Feb 2023 19:47:04 -0500 Subject: [PATCH] Make all states serializable --- crates/lox-library/src/proto/blockage_migration.rs | 2 +- crates/lox-library/src/proto/check_blockage.rs | 2 +- crates/lox-library/src/proto/issue_invite.rs | 2 +- crates/lox-library/src/proto/level_up.rs | 2 +- crates/lox-library/src/proto/migration.rs | 2 +- crates/lox-library/src/proto/redeem_invite.rs | 2 +- crates/lox-library/src/proto/trust_promotion.rs | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/crates/lox-library/src/proto/blockage_migration.rs b/crates/lox-library/src/proto/blockage_migration.rs index 4705535..f1808cd 100644 --- a/crates/lox-library/src/proto/blockage_migration.rs +++ b/crates/lox-library/src/proto/blockage_migration.rs @@ -82,7 +82,7 @@ pub struct Request { piUser: CompactProof, } -#[derive(Debug)] +#[derive(Debug, Serialize, Deserialize)] pub struct State { d: Scalar, D: RistrettoPoint, diff --git a/crates/lox-library/src/proto/check_blockage.rs b/crates/lox-library/src/proto/check_blockage.rs index 34b3823..323ad01 100644 --- a/crates/lox-library/src/proto/check_blockage.rs +++ b/crates/lox-library/src/proto/check_blockage.rs @@ -73,7 +73,7 @@ pub struct Request { piUser: CompactProof, } -#[derive(Debug)] +#[derive(Debug, Serialize, Deserialize)] pub struct State { d: Scalar, D: RistrettoPoint, diff --git a/crates/lox-library/src/proto/issue_invite.rs b/crates/lox-library/src/proto/issue_invite.rs index 610de25..0dfde3b 100644 --- a/crates/lox-library/src/proto/issue_invite.rs +++ b/crates/lox-library/src/proto/issue_invite.rs @@ -99,7 +99,7 @@ pub struct Request { piUser: CompactProof, } -#[derive(Debug)] +#[derive(Debug, Serialize, Deserialize)] pub struct State { d: Scalar, D: RistrettoPoint, diff --git a/crates/lox-library/src/proto/level_up.rs b/crates/lox-library/src/proto/level_up.rs index 5f9bc30..2480b81 100644 --- a/crates/lox-library/src/proto/level_up.rs +++ b/crates/lox-library/src/proto/level_up.rs @@ -137,7 +137,7 @@ pub struct Request { piUser: CompactProof, } -#[derive(Debug)] +#[derive(Debug, Serialize, Deserialize)] pub struct State { d: Scalar, D: RistrettoPoint, diff --git a/crates/lox-library/src/proto/migration.rs b/crates/lox-library/src/proto/migration.rs index 585f5b5..36ab7d0 100644 --- a/crates/lox-library/src/proto/migration.rs +++ b/crates/lox-library/src/proto/migration.rs @@ -73,7 +73,7 @@ pub struct Request { piUser: CompactProof, } -#[derive(Debug)] +#[derive(Debug, Serialize, Deserialize)] pub struct State { d: Scalar, D: RistrettoPoint, diff --git a/crates/lox-library/src/proto/redeem_invite.rs b/crates/lox-library/src/proto/redeem_invite.rs index 6692a38..d90fb1d 100644 --- a/crates/lox-library/src/proto/redeem_invite.rs +++ b/crates/lox-library/src/proto/redeem_invite.rs @@ -73,7 +73,7 @@ pub struct Request { piUser: CompactProof, } -#[derive(Debug)] +#[derive(Debug, Serialize, Deserialize)] pub struct State { d: Scalar, D: RistrettoPoint, diff --git a/crates/lox-library/src/proto/trust_promotion.rs b/crates/lox-library/src/proto/trust_promotion.rs index 9642c8f..18b921a 100644 --- a/crates/lox-library/src/proto/trust_promotion.rs +++ b/crates/lox-library/src/proto/trust_promotion.rs @@ -96,7 +96,7 @@ pub struct Request { piUser: CompactProof, } -#[derive(Debug)] +#[derive(Debug, Serialize, Deserialize)] pub struct State { d: Scalar, D: RistrettoPoint,