Skip to main content

finalize_batch_payment

Function finalize_batch_payment 

Source
pub fn finalize_batch_payment(
    prepared: Vec<PreparedChunk>,
    tx_hash_map: &HashMap<QuoteHash, TxHash>,
) -> Result<Vec<PaidChunk>>
Expand description

Finalize a batch payment using externally-provided transaction hashes.

Takes prepared chunks and a map of quote_hash -> tx_hash from the external signer. Builds per-chunk PaymentProof bytes without needing a wallet.