pub fn sign_bench(c: &mut Criterion) {
    let contract_info = create_contract_info();
    let dlc_transactions = create_transactions(&contract_info.get_payouts(200000000));
    let fund_output_value = dlc_transactions.get_fund_output().value;

    let seckey = accept_seckey();
    c.bench_function("sign", |b| {
        b.iter(|| {
            black_box(
                contract_info
                    .get_adaptor_info(
                        SECP256K1,
                        TOTAL_COLLATERAL,
                        &seckey,
                        &dlc_transactions.funding_script_pubkey,
                        fund_output_value,
                        &dlc_transactions.cets,
                        0,
                    )
                    .unwrap(),
            )
        });
    });
}
/// Benchmark to measure the adaptor signature creation time.
Benchmark to measure the adaptor signature creation time.
Benchmark to measure the adaptor signature creation time .
pub fn sign_bench(c: &mut Criterion) {
    let contract_info = create_contract_info();
    let dlc_transactions = create_transactions(&contract_info.get_payouts(200000000));
    let fund_output_value = dlc_transactions.get_fund_output().value;
    let seckey = accept_seckey();
    c.bench_function("sign", |b| {
        b.iter(|| {
            black_box(
                contract_info
                    .get_adaptor_info(
                        SECP256K1,
                        TOTAL_COLLATERAL,
                        &seckey,
                        &dlc_transactions.funding_script_pubkey,
                        fund_output_value,
                        &dlc_transactions.cets,
                        0,
                    )
                    .unwrap(),
            )
        });
    });
}
pub fn sign_bench ( c : & mut Criterion ) { let contract_info = create_contract_info ( ) ; let dlc_transactions = create_transactions ( & contract_info . get_payouts ( 200000000 ) ) ; let fund_output_value = dlc_transactions . get_fund_output ( ) . value ; let seckey = accept_seckey ( ) ; c . bench_function ( " " , | b | { b . iter ( | | { black_box ( contract_info . get_adaptor_info ( SECP256K1 , TOTAL_COLLATERAL , & seckey , & dlc_transactions . funding_script_pubkey , fund_output_value , & dlc_transactions . cets , 0 , ) . unwrap ( ) , ) } ) ; } ) ; }
Benchmark to measure the adaptor signature creation time.
Benchmark to measure the adaptor signature creation time .
c
&mut Criterion