The Transaction
Company A pays Vendor B $10,000 for consulting services.
Company A’s books
Vendor B’s books
Ten fields and formatting
From accounting records to hash inputs
Company A export
Vendor B export
| Field | Company A export | Vendor B export | Standardized value |
|---|
Compare the two records
What each record contains
| Field | Company A’s record | Vendor B’s record |
|---|
Transaction summaries
Show exact hash input
Hashing and the ledger
Why Web Crypto?
We use the browser’s Web Crypto API, crypto.subtle.digest("SHA-256", bytes), for local hashing without an external library or custom cryptographic code.
SHA-256 returns 256 bits, displayed as 64 hexadecimal characters. Identical bytes produce identical hashes. It is designed to make recovering the input or finding different inputs with the same hash impractical.
Records are standardized and encoded as UTF-8 before hashing. Matching hashes indicate that the records agree. They do not prove the transaction occurred or the records are true.
Proposed permissioned ledger
Only approved participants would join the network. Company A and Vendor B would submit their own hashes, approved network operators would validate entries, and authorized auditors would have read access.
| Stored on-chain | Stored off-chain |
|---|---|
| Transaction hashes | Full accounting records |
| Party IDs and invoice references | Invoices and contracts |
| Digital signatures and ledger timestamps | Payment evidence and supporting documents |
Supporting documents would remain in controlled storage, available to authorized auditors. The ledger would preserve the hashes and submission history used to check those records.
Auditor checks
Generate a current hash for each party in section 01, then select Compare generated hashes.
Review the disclosed right and supporting terms
Audit steps
- Locate both records by invoice reference.
- Recalculate and compare hashes.
- Obtain the invoice and payment evidence. Compare amounts, unit prices and statuses; reconcile timing differences and payments in transit.
- Obtain the contract and side letters. Confirm refund or rebate terms with both parties.
- Investigate differences and additional terms, document findings and assess accounting corrections.
Five audit assertions
| Assertion | Auditor’s check |
|---|---|
| Occurrence | Compare both records, then verify service delivery and payment with supporting evidence. |
| Completeness | Reconcile both parties’ transaction lists for missing entries; review agreements for omitted terms. |
| Accuracy | Compare hashes and check amounts and rates against the invoice and contract. |
| Cutoff | Compare the entered UTC time with service and payment dates to check the accounting period. |
| Rights & obligations | Review the parties, contract and side letters to confirm who owes or is entitled to payment. |
Fraud examples and limitations
Inflated amount
Company A records $15,000. Vendor B records $10,000, matching the invoice. Both report No for a refund or rebate right.
Different hashes and a $5,000 discrepancy.
Side agreement
Both parties record $10,000 and report Yes for a refund or rebate right granted to Company A.
Hashes match; the Yes disclosures trigger review of the supporting agreement and its detailed terms. A disclosed right alone does not establish fraud, a paid refund or an adjustment amount.
Fictitious revenue
Vendor B records a $10,000 consulting sale that never happened and reports No for a refund or rebate right. Company A has no record, answer or hash.
Missing counterparty record.
Limits
Matching hashes show that recorded fields agree. They do not prove a sale occurred, payment was made, or all terms were disclosed. Missing records, mismatches and additional terms require investigation. The program cannot discover withheld agreements.
Other audit considerations
Credit memos, returns and voids
Corrections in the proposed ledger would be new entries linked to the original, approved by both parties and reflected in their books.
| Entry | Record | Amount (USD) | Links to |
|---|---|---|---|
| L1 | Original invoice INV1 | 10,000.00 | None |
| L2 | Credit memo CM1 | -2,000.00 | L1 (INV1) |
This illustrative $2,000 credit leaves an $8,000 net invoice. Both entries remain visible. The $2,000 amount is an independent illustration; the refund or rebate field supplies no adjustment amount. Cash refunds are recorded separately; returns and voids would add linked adjustments or reversals.
Dictionary attacks
Someone could guess likely transaction details, hash each guess and compare it with a visible hash. A match can reveal those details. The proposed network would restrict access; a production privacy design could also add a secret random value, shared by both parties, to each transaction before hashing.
Vendors outside the network
Without a vendor submission, the auditor obtains invoices, contracts and payment evidence, confirms details directly through verified vendor contacts, and reconciles them to the books. Missing records or unanswered confirmations require follow-up.
Example sources
- Assignment PDF, pages 3–4: Company A pays Vendor B $10,000 for consulting, then changes its record to $15,000.
- Detailed guide, page 1: Company A debits Operating Expense and credits Cash; Vendor B debits Cash and credits Revenue.
- Detailed guide, pages 5–6: seven fields and formatting. This version adds payment status, unit price and refund or rebate right granted. The $100 hourly rate is illustrative. Amount means the full invoice amount; timestamps indicate each party’s reporting time. A, B, PAYMENT and INV1 simplify the guide’s sample values.
- Lecture notes: undisclosed refund or rebate side letters, adapted here as a disclosed right in the tenth field. Example 2’s terms are illustrative and unsigned; no refund amount or accounting adjustment is assumed.
- Master guide: the fictitious-revenue scenario adapted in Example 3.
Examples 1 and 2 use paid records for INV1. Example 3 uses Vendor B’s unpaid invoice INV2 with no Company A record.
Formatting follows the guide: UTC timestamp, two-decimal amounts, three-letter currency, fixed field order and pipe separators. Hashes use the complete input.
15 sample transactions
| Invoice | Company A amount | Vendor B amount | Result | Details |
|---|