Rm trusted in AnkSharedSecret

This commit is contained in:
Sosthene 2024-05-22 10:21:54 +02:00
parent bd09245713
commit d7daf72da0

View File

@ -36,13 +36,12 @@ impl SharedPoint {
#[tsify(from_wasm_abi, into_wasm_abi)]
pub struct AnkSharedSecret {
secret: String,
pub trusted: bool,
}
impl AnkSharedSecret {
pub fn new(shared_point: [u8; 64], trusted: bool) -> Self {
pub fn new(shared_point: [u8; 64]) -> Self {
let secret = AnkSharedSecretHash::from_shared_point(shared_point).to_byte_array();
Self { secret: secret.to_lower_hex_string(), trusted }
Self { secret: secret.to_lower_hex_string() }
}
pub fn to_byte_array(&self) -> [u8; 32] {