pub struct InstallationKey {
pub secret: Vec<u8>,
pub private_key: SigningKey,
pub installation_id: String,
}Expand description
Installation key containing cryptographic material for authentication
Fields§
§secret: Vec<u8>32-byte secret for proof generation
private_key: SigningKeyECDSA private key on P-256 curve
installation_id: StringInstallation ID (UUID)
Implementations§
Source§impl InstallationKey
impl InstallationKey
Sourcepub fn public_key_b64(&self) -> String
pub fn public_key_b64(&self) -> String
Get the public key in base64-encoded DER format
Sourcepub fn base_string(&self) -> String
pub fn base_string(&self) -> String
Get the base string: installation_id.sha256(public_key_der_bytes)
Trait Implementations§
Source§impl Clone for InstallationKey
impl Clone for InstallationKey
Source§fn clone(&self) -> InstallationKey
fn clone(&self) -> InstallationKey
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 moreSource§impl Debug for InstallationKey
impl Debug for InstallationKey
Source§impl<'de> Deserialize<'de> for InstallationKey
impl<'de> Deserialize<'de> for InstallationKey
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for InstallationKey
impl RefUnwindSafe for InstallationKey
impl Send for InstallationKey
impl Sync for InstallationKey
impl Unpin for InstallationKey
impl UnwindSafe for InstallationKey
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