pub fn create_operator_sighash_stream(
db: Database,
operator_xonly_pk: XOnlyPublicKey,
config: BridgeConfig,
deposit_data: DepositData,
deposit_blockhash: BlockHash,
) -> impl Stream<Item = Result<(TapSighash, SignatureInfo), BridgeError>>
Expand description
Generates the sighash stream for all operator signatures required for a deposit. These signatures required by the operators are the signatures needed to burn the collateral of the operators, only able to be burned if the operator is malicious. See clementine whitepaper for details on the transactions.
§Arguments
db
- Database handle.operator_xonly_pk
- X-only public key of the operator.config
- Bridge configuration.deposit_data
- Deposit data for which to generate sighashes.deposit_blockhash
- Block hash of the deposit.
§Returns
An async stream of (sighash, SignatureInfo
) pairs, or BridgeError
on failure.