Documentation

Checks & Finding Codes

How Zhen computes netlist identities, bit-sliced behaviour fingerprints, PoD hardware scores, and canonical verdict hashes.

FormatTAP-02
Vectors16,384 (ZHN1)
Finding codes19
01

Four verification signals

  • Exact netlist identity: Computed as keccak256(abi.encodePacked(uint32 nIn, uint32 nOut, bytes netlist)). Matches identical netlist bytes across every circuit and processor on X Layer.
  • Behavioural fingerprint: @zhen/core bit-slices 32 lanes per pass. Combinational circuits up to 20 inputs get an exhaustive truth-table hash; larger or sequential circuits run 16,384 deterministic ZHN1 test vectors.
  • FabX PoD cost & ranking: Computes C = (NAND + 6 * LATCH) * max(depth, 1)^3, executes every mined design against FabX task vectors, and breaks equal-cost ties by earliest start block.
  • Processor deployer identity: Normalizes processor names (NFKC, stripped punctuation and whitespace) and resolves each creation transaction sender so look-alikes are separated from same-deployer redeploys.
02

Canonical verdict hash

Every verdict derives its headline level (clear, caution, danger) from its highest-severity public finding and hashes the sorted JSON payload into a 32-byte keccak256 verdictHash.

verdictHash = keccak256(utf8(canonicalJson({
  v: 1,
  subject,        // { kind: "circuit", processor, id } | { kind: "processor", address } | { kind: "netlist", netlistId }
  level,          // "clear" | "caution" | "danger"
  checkedAtBlock, // X Layer snapshot height (or live head)
  findings: findings.map(({ code, severity, data }) => ({ code, severity, data })),
})))
03

Finding code reference

CodeSeverityAreaMeaning
ORIGINinfoProvenanceFirst public tape-out of this netlist on X Layer (carries sealed-commitment scope note).
REFERENCE_DESIGNinfoProvenancePassing PoD design matching the task published reference cost (C = Cref); neutral baseline.
COMMON_TEMPLATEinfoProvenanceStarter or reference circuit held across >= 10 wallets and >= 2 processors (or outside PoD).
OWN_REMINTinfoProvenanceThe wallet that holds the first public tape-out of this design re-minted it; not a copy.
TRIVIAL_DESIGNinfoProvenanceDesign of 4 gates or fewer: too simple for a match to show copying.
DUPLICATEcautionProvenanceSame netlist bytes as an earlier origin circuit, with neutral holder concentration.
ALREADY_TAPED_OUTcautionProvenanceBare netlist bytes already exist in the X Layer index.
NO_MATCHinfoIndexNo public exact or functional match found at the snapshot block.
SAME_FUNCTIONcautionLogicDifferent wiring, identical truth table or 16,384-vector behaviour.
OFFICIAL_PROCESSORinfoProcessorMatches the known FabX PoD processor (FAB-Genisis).
IMPERSONATES_KNOWNdangerProcessorSame name as a known processor, different deployer. The evidence is the deployer, not intent.
NAME_CONTAINS_KNOWNcautionProcessorIts name contains a known processor name, from a different deployer.
NAME_DEPLOYER_LOOKALIKEScautionProcessorThe same deployer also deployed processors that reuse a known name.
NAME_CLEARinfoProcessorNo other processor shares the name, and it does not contain a known processor name.
NAME_SHARED_EARLIERcautionProcessorShares a normalized name with an earlier processor from another deployer.
NAME_SHARED_LATERinfoProcessorFirst to use this normalized name; later processors share it.
SAME_DEPLOYERinfoProcessorSame deployer wallet operates another processor with this name.
NO_CIRCUITSinfoProcessorZero circuits minted on the processor at snapshot block.
POD_LEADERinfoMiningLowest-cost revealed design passing FabX test vectors for its task.
POD_REFERENCE_COSTinfoMiningRuns at the task published reference cost (C = Cref); neutral baseline.
POD_NOT_BESTcautionMiningPasses vectors, but a lower-cost design already leads the task.
POD_TIE_LOSTcautionMiningTie-loss risk: equal cost to the leader, but started at a later block.
POD_FAILS_VECTORScautionMiningFails one or more FabX test vectors; earns no task bonus.
POD_INELIGIBLE_REFcautionMiningContains REF opcodes, which FabX excludes from PoD mining.