minor fixes
This commit is contained in:
parent
f3e504689e
commit
58dfe53408
@ -253,7 +253,6 @@ pub fn get_address() -> ApiResult<String> {
|
|||||||
.get_sp_client()
|
.get_sp_client()
|
||||||
.get_receiving_address()
|
.get_receiving_address()
|
||||||
.to_string();
|
.to_string();
|
||||||
debug!("{}", address);
|
|
||||||
Ok(address)
|
Ok(address)
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1451,7 +1450,8 @@ pub fn create_update_message(
|
|||||||
}
|
}
|
||||||
|
|
||||||
// We shouldn't ever have error here since we already checked above
|
// We shouldn't ever have error here since we already checked above
|
||||||
let shared_secret = shared_secrets.get_secret_for_address(sp_address.as_str().try_into()?).unwrap();
|
let shared_secret = shared_secrets.get_secret_for_address(sp_address.as_str().try_into()?)
|
||||||
|
.ok_or(AnyhowError::msg("Failed to retrieve secret".to_owned()))?;
|
||||||
|
|
||||||
let cipher = encrypt_with_key(shared_secret.as_byte_array(), prd_msg.as_bytes())?;
|
let cipher = encrypt_with_key(shared_secret.as_byte_array(), prd_msg.as_bytes())?;
|
||||||
ciphers.push(cipher.to_lower_hex_string());
|
ciphers.push(cipher.to_lower_hex_string());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user