Technical Report · ECOSUS CO., LTD. · TR-2026-007 EN JP TH
TR-2026-007

gyotak-ratio-log

ZK Formula Ratio Compliance Proof — Preprod Evidence หลักฐานการพิสูจน์ความสอดคล้องของสัดส่วนสูตรด้วย ZK บน Preprod

Proving manufacturing formula compliance without disclosing actual ratio values · Midnight Preprod · 2026-05-26 พิสูจน์ความสอดคล้องของสูตรการผลิตโดยไม่เปิดเผยค่าสัดส่วนจริง · Midnight Preprod · 26 พ.ค. 2569
Preprod Verifiedยืนยันบน Preprod แล้ว
Dateวันที่
May 26, 2026
Networkเครือข่าย
Midnight Preprod
Statusสถานะ
Finalฉบับสมบูรณ์
Classหมวดหมู่
Public (Defensive Publication)สาธารณะ (Defensive Publication)
Abstract / 要旨 / บทคัดย่อ
This report documents the Preprod deployment and PASS/FAIL circuit verification of the gyotak-ratio-log smart contract on the Midnight Network. The contract implements a Zero-Knowledge Proof system that proves manufacturing formula compliance against declared bounds without disclosing the actual component ratio values to any observer. Two compliance records were anchored on-chain at blocks 941,878 (PASS) and 941,906 (FAIL), demonstrating that ratio_a=3500 (35%) and ratio_b=2000 (20%) were correctly evaluated against the declared standard [30%–40%] / [60%–70%] — while the actual values never appeared on-chain. This document is published as defensive prior art.
รายงานนี้บันทึกการ deploy บน Preprod และการยืนยันวงจร PASS/FAIL ของ smart contract gyotak-ratio-log บน Midnight Network ระบบใช้ Zero-Knowledge Proof เพื่อพิสูจน์ความสอดคล้องของสูตรการผลิตกับขอบเขตที่ประกาศ โดยไม่เปิดเผยค่าสัดส่วนส่วนประกอบจริงแก่ผู้ใดเลย บันทึกความสอดคล้อง 2 รายการถูกบันทึกบนเชนที่บล็อก 941,878 (PASS) และ 941,906 (FAIL) เผยแพร่เป็น Defensive Prior Art

1. Contract Deployment 1. การ Deploy Contract

Parameterพารามิเตอร์ Valueค่า
Contractgyotak-ratio-log
NetworkMidnight Preprod
Contract Addressที่อยู่ Contract 931553c9aeadf0b1cba25d636b0359e0af6633034e5b4d3c2f5fbba8d372a4c7
Deploy Dateวันที่ Deploy 2026-05-26 08:53:52 UTC
Owner Public KeyPublic Key เจ้าของ ab4ce06ac08f6ab48f5afb1064ef205ae7d23c8f61beaa0867c88731ee48a119
Prior Reportรายงานก่อนหน้า TR-2026-006 · gyotak-temp-log Preprod

2. Contract Specification 2. ข้อกำหนด Contract

Functionฟังก์ชัน Descriptionคำอธิบาย
recordCompliance ZK-proof-based formula ratio PASS/FAIL determination (owner-gated write) การตัดสิน PASS/FAIL ของสัดส่วนสูตรด้วย ZK proof (เขียนโดยเจ้าของ)
verifyCompliance Public read — anyone can verify a formulaId's compliance record อ่านสาธารณะ — ทุกคนสามารถตรวจสอบบันทึกความสอดคล้องของ formulaId
rotateOwner Transfer contract ownership to new public key โอนความเป็นเจ้าของ contract ไปยัง public key ใหม่
Parameterพารามิเตอร์ Valueค่า
Ratio encodingการเข้ารหัสสัดส่วน Basis points — total = 10,000 = 100.00%Basis points — total = 10,000 = 100.00%
Private witnessesPrivate witnesses ratio_a, ratio_b (Uint<32>, never on-chainไม่บันทึกบนเชน)
Chain-time bindingการผูกเวลาบนเชน ±600s of producing blockของบล็อกที่ผลิต
Sum integrity assertionการยืนยันความถูกต้องของผลรวม ratio_a + ratio_b == total (TX rejected if falseTX ถูกปฏิเสธหากไม่ตรง)

