//! REQUIREMENT: PAR-005 — aggregate_verify importable; BlsCache from chia_bls

mod common;

use chia_bls::{BlsCache, Signature};
use dig_clvm::aggregate_verify;

#[test]
fn par_005_aggregate_verify_importable() {
    // dig_clvm::aggregate_verify exists (re-exported from chia_bls)
    // With no public keys and identity signature, aggregate verify should pass
    let sig = Signature::default();
    let data: Vec<(&chia_bls::PublicKey, &[u8])> = vec![];
    let result = aggregate_verify(&sig, data);
    assert!(
        result,
        "aggregate_verify with empty pairs and identity sig should pass"
    );
}

#[test]
fn par_005_bls_cache_from_chia_bls() {
    // BlsCache::default() creates a valid cache from chia_bls
    let cache = BlsCache::default();
    drop(cache);
}

#[test]
fn par_005_signature_default() {
    // Signature::default() produces the identity element
    let sig = Signature::default();
    let _bytes = sig.to_bytes();
}
