Rm trusted in AnkSharedSecret
This commit is contained in:
parent
bd09245713
commit
d7daf72da0
@ -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] {
|
||||
|
Loading…
x
Reference in New Issue
Block a user