Skip to content

test(audit): add entry hash fuzz harness#1798

Open
brentthomas248 wants to merge 1 commit into
QuickLendX:mainfrom
brentthomas248:codex/quicklendx-1701-fuzz
Open

test(audit): add entry hash fuzz harness#1798
brentthomas248 wants to merge 1 commit into
QuickLendX:mainfrom
brentthomas248:codex/quicklendx-1701-fuzz

Conversation

@brentthomas248

Copy link
Copy Markdown

Closes #1701

Summary:

  • add a fuzz-tests harness for audit entry_hash determinism
  • cover operation, optional string, optional amount, and optional hash field sensitivity
  • verify adjacent audit-chain entries stay consistent and tampering is detected

Tests:

  • PATH="$HOME/.cargo/bin:$PATH" rustfmt --edition 2021 --check quicklendx-contracts/src/test_fuzz_audit_hash.rs
  • git diff --check
  • PATH="$HOME/.cargo/bin:$PATH" cargo test -p quicklendx-contracts --features fuzz-tests test_fuzz_audit_hash -- --nocapture (blocked by unrelated current-base compile errors before the new harness compiles: duplicate bench module, duplicate compute_yield definitions, missing idempotency/address_summary module declarations, and missing InvalidLedgerSequence match)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add a fuzz harness for the audit hash-chain entry_hash determinism across reordered optional fields

1 participant