pub struct SecpMultisigUnlocker { /* private fields */ }Implementations§
Source§impl SecpMultisigUnlocker
impl SecpMultisigUnlocker
pub fn new(signer: SecpMultisigScriptSigner) -> SecpMultisigUnlocker
Trait Implementations§
Source§impl From<(Box<dyn Signer>, MultisigConfig)> for SecpMultisigUnlocker
impl From<(Box<dyn Signer>, MultisigConfig)> for SecpMultisigUnlocker
Source§fn from(
(signer, config): (Box<dyn Signer>, MultisigConfig),
) -> SecpMultisigUnlocker
fn from( (signer, config): (Box<dyn Signer>, MultisigConfig), ) -> SecpMultisigUnlocker
Converts to this type from the input type.
Source§impl ScriptUnlocker for SecpMultisigUnlocker
impl ScriptUnlocker for SecpMultisigUnlocker
fn match_args(&self, args: &[u8]) -> bool
Source§fn unlock_async<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
tx: &'life1 TransactionView,
script_group: &'life2 ScriptGroup,
_tx_dep_provider: &'life3 dyn TransactionDependencyProvider,
) -> Pin<Box<dyn Future<Output = Result<TransactionView, UnlockError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
fn unlock_async<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
tx: &'life1 TransactionView,
script_group: &'life2 ScriptGroup,
_tx_dep_provider: &'life3 dyn TransactionDependencyProvider,
) -> Pin<Box<dyn Future<Output = Result<TransactionView, UnlockError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Add signature or other information to witnesses, when the script is
already unlocked should reset the witness instead.
Source§fn fill_placeholder_witness_async<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
tx: &'life1 TransactionView,
script_group: &'life2 ScriptGroup,
_tx_dep_provider: &'life3 dyn TransactionDependencyProvider,
) -> Pin<Box<dyn Future<Output = Result<TransactionView, UnlockError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
fn fill_placeholder_witness_async<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
tx: &'life1 TransactionView,
script_group: &'life2 ScriptGroup,
_tx_dep_provider: &'life3 dyn TransactionDependencyProvider,
) -> Pin<Box<dyn Future<Output = Result<TransactionView, UnlockError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Fill a placehodler witness before balance the transaction capacity
Source§fn is_unlocked_async<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
_tx: &'life1 TransactionView,
_script_group: &'life2 ScriptGroup,
_tx_dep_provider: &'life3 dyn TransactionDependencyProvider,
) -> Pin<Box<dyn Future<Output = Result<bool, UnlockError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
fn is_unlocked_async<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
_tx: &'life1 TransactionView,
_script_group: &'life2 ScriptGroup,
_tx_dep_provider: &'life3 dyn TransactionDependencyProvider,
) -> Pin<Box<dyn Future<Output = Result<bool, UnlockError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Check if the script group is already unlocked
fn is_unlocked( &self, tx: &TransactionView, script_group: &ScriptGroup, tx_dep_provider: &dyn TransactionDependencyProvider, ) -> Result<bool, UnlockError>
fn unlock( &self, tx: &TransactionView, script_group: &ScriptGroup, tx_dep_provider: &dyn TransactionDependencyProvider, ) -> Result<TransactionView, UnlockError>
fn clear_placeholder_witness( &self, tx: &TransactionView, _script_group: &ScriptGroup, ) -> Result<TransactionView, UnlockError>
fn fill_placeholder_witness( &self, tx: &TransactionView, script_group: &ScriptGroup, tx_dep_provider: &dyn TransactionDependencyProvider, ) -> Result<TransactionView, UnlockError>
Auto Trait Implementations§
impl Freeze for SecpMultisigUnlocker
impl !RefUnwindSafe for SecpMultisigUnlocker
impl Send for SecpMultisigUnlocker
impl Sync for SecpMultisigUnlocker
impl Unpin for SecpMultisigUnlocker
impl !UnwindSafe for SecpMultisigUnlocker
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more