12345678910111213141516171819202122232425262728 |
- use crate::crypto::prelude::*;
- use near_account_id::AccountId;
- use serde::{Deserialize, Serialize};
- use std::{collections::BTreeSet, time::Duration};
-
- #[derive(Clone, Debug, Serialize, Deserialize)]
- pub struct PublicKeys {
- pub timeout: Duration,
- pub participants: BTreeSet<AccountId>,
- }
-
- #[derive(Clone, Debug, Serialize, Deserialize)]
- pub struct ExchangeMessage {
- pub account_id: AccountId,
- pub message: Data,
- }
-
- #[derive(Clone, Debug, Serialize, Deserialize)]
- pub struct Data {
- pub moderator_pk: AccountId,
- pub data: Vec<u8>,
- }
-
- #[derive(Clone, Debug, Serialize, Deserialize)]
- pub struct ParticipantInfo {
- pub public_key: Ed25519PublicKey,
- pub account_id: AccountId,
- }
|