pub struct AgentPubkey(/* private fields */);Expand description
Ed25519 public key (32 bytes). Wire format is base64url-no-pad (43 chars).
Implementations§
Source§impl AgentPubkey
impl AgentPubkey
Sourcepub const SEALED_SENDER: AgentPubkey
pub const SEALED_SENDER: AgentPubkey
Sentinel “author” stored for sealed-sender messages: the relay never
learns which member authored them, so it records this constant instead
of a real pubkey. The true sender is inside the MLS envelope. All-0xFF
is not a valid Ed25519 point used as an identity here.
pub fn from_bytes(bytes: [u8; 32]) -> Self
pub fn as_bytes(&self) -> &[u8; 32]
Trait Implementations§
Source§impl Clone for AgentPubkey
impl Clone for AgentPubkey
Source§fn clone(&self) -> AgentPubkey
fn clone(&self) -> AgentPubkey
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 moreimpl Copy for AgentPubkey
Source§impl Debug for AgentPubkey
impl Debug for AgentPubkey
Source§impl<'de> Deserialize<'de> for AgentPubkey
impl<'de> Deserialize<'de> for AgentPubkey
Source§fn deserialize<D: Deserializer<'de>>(de: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(de: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for AgentPubkey
impl Display for AgentPubkey
impl Eq for AgentPubkey
Source§impl FromStr for AgentPubkey
impl FromStr for AgentPubkey
Source§impl Hash for AgentPubkey
impl Hash for AgentPubkey
Source§impl PartialEq for AgentPubkey
impl PartialEq for AgentPubkey
Source§impl Serialize for AgentPubkey
impl Serialize for AgentPubkey
impl StructuralPartialEq for AgentPubkey
Auto Trait Implementations§
impl Freeze for AgentPubkey
impl RefUnwindSafe for AgentPubkey
impl Send for AgentPubkey
impl Sync for AgentPubkey
impl Unpin for AgentPubkey
impl UnsafeUnpin for AgentPubkey
impl UnwindSafe for AgentPubkey
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