clementine_core::builder::transaction::sign

Function create_and_sign_txs

Source
pub async fn create_and_sign_txs(
    db: Database,
    signer: &Actor,
    config: BridgeConfig,
    transaction_data: TransactionRequestData,
    block_hash: Option<[u8; 20]>,
) -> Result<Vec<(TransactionType, Transaction)>, BridgeError>
Expand description

Creates and signs all transaction types that can be signed by the entity.

This function handles the creation and signing of transactions based on the provided transaction data. It returns a vector of signed transactions with their corresponding types.

ยงNote

This function should not be used for transaction types that require special handling:

  • MiniAsserts
  • WatchtowerChallenge
  • LatestBlockhash
  • Disprove

These transaction types have their own specialized signing flows.