pub fn prepare_read_state(&self, paths: &[Path]) -> Result<Vec<u8>, Box<dyn Error>> {
        let content = HttpReadStateContent::ReadState {
            read_state: HttpReadState {
                sender: self.sender_field.clone(),
                paths: paths.to_vec(),
                nonce: None,
                ingress_expiry: current_time_and_expiry_time().1.as_nanos_since_unix_epoch(),
            },
        };

        let request = sign_read_state(content, &self.sender)?;
        Ok(SignedRequestBytes::try_from(request)?.into())
    }
/// Prepares and serializes a CBOR read_state request, with the given paths
Prepares and serializes a CBOR read_state request, with the given paths
Prepares and serializes a CBOR read_state request with the given paths
pub fn prepare_read_state(&self, paths: &[Path]) -> Result<Vec<u8>, Box<dyn Error>> {
        let content = HttpReadStateContent::ReadState {
            read_state: HttpReadState {
                sender: self.sender_field.clone(),
                paths: paths.to_vec(),
                nonce: None,
                ingress_expiry: current_time_and_expiry_time().1.as_nanos_since_unix_epoch(),
            },
        };
        let request = sign_read_state(content, &self.sender)?;
        Ok(SignedRequestBytes::try_from(request)?.into())
    }
pub fn prepare_read_state ( & self , paths : & [ Path ] ) -> Result < Vec < u8 > , Box < dyn Error > > { let content = HttpReadStateContent :: ReadState { read_state : HttpReadState { sender : self . sender_field . clone ( ) , paths : paths . to_vec ( ) , nonce : None , ingress_expiry : current_time_and_expiry_time ( ) . 1 . as_nanos_since_unix_epoch ( ) , } , } ; let request = sign_read_state ( content , & self . sender ) ? ; Ok ( SignedRequestBytes :: try_from ( request ) ? . into ( ) ) }
Prepares and serializes a CBOR read_state request, with the given paths
Prepares and serializes a CBOR read_state request with the given paths
&self
paths
&[Path]
&self
paths
&[Path]