|
@@ -27,20 +27,20 @@ pub struct NegativeReport {
|
|
|
/// hashed fingerprint (SHA-1 hash of 20-byte bridge ID)
|
|
|
pub fingerprint: [u8; 20],
|
|
|
|
|
|
- /// some way to prove knowledge of bridge
|
|
|
- bridge_pok: ProofOfBridgeKnowledge,
|
|
|
-
|
|
|
/// user's country code
|
|
|
pub country: String,
|
|
|
|
|
|
/// today's Julian date
|
|
|
pub date: u32,
|
|
|
|
|
|
- /// a random nonce used in the bridge_pok
|
|
|
- pub nonce: [u8; 32],
|
|
|
-
|
|
|
/// the bridge distributor, e.g., Lox, Https, or Moat
|
|
|
pub distributor: BridgeDistributor,
|
|
|
+
|
|
|
+ /// some way to prove knowledge of bridge
|
|
|
+ bridge_pok: ProofOfBridgeKnowledge,
|
|
|
+
|
|
|
+ /// a random nonce used in the bridge_pok
|
|
|
+ pub nonce: [u8; 32],
|
|
|
}
|
|
|
|
|
|
impl NegativeReport {
|
|
@@ -179,11 +179,11 @@ impl NegativeReport {
|
|
|
#[derive(Eq, PartialEq, Ord, PartialOrd, Serialize, Deserialize)]
|
|
|
pub struct SerializableNegativeReport {
|
|
|
pub fingerprint: [u8; 20],
|
|
|
- bridge_pok: ProofOfBridgeKnowledge,
|
|
|
pub country: String,
|
|
|
pub date: u32,
|
|
|
- pub nonce: [u8; 32],
|
|
|
pub distributor: BridgeDistributor,
|
|
|
+ bridge_pok: ProofOfBridgeKnowledge,
|
|
|
+ pub nonce: [u8; 32],
|
|
|
}
|
|
|
|
|
|
impl SerializableNegativeReport {
|