|
|
@@ -24,12 +24,16 @@ pub enum PositiveReportError {
|
|
|
pub struct PositiveReport {
|
|
|
/// hashed fingerprint (SHA-1 hash of 20-byte bridge ID)
|
|
|
pub fingerprint: [u8; 20],
|
|
|
+
|
|
|
/// token from the bridge indicating it was reached
|
|
|
bridge_token: Option<BridgeToken>,
|
|
|
+
|
|
|
// proof of Lox cred with level >= 3 and this bridge
|
|
|
lox_proof: lox_pr::Request,
|
|
|
+
|
|
|
/// user's country code, may be an empty string
|
|
|
pub country: String,
|
|
|
+
|
|
|
/// today's Julian date
|
|
|
pub date: u32,
|
|
|
}
|
|
|
@@ -189,8 +193,10 @@ impl SerializablePositiveReport {
|
|
|
pub struct UnsignedBridgeToken {
|
|
|
/// hashed fingerprint (SHA-1 hash of 20-byte bridge ID)
|
|
|
pub fingerprint: [u8; 20],
|
|
|
+
|
|
|
/// client's country code
|
|
|
pub country: String,
|
|
|
+
|
|
|
/// today's Julian date
|
|
|
pub date: u32,
|
|
|
}
|
|
|
@@ -259,6 +265,7 @@ impl SerializableUnsignedBridgeToken {
|
|
|
pub struct BridgeToken {
|
|
|
/// the unsigned version of this token
|
|
|
pub unsigned_bridge_token: UnsignedBridgeToken,
|
|
|
+
|
|
|
/// signature from bridge's ed25519 key
|
|
|
sig: Signature,
|
|
|
}
|