pub struct AuthMessage {
pub version: String,
pub message_type: MessageType,
pub identity_key: String,
pub nonce: Option<String>,
pub your_nonce: Option<String>,
pub initial_nonce: Option<String>,
pub certificates: Option<Vec<Certificate>>,
pub requested_certificates: Option<RequestedCertificateSet>,
pub payload: Option<Vec<u8>>,
pub signature: Option<Vec<u8>>,
}Expand description
A message in the BRC-31 Authrite authentication protocol.
All fields match the TS SDK AuthMessage format for wire compatibility.
Fields§
§version: StringProtocol version string.
message_type: MessageTypeThe type of this message.
identity_key: StringCompressed hex public key of the sender.
nonce: Option<String>Base64-encoded nonce created by the sender.
your_nonce: Option<String>The other party’s nonce (echoed back in responses).
initial_nonce: Option<String>For general messages, references the session’s initial nonce.
certificates: Option<Vec<Certificate>>Certificates to share with the peer.
requested_certificates: Option<RequestedCertificateSet>Certificate types and fields being requested from the peer.
payload: Option<Vec<u8>>General message payload bytes.
signature: Option<Vec<u8>>ECDSA signature over the message.
Trait Implementations§
Source§impl Clone for AuthMessage
impl Clone for AuthMessage
Source§fn clone(&self) -> AuthMessage
fn clone(&self) -> AuthMessage
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for AuthMessage
impl !RefUnwindSafe for AuthMessage
impl Send for AuthMessage
impl Sync for AuthMessage
impl Unpin for AuthMessage
impl UnsafeUnpin for AuthMessage
impl !UnwindSafe for AuthMessage
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