Skip to content

Scan anomaly detection and measured gas costs - #6

Merged
Phantom8420 merged 1 commit into
mainfrom
feat/scan-risk
Oct 6, 2026
Merged

Phantom8420 merged 1 commit into
mainfrom
feat/scan-risk

Conversation

@Phantom8420

Copy link
Copy Markdown
Owner

Summary

  • Clone detection: every product lookup is scored for the pattern a photocopied label leaves (many distinct networks scanning one code, or bursts of scans). Sold items are held to a stricter threshold. The API returns risk with the record; the product page shows a Scan risk meter and flags a likely clone. Source networks are hashed /24s, never raw IPs.
  • Demo: in-browser mirror of the same scoring, with a "Simulate a cloned label" button on the demo item.
  • Gas: contracts/test/Gas.ts measures each on-chain action (mint ~196k, stages ~47-64k, full life ~400k) and fails on regressions.
  • Tests: +10 backend, +2 frontend unit, +1 e2e (clone flagged, restart clears it).

Notes

  • It is a transparent statistical model, not a trained network; documented as such.
  • Scan history is in memory (documented; Redis for multi-instance).

@vercel

vercel Bot commented Oct 6, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
authen-tick Ready Ready Preview Oct 6, 2026 8:06am UTC

@Phantom8420
Phantom8420 merged commit d2bdca8 into main Oct 6, 2026
9 checks passed
@Phantom8420
Phantom8420 deleted the feat/scan-risk branch October 6, 2026 08:08

This branch was successfully deployed

1 active deployment
Preview — 721de070 Deployed Oct 6, 2026 by vercel[bot]
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.

1 participant