relay-core 0.2.0-beta.3

The core components of the Relay Protocol.
Documentation
use chrono::{DateTime, Utc};
use semver::Version;
use serde::{Deserialize, Serialize};
use uuid::Uuid;

use crate::{
    prelude::{Address, CryptoInfo},
    signed::Signed,
};

#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct DeliveryEnvelope {
    pub gid: Uuid,
    pub version: Version,
    pub from: Address,
    pub to: Address,
    pub self_encrypted: bool,
    pub timestamp: DateTime<Utc>,
    pub crypto: CryptoInfo,
    pub payload: Signed, // PayloadEnvelope
}