Sign In

@itechsmart/prooflink-verifier

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@itechsmart/prooflink-verifier

Open-source cryptographic verification for iTechSmart UAIO ProofLink receipts — don't trust our AI, trust the math.

Source
npmnpm
Version
1.0.0
Version published
Weekly downloads
6
20%
Maintainers
1
Weekly downloads
 
Created
Source

Open-source cryptographic verification logic for iTechSmart UAIO receipts.

Don't trust our AI. Trust the math.

What is this?

When iTechSmart's UAIO platform autonomously remediates infrastructure — restarting a crashed pod, patching a misconfiguration, rolling back a bad deployment — it generates a ProofLink receipt: a cryptographically signed, hash-chained record of exactly what happened, when, and why.

This repository contains the open-source verification logic that anyone can use to independently confirm those receipts haven't been tampered with.

You don't need to trust us. You can verify the math yourself.

How it works

Each ProofLink receipt contains:

  • SHA-256 hash — computed over all fields of the receipt (deterministic, canonical JSON)
  • Previous hash — the SHA-256 of the preceding receipt, creating a tamper-evident chain
  • Chain position — sequential integer; gaps indicate missing receipts
  • Timestamp — ISO 8601, must be chronologically ordered

Altering any receipt in the chain invalidates every subsequent receipt — the same principle as Bitcoin's blockchain, applied to infrastructure audit trails.

Receipt 0 (genesis)           Receipt 1                    Receipt 2
┌─────────────────────┐       ┌─────────────────────┐      ┌─────────────────────┐
│ sha256: abc123...   │──────▶│ prev_hash: abc123... │─────▶│ prev_hash: def456...│
│ prev_hash: null     │       │ sha256: def456...    │      │ sha256: ghi789...   │
│ chain_position: 0   │       │ chain_position: 1    │      │ chain_position: 2   │
└─────────────────────┘       └─────────────────────┘      └─────────────────────┘

If you alter Receipt 1's action field:

  • Its computed SHA-256 changes → sha256 field no longer matches → tamper detected
  • Receipt 2's prev_hash no longer matches → chain broken

Installation

npm install @itechsmart/prooflink-verifier

Or clone and use directly:

git clone https://github.com/Iteksmart/prooflink-verifier
cd prooflink-verifier
npm install

Usage

Verify a single receipt

import { verifyReceipt } from '@itechsmart/prooflink-verifier'

const result = verifyReceipt(receipt, previousReceipt)

console.log(result.valid)           // true/false
console.log(result.tamper_detected) // true if hash or chain broken
console.log(result.checks)          // detailed check results
console.log(result.errors)          // list of failures

Verify an entire chain

import { verifyChain } from '@itechsmart/prooflink-verifier'

const receipts = await fetchReceiptsFromLedger()
const result = verifyChain(receipts)

console.log(result.chain_valid)      // true if all receipts intact
console.log(result.tamper_detected)  // true if any tampering found
console.log(result.tamper_position)  // which position was altered
console.log(result.summary)          // human-readable summary

Compute a hash yourself

import { computeReceiptHash } from '@itechsmart/prooflink-verifier'

const { sha256, ...receiptWithoutHash } = receipt
const computed = computeReceiptHash(receiptWithoutHash)

console.log(computed === receipt.sha256) // true if untampered

The canonical hash function

The hash is computed over a deterministic JSON serialization of all fields except sha256 itself:

export function computeReceiptHash(receipt: Omit<ProofLinkReceipt, 'sha256'>): string {
  const canonical = JSON.stringify({
    receipt_id: receipt.receipt_id,
    version: receipt.version,
    timestamp: receipt.timestamp,
    container: receipt.container,
    executor: receipt.executor,
    trigger: receipt.trigger,
    action: receipt.action,
    action_parameters: receipt.action_parameters,
    before_state: receipt.before_state,
    after_state: receipt.after_state,
    nist_controls: receipt.nist_controls,
    human_input: receipt.human_input,
    arbiter_policy: receipt.arbiter_policy,
    previous_hash: receipt.previous_hash,
    chain_position: receipt.chain_position,
  }, null, 0)

  return crypto.createHash('sha256').update(canonical, 'utf8').digest('hex')
}

The field ordering is fixed and documented. You can reimplement this in any language and verify receipts independently.

Verification checks

For each receipt, the verifier runs 5 checks:

CheckWhat it verifies
schema_validAll required fields present
receipt_integrityStored SHA-256 matches recomputed hash
chain_linkprevious_hash matches prior receipt's sha256
chain_positionPosition is sequential (no gaps)
timestamp_orderTimestamps are chronologically ordered

Live receipts

Verify real receipts from iTechSmart's production ledger:

https://verify.itechsmart.dev
https://api.itechsmart.dev/api/v1/prooflink/receipts

Try the sandbox

See UAIO detect, fix, and prove a live Kubernetes OOMKilled crash:

https://itechsmart.dev/break-it

Contributing

This verifier is intentionally minimal. The goal is auditable simplicity — not feature bloat.

PRs welcome for:

  • Additional language implementations (Python, Go, Rust)
  • OpenTimestamps proof verification
  • CLI tool
  • Test vectors

License

MIT — use freely, audit openly, verify everything.

About iTechSmart

iTechSmart builds UAIO (Unified Autonomous IT Operations) — the first enterprise platform that autonomously detects, remediates, and cryptographically proves every infrastructure action.

  • Website: itechsmart.dev
  • Verify receipts: verify.itechsmart.dev
  • Whitepaper: whitepaper.itechsmart.dev

SDVOSB · CAGE: 172W2 · NVIDIA Inception · NIST CSF 96/100

Keywords

prooflink

FAQs

Package last updated on 11 May 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts