pub struct CeremonyEnvelope {
pub ceremony_id: String,
pub phase: CeremonyPhase,
pub payload_kind: CeremonyPayloadKind,
pub sender_did: Did,
pub recipient_did: Option<Did>,
pub sequence: u64,
pub payload_bytes: Vec<u8>,
pub payload_hash: Hash256,
pub signature: Signature,
}Expand description
Signed, bounded, untrusted relay envelope.
Fields§
§ceremony_id: StringCeremony identifier.
phase: CeremonyPhaseCeremony phase.
payload_kind: CeremonyPayloadKindPayload type.
sender_did: DidRostered sender DID.
recipient_did: Option<Did>Optional rostered recipient DID.
sequence: u64Monotonic sender sequence.
payload_bytes: Vec<u8>Bounded opaque payload.
payload_hash: Hash256Canonical payload hash.
signature: SignatureEd25519 signature by the sender.
Implementations§
Source§impl CeremonyEnvelope
impl CeremonyEnvelope
Sourcepub fn sign(
draft: CeremonyEnvelopeDraft,
signing_secret: &SecretKey,
) -> Result<Self>
pub fn sign( draft: CeremonyEnvelopeDraft, signing_secret: &SecretKey, ) -> Result<Self>
Create and sign a portal relay envelope.
Trait Implementations§
Source§impl Clone for CeremonyEnvelope
impl Clone for CeremonyEnvelope
Source§fn clone(&self) -> CeremonyEnvelope
fn clone(&self) -> CeremonyEnvelope
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CeremonyEnvelope
impl Debug for CeremonyEnvelope
Source§impl<'de> Deserialize<'de> for CeremonyEnvelope
impl<'de> Deserialize<'de> for CeremonyEnvelope
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for CeremonyEnvelope
Source§impl PartialEq for CeremonyEnvelope
impl PartialEq for CeremonyEnvelope
Source§fn eq(&self, other: &CeremonyEnvelope) -> bool
fn eq(&self, other: &CeremonyEnvelope) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for CeremonyEnvelope
impl Serialize for CeremonyEnvelope
impl StructuralPartialEq for CeremonyEnvelope
Auto Trait Implementations§
impl Freeze for CeremonyEnvelope
impl RefUnwindSafe for CeremonyEnvelope
impl Send for CeremonyEnvelope
impl Sync for CeremonyEnvelope
impl Unpin for CeremonyEnvelope
impl UnsafeUnpin for CeremonyEnvelope
impl UnwindSafe for CeremonyEnvelope
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more