Make Signer and AddressValidator Send and Sync
This commit is contained in:
parent
3b3659fc0c
commit
796f9f5a70
@ -106,7 +106,7 @@ impl std::error::Error for AddressValidatorError {}
|
|||||||
/// validator will be propagated up to the original caller that triggered the address generation.
|
/// validator will be propagated up to the original caller that triggered the address generation.
|
||||||
///
|
///
|
||||||
/// For a usage example see [this module](crate::address_validator)'s documentation.
|
/// For a usage example see [this module](crate::address_validator)'s documentation.
|
||||||
pub trait AddressValidator {
|
pub trait AddressValidator: Send + Sync {
|
||||||
/// Validate or inspect an address
|
/// Validate or inspect an address
|
||||||
fn validate(
|
fn validate(
|
||||||
&self,
|
&self,
|
||||||
|
@ -162,7 +162,7 @@ impl std::error::Error for SignerError {}
|
|||||||
///
|
///
|
||||||
/// This trait can be implemented to provide customized signers to the wallet. For an example see
|
/// This trait can be implemented to provide customized signers to the wallet. For an example see
|
||||||
/// [`this module`](crate::wallet::signer)'s documentation.
|
/// [`this module`](crate::wallet::signer)'s documentation.
|
||||||
pub trait Signer: fmt::Debug {
|
pub trait Signer: fmt::Debug + Send + Sync {
|
||||||
/// Sign a PSBT
|
/// Sign a PSBT
|
||||||
///
|
///
|
||||||
/// The `input_index` argument is only provided if the wallet doesn't declare to sign the whole
|
/// The `input_index` argument is only provided if the wallet doesn't declare to sign the whole
|
||||||
|
Loading…
x
Reference in New Issue
Block a user