You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

api.rs 703B

12345678910111213141516171819202122232425262728
  1. use crate::crypto::prelude::*;
  2. use near_account_id::AccountId;
  3. use serde::{Deserialize, Serialize};
  4. use std::{collections::BTreeSet, time::Duration};
  5. #[derive(Clone, Debug, Serialize, Deserialize)]
  6. pub struct PublicKeys {
  7. pub timeout: Duration,
  8. pub participants: BTreeSet<AccountId>,
  9. }
  10. #[derive(Clone, Debug, Serialize, Deserialize)]
  11. pub struct ExchangeMessage {
  12. pub account_id: AccountId,
  13. pub message: Data,
  14. }
  15. #[derive(Clone, Debug, Serialize, Deserialize)]
  16. pub struct Data {
  17. pub moderator_pk: AccountId,
  18. pub data: Vec<u8>,
  19. }
  20. #[derive(Clone, Debug, Serialize, Deserialize)]
  21. pub struct ParticipantInfo {
  22. pub public_key: Ed25519PublicKey,
  23. pub account_id: AccountId,
  24. }