Remove is_linked() and is_linking() from device
This commit is contained in:
parent
47eda1d26c
commit
44320fdcf7
@ -3,7 +3,7 @@ use tsify::Tsify;
|
||||
use wasm_bindgen::prelude::*;
|
||||
|
||||
use sp_client::{
|
||||
bitcoin::{consensus::serialize, OutPoint}, silentpayments::utils::SilentPaymentAddress, spclient::SpWallet
|
||||
bitcoin::OutPoint, silentpayments::utils::SilentPaymentAddress, spclient::SpWallet
|
||||
};
|
||||
|
||||
use crate::pcd::Member;
|
||||
@ -35,20 +35,6 @@ impl Device {
|
||||
&mut self.sp_wallet
|
||||
}
|
||||
|
||||
pub fn is_linking(&self) -> bool {
|
||||
match self.pairing_process_commitment {
|
||||
Some(ref value) => serialize(value).iter().all(|&b| b == 0),
|
||||
None => false,
|
||||
}
|
||||
}
|
||||
|
||||
pub fn is_linked(&self) -> bool {
|
||||
match self.pairing_process_commitment {
|
||||
Some(ref value) => !serialize(value).iter().all(|&b| b == 0),
|
||||
None => false,
|
||||
}
|
||||
}
|
||||
|
||||
pub fn get_pairing_commitment(&self) -> Option<OutPoint> {
|
||||
self.pairing_process_commitment.clone()
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user