Struct biscuit_auth::PublicKey
source · pub struct PublicKey(_);Expand description
the public part of a KeyPair
Implementations§
source§impl PublicKey
impl PublicKey
sourcepub fn to_bytes_hex(&self) -> String
pub fn to_bytes_hex(&self) -> String
serializes to an hex-encoded string
sourcepub fn from_bytes(bytes: &[u8]) -> Result<Self, Format>
pub fn from_bytes(bytes: &[u8]) -> Result<Self, Format>
deserializes from a byte array
sourcepub fn from_bytes_hex(str: &str) -> Result<Self, Format>
pub fn from_bytes_hex(str: &str) -> Result<Self, Format>
deserializes from an hex-encoded string