relay-core 0.1.0-alpha.0

The core components of the Relay Protocol.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use semver::Version;
use serde::{Deserialize, Serialize};

use crate::{
    prelude::{AgentId, CryptoMeta},
    signed::Signed,
};

#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct PublicEnvelope {
    pub recipient: AgentId,
    pub version: Version,
    pub crypto: CryptoMeta,
    pub content_type: String,
    /// MetaEnvelope
    pub meta: Signed,
}