Fields
secret_key: Vec<u8>Implementations
sourceimpl Response
 
impl Response
sourcepub fn decrypt(
    &self,
    response: Vec<u8>,
    public_key: Option<Vec<u8>>,
    nonce: Option<Vec<u8>>
) -> Result<String, Error>
 
pub fn decrypt(
    &self,
    response: Vec<u8>,
    public_key: Option<Vec<u8>>,
    nonce: Option<Vec<u8>>
) -> Result<String, Error>
Decrypts a response
sourcepub fn is_signature_valid(
    response: String,
    signature: Vec<u8>,
    public_key: Vec<u8>
) -> Result<bool, Error>
 
pub fn is_signature_valid(
    response: String,
    signature: Vec<u8>,
    public_key: Vec<u8>
) -> Result<bool, Error>
Returns true if the signature is valid for the response
sourcepub fn get_public_key_from_response(response: Vec<u8>) -> Result<Vec<u8>, Error>
 
pub fn get_public_key_from_response(response: Vec<u8>) -> Result<Vec<u8>, Error>
Extracts the public key from a v2 response
sourcepub fn get_signing_public_key_from_response(
    response: Vec<u8>
) -> Result<Vec<u8>, Error>
 
pub fn get_signing_public_key_from_response(
    response: Vec<u8>
) -> Result<Vec<u8>, Error>
Extracts the public signing key from a v2 response
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Response
impl Send for Response
impl Sync for Response
impl Unpin for Response
impl UnwindSafe for Response
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
    T: ?Sized,
 
impl<T> BorrowMut<T> for Twhere
    T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
 
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more