pub struct PublicKey {
pub kid: String,
/* private fields */
}Expand description
A public key that signed messages are checked against, parsed once: a client’s on the server, the server’s on a client.
Fields§
§kid: StringImplementations§
Source§impl PublicKey
impl PublicKey
Sourcepub fn from_sec1(public_key: &[u8]) -> Option<Self>
pub fn from_sec1(public_key: &[u8]) -> Option<Self>
From an uncompressed SEC1 point, 0x04 || X || Y.
Sourcepub fn from_base64(public_key: &str) -> Option<Self>
pub fn from_base64(public_key: &str) -> Option<Self>
From the base64 of an uncompressed SEC1 point.
Auto Trait Implementations§
impl !RefUnwindSafe for PublicKey
impl !UnwindSafe for PublicKey
impl Forget for PublicKey
impl Freeze for PublicKey
impl Move for PublicKey
impl Send for PublicKey
impl Sync for PublicKey
impl Unpin for PublicKey
impl UnsafeUnpin for PublicKey
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