Struct biscuit_auth::PrivateKey
source · pub struct PrivateKey(_);Expand description
the private part of a KeyPair
Implementations§
source§impl PrivateKey
impl PrivateKey
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