Feat/232 invoice payment dispute evidence bundler#343
Merged
Kingsman-99 merged 2 commits intoJun 26, 2026
Merged
Conversation
…graphic checksum validation
|
@adefemiesther1-debug Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Closes #232
Overview
This PR adds a centralized forensic aggregation tool within src/disputeEvidenceBundler.ts to automate what was previously a manual, error-prone evidence collection process. By introducing a one-call asynchronous bundler, the SDK can now extract and unite cryptographic payment proofs, on-chain smart contract historical audit tracks, and raw network event records into a single, tamper-evident object format.
Changes
Branch Infrastructure: Created and isolated tracking workspace within feat/232-invoice-payment-dispute-evidence-bundler.
New Forensic Subsystem Added (src/disputeEvidenceBundler.ts):
Engineered bundleDisputeEvidence to concurrently retrieve and pack crypto proofs, get_audit_log storage entries, and indexing nodes' historical event vectors.
Integrated an automated integrity layer computing a top-level SHA-256 checksum across the structural data payload to block client-side modifications.
Public Boundary Mapping (src/index.ts):
Exposed the collection function and corresponding TypeScript types across the SDK's public index endpoint.
Integration and Integrity Testing Suite (src/tests/disputeEvidenceBundler.test.ts):
Added validation routines confirming full component structural presence, reliable checksum compilation, and instant corruption detection if internal variables are modified.
Operational Safety & Integrity Guarantees
Asynchronous Data Hydration: Utilizes non-blocking execution models (Promise.all) to query network endpoints concurrently, minimizing data-retrieval latency.
Tamper-Evident Audits: Incorporates deterministic key sorting during serialization to ensure checksum generation remains stable, accurate, and reproducible across varying runtime environments.
Verification & Testing Checklist
[x] Type Safety Verification: Confirmed full workspace configurations compile smoothly with zero TypeScript compilation faults.
[x] Linter Compliance: Cleared code styling checks via npm run lint to fulfill repository formatting criteria.
[x] Conventional Commit Integrity: Grouped file updates into an atomic conventional commit framework and pushed directly to origin.