Struct bip47::BloomMultisig
source · [−]pub struct BloomMultisig<'a>(_);
Expand description
Represents the “bloom-multisig” (also known as v2) notification mode and provides functionality for constructing an on-chain notification message.
Implementations
sourceimpl<'a> BloomMultisig<'a>
impl<'a> BloomMultisig<'a>
sourcepub fn identifier(&self) -> Vec<u8>
pub fn identifier(&self) -> Vec<u8>
Generates a bloom filter identifier to watch for. This is what the receiving party should add to their bloom filter in order to notice bloom filter type notifications.
sourcepub fn notification_params(
&self,
sender_code: &PublicCode,
notification_sk: &PrivateKey,
notification_utxo: &OutPoint,
change_pk: &PublicKey
) -> Result<(Script, Script), Error>
pub fn notification_params(
&self,
sender_code: &PublicCode,
notification_sk: &PrivateKey,
notification_utxo: &OutPoint,
change_pk: &PublicKey
) -> Result<(Script, Script), Error>
Generates output scripts for a v2 notification transaction. The change key belongs to the sender’s wallet.
Auto Trait Implementations
impl<'a> RefUnwindSafe for BloomMultisig<'a>
impl<'a> Send for BloomMultisig<'a>
impl<'a> Sync for BloomMultisig<'a>
impl<'a> Unpin for BloomMultisig<'a>
impl<'a> UnwindSafe for BloomMultisig<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more