3. ZK Circuit Design 3. การออกแบบ ZK Circuit

// Private witnesses — NEVER disclosed to chain:
witness getRatioA(formulaId: Bytes<32>): Uint<32>;
witness getRatioB(formulaId: Bytes<32>): Uint<32>;

export circuit recordCompliance(
  formulaId, standardId,
  min_a, max_a, min_b, max_b, total, timestamp
): [] {
  // ① Owner gate
  assert(disclose(publicKey(localSecretKey()) == owner), "unauthorized");

  // ② Chain-time binding (±600s)
  const t = disclose(timestamp);
  assert(blockTimeGte((t - 600) as Uint<64>), "timestamp too far in past");
  assert(blockTimeLte((t + 600) as Uint<64>), "timestamp too far in future");

  // ③ Private witnesses — ratio values stay inside ZK circuit
  const ratio_a = getRatioA(formulaId);
  const ratio_b = getRatioB(formulaId);

  // ④ Sum integrity (result: true/false publicly asserted, values hidden)
  assert(disclose((ratio_a + ratio_b) == total), "ratio sum mismatch");

  // ⑤ Range compliance — only 0/1 result leaves the circuit
  const a_ok = (ratio_a >= min_a) && (ratio_a <= max_a);
  const b_ok = (ratio_b >= min_b) && (ratio_b <= max_b);
  const result: Uint<32> = disclose(a_ok && b_ok) as Uint<32>;

  // ⑥ Write to ledger (public: bounds + result; private: ratio values)
  complianceRecords.insert(disclose(formulaId), disclose(record));
}

4. Circuit Verification Results 4. ผลการยืนยันวงจร

Two compliance records were anchored on Midnight Preprod on 2026-05-26. บันทึกความสอดคล้อง 2 รายการถูกบันทึกบน Midnight Preprod เมื่อ 26 พ.ค. 2569

Testการทดสอบ TX Hash Blockบล็อก ratio_a ratio_b Bounds A / Bขอบเขต A / B Resultผลลัพธ์
recordCompliance PASS 003155333bdf84a2...e191 941,878 3,500 (35%) ← secret 6,500 (65%) ← secret [3000,4000] / [6000,7000] PASS ✅ (result=1)
recordCompliance FAIL 0019a48e74b94e70...aa21 941,906 2,000 (20%) ← secret 8,000 (80%) ← secret [3000,4000] / [6000,7000] FAIL ❌ (result=0)
Key observation: ratio_a and ratio_b values shown above are for documentation purposes only. They do NOT appear anywhere in the on-chain transaction data. Any observer querying the blockchain learns only: standardId, bounds, total, and the 0/1 result. หมายเหตุสำคัญ: ค่า ratio_a และ ratio_b ที่แสดงด้านบนมีไว้เพื่อการบันทึกเอกสารเท่านั้น ค่าเหล่านี้ไม่ปรากฏในข้อมูลธุรกรรมบนเชนแต่อย่างใด
# Functionฟังก์ชัน Blockบล็อก Resultผลลัพธ์
1recordCompliance941,878✓ PASS (result=1)
2recordCompliance941,906✓ FAIL (result=0)

