pub fn prepare_for_request(&mut self, discharge_macaroon: &Macaroon) -> Result<Macaroon> {
        let mut d = discharge_macaroon.clone();
        d.signature = Self::hash_third_party(&ByteString(vec![0; sodiumoxide::crypto::auth::KEYBYTES]), &self.signature, &d.signature)?;
        Ok(d)
    }
// Binds the given mararoon to the request by hashing the two signatures
// together and returning a new macaroon
Binds the given mararoon to the request by hashing the two signatures
together and returning a new macaroon
Binds the given mararoon to the request by hashing the two signatures together and returning a new macaroon
pub fn prepare_for_request(&mut self, discharge_macaroon: &Macaroon) -> Result<Macaroon> {
        let mut d = discharge_macaroon.clone();
        d.signature = Self::hash_third_party(&ByteString(vec![0; sodiumoxide::crypto::auth::KEYBYTES]), &self.signature, &d.signature)?;
        Ok(d)
    }
pub fn prepare_for_request ( & mut self , discharge_macaroon : & Macaroon ) -> Result < Macaroon > { let mut d = discharge_macaroon . clone ( ) ; d . signature = Self :: hash_third_party ( & ByteString ( vec ! [ 0 sodiumoxide crypto auth KEYBYTES ] ) , & self . signature , & d . signature ) ? ; Ok ( d ) }
Binds the given mararoon to the request by hashing the two signatures
together and returning a new macaroon
Binds the given mararoon to the request by hashing the two signatures together and returning a new macaroon
&mut self
discharge_macaroon
&Macaroon
&mut self
discharge_macaroon
&Macaroon