pub fn rlp_encode_registration_params(&self, quote: String) -> Result<(Vec<u8>, ASResponse), Error> {
        let as_response = self.get_report(quote)?;
        // certificate,signature,report_string are all need to be rlp encoded and send to register() func in enigma contract
        let encoded;
        {
            let certificate = as_response.result.certificate.as_str();
            let signature = as_response.result.signature.as_str();
            let report_string = as_response.result.report_string.as_str();
            // rlp encoding
            let clear = vec![report_string, certificate, signature];
            encoded = rlp::encode_list::<&str, &str>(&clear).to_vec();
        }

        Ok((encoded, as_response))
    }
// encode to rlp the report -> registration for the enigma contract
encode to rlp the report -> registration for the enigma contract
encode to rlp the report - > registration for the enigma contract
pub fn rlp_encode_registration_params(&self, quote: String) -> Result<(Vec<u8>, ASResponse), Error> {
        let as_response = self.get_report(quote)?;
        // certificate,signature,report_string are all need to be rlp encoded and send to register() func in enigma contract
        let encoded;
        {
            let certificate = as_response.result.certificate.as_str();
            let signature = as_response.result.signature.as_str();
            let report_string = as_response.result.report_string.as_str();
            // rlp encoding
            let clear = vec![report_string, certificate, signature];
            encoded = rlp::encode_list::<&str, &str>(&clear).to_vec();
        }
        Ok((encoded, as_response))
    }
pub fn rlp_encode_registration_params ( & self , quote : String ) -> Result < ( Vec < u8 > , ASResponse ) , Error > { let as_response = self . get_report ( quote ) ? ; // certificate,signature,report_string are all need to be rlp encoded and send to register() func in enigma contract let encoded ; { let certificate = as_response . result . certificate . as_str ( ) ; let signature = as_response . result . signature . as_str ( ) ; let report_string = as_response . result . report_string . as_str ( ) ; // rlp encoding let clear = vec ! [ report_string certificate signature ] ; encoded = rlp :: encode_list :: < & str , & str > ( & clear ) . to_vec ( ) ; } Ok ( ( encoded , as_response ) ) }
encode to rlp the report -> registration for the enigma contract
encode to rlp the report - > registration for the enigma contract
&self
quote
String
&self
quote
String