5. Claimed Technical Novelty (Defensive Prior Art) 5. ความใหม่ทางเทคนิคที่อ้างสิทธิ์ (Defensive Prior Art)

  1. Confidential compliance proof for manufacturing formulas: Component ratio values are injected exclusively as ZK private witnesses and never reach the chain.
  2. Sum integrity enforcement inside the ZK circuit: ratio_a + ratio_b == total is asserted privately, preventing inconsistent parameters without revealing components.
  3. Both PASS and FAIL outcomes recorded on-chain (transparency by design): Non-compliant formulations produce result=0, enabling complete audit trails while preserving ratio confidentiality.
  4. Extensibility to N-component formulas: The architecture generalizes to ratio_a / ... / ratio_N with sum assertion ratio_a + ... + ratio_N == total.
  5. Domain-separated key space: Domain tag "gyotak:ratiolog:pk:" isolates this contract's owner key derivation from gyotak-catch and gyotak-temp-log.
  1. 製造配合比率の秘匿的適合証明: 成分比率値はZKプライベートウィットネスとしてのみ注入され、チェーンには到達しない。
  2. ZK回路内での合計整合性強制: ratio_a + ratio_b == total がプライベートにアサートされ、成分を開示せずに不整合パラメータを排除する。
  3. PASS/FAIL両方のオンチェーン記録(透明性設計): 不適合配合は result=0 として記録され、比率の秘匿性を保ちながら完全な監査証跡を実現する。
  4. N成分配合への拡張可能性: ratio_a / ... / ratio_N と合計アサーション ratio_a + ... + ratio_N == total への一般化が可能。
  5. ドメイン分離キー空間: ドメインタグ "gyotak:ratiolog:pk:" により、gyotak-catch・gyotak-temp-log とオーナーキー導出を分離。
  1. การพิสูจน์ความสอดคล้องแบบลับสำหรับสูตรการผลิต: ค่าสัดส่วนส่วนประกอบถูก inject เป็น ZK private witnesses เท่านั้น ไม่มีทางไปถึงเชน
  2. การบังคับความถูกต้องของผลรวมภายใน ZK circuit: ratio_a + ratio_b == total ถูก assert แบบส่วนตัว
  3. บันทึกทั้ง PASS และ FAIL บนเชน (ออกแบบเพื่อความโปร่งใส): สูตรที่ไม่สอดคล้องให้ result=0 สร้างเส้นทางการตรวจสอบครบถ้วน
  4. ขยายได้ถึง N ส่วนประกอบ: สถาปัตยกรรมนี้ขยายได้ถึง ratio_a / ... / ratio_N
  5. พื้นที่กุญแจแยกโดเมน: Domain tag "gyotak:ratiolog:pk:"

6. Design Philosophy 6. ปรัชญาการออกแบบ

"Trade secrets can coexist with verifiable compliance. A manufacturer should not have to choose between protecting their formula and proving it meets the standard. Zero-knowledge proofs eliminate that dilemma."
"ความลับทางการค้าและการปฏิบัติตามที่ตรวจสอบได้สามารถอยู่ร่วมกันได้ ผู้ผลิตไม่ควรต้องเลือกระหว่างการปกป้องสูตรกับการพิสูจน์ว่าตรงตามมาตรฐาน Zero-knowledge proofs ขจัดปัญหานี้"

7. GYOTAK Protocol Layers 7. GYOTAK Protocol Layers

Layer 1
gyotak-catch
Catch provenance ZKP (GPS hidden, origin provable)ZKP ที่มาของปลา (GPS ซ่อน)
✓ Mainnet
Layer 2
gyotak-temp-log
Storage temp + Quick-freeze ZKP (-20°C/15min)อุณหภูมิจัดเก็บ + Quick-freeze ZKP
✓ Preprod → Mainnet
Layer 3
gyotak-ratio-log
Formula ratio compliance ZKP (this report)ZKP ความสอดคล้องของสัดส่วนสูตร
✓ Preprod
Layer 4+
gyotak-transit
Transport route verificationการยืนยันเส้นทางขนส่ง
Plannedวางแผน

8. Archive Metadata 8. Metadata สำหรับ Archive

Fieldฟิลด์ Valueค่า
Document IDECOSUS-TR-2026-007
Prior Reportรายงานก่อนหน้า TR-2026-006 · perma.cc/AH2L-HKBH
Authorผู้เขียน Takuya Ogura, Chairman, ECOSUS CO., LTD.
Organizationองค์กร ECOSUS CO., LTD. · 0205562030631 · Pranburi, Thailand
Report dateวันที่ May 26, 2026
Contract addressที่อยู่ Contract 931553c9aeadf0b1cba25d636b0359e0af6633034e5b4d3c2f5fbba8d372a4c7
NetworkMidnight Preprod
Licenseใบอนุญาต CC BY 4.0