bridge_verification_info.rs 578 B

123456789101112131415161718
  1. use curve25519_dalek::Scalar;
  2. use ed25519_dalek::VerifyingKey;
  3. use lox_library::bridge_table::BridgeLine;
  4. use serde::{Deserialize, Serialize};
  5. use std::collections::HashSet;
  6. /// Information that needs to be known to verify a Troll Patrol report
  7. #[derive(Debug, Serialize, Deserialize)]
  8. pub struct BridgeVerificationInfo {
  9. /// BridgeLine for this bridge
  10. pub bridge_line: BridgeLine,
  11. /// Buckets containing this bridge if this bridge is a Lox bridge
  12. pub buckets: HashSet<Scalar>,
  13. /// Key used to verify bridge tokens
  14. pub pubkey: Option<VerifyingKey>,
  15. }