pub fn create_nofn_sighash_stream(
db: Database,
config: BridgeConfig,
deposit_data: DepositData,
deposit_blockhash: BlockHash,
yield_kickoff_txid: bool,
) -> impl Stream<Item = Result<(TapSighash, SignatureInfo), BridgeError>>
Expand description
Generates the sighash stream for all N-of-N (verifier) signatures required for a deposit. See clementine whitepaper for details on the transactions.
For a given deposit, for each operator and round, generates the sighash stream for all protocol-required transactions.
If yield_kickoff_txid
is true, yields the kickoff txid as a special entry.
§Arguments
db
- Database handle.config
- Bridge configuration.deposit_data
- Deposit data for which to generate sighashes.deposit_blockhash
- Block hash of the deposit.yield_kickoff_txid
- Whether to yield the kickoff txid as a special entry.
§Returns
An async stream of ([TapSighash
], SignatureInfo
) pairs, or BridgeError
on failure.