From: LLFourn Date: Tue, 3 Nov 2020 05:06:03 +0000 (+1100) Subject: Make Signer and AddressValidator Send and Sync X-Git-Tag: v0.2.0~83^2 X-Git-Url: http://internal-gitweb-vhost/script/%22https:/%22example_cli/enum.Commands.html/struct.String.html?a=commitdiff_plain;h=796f9f5a70a9579df3ecec4941d104e3466f5df0;p=bdk Make Signer and AddressValidator Send and Sync --- diff --git a/src/wallet/address_validator.rs b/src/wallet/address_validator.rs index 1a76feb9..cb4087aa 100644 --- a/src/wallet/address_validator.rs +++ b/src/wallet/address_validator.rs @@ -106,7 +106,7 @@ impl std::error::Error for AddressValidatorError {} /// 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. -pub trait AddressValidator { +pub trait AddressValidator: Send + Sync { /// Validate or inspect an address fn validate( &self, diff --git a/src/wallet/signer.rs b/src/wallet/signer.rs index f0392a80..24f08aef 100644 --- a/src/wallet/signer.rs +++ b/src/wallet/signer.rs @@ -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 module`](crate::wallet::signer)'s documentation. -pub trait Signer: fmt::Debug { +pub trait Signer: fmt::Debug + Send + Sync { /// Sign a PSBT /// /// The `input_index` argument is only provided if the wallet doesn't declare to sign the whole