infrix-schema

module
v0.6.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 11, 2026 License: MIT

README

infrix-schema

Infrix — governed, verifiable execution on Accumulate. New here? Start at infrix.opendlt.org · try it live at play.infrix.opendlt.org.

The stdlib-only contract / verification kernel for Infrix.

infrix-schema is the Tier-0 contract module extracted from the Infrix monorepo. It defines the canonical, wire-stable shapes that everything else in the Infrix ecosystem agrees on — the intent vocabulary, the evidence-bundle and portable-package formats, the proof-receipt schema, the assurance ladder, and the onboarding-metrics types. It is the single source of truth those contracts are checked against.

It depends only on the Go standard library (a purity fence enforces this), so it can be consumed as a tiny, stable, independently-versioned dependency by the node, the verifier, the SDKs, and any third-party integrator — with no risk of pulling in the runtime.

Install

go get github.com/opendlt/infrix-schema@latest
import (
    "github.com/opendlt/infrix-schema/intent"
    "github.com/opendlt/infrix-schema/evidence"
    "github.com/opendlt/infrix-schema/proofreceipt"
    "github.com/opendlt/infrix-schema/assurance"
    "github.com/opendlt/infrix-schema/onboardingmetrics"
)

Packages

Package What it carries
intent The goal/type vocabulary and intent wire shapes
evidence The EvidenceBundle and PortableEvidencePackage wire formats + Merkle inclusion / anchor proof types
proofreceipt The canonical proof-receipt schema, fail-closed Validate, and the text / HTML renderers
assurance The proof-level (L0–L4) / governance-level (G0–G2) ladder and IU assurance classes
onboardingmetrics Privacy-first, local-only onboarding telemetry types (hashed sessions, redaction)

Design

  • Stdlib-only. No third-party dependencies; a fence test rejects any new import outside the standard library. This keeps the contract surface small and auditable.
  • Wire-stable. These types are the bytes that cross process and trust boundaries; a portable evidence package serialized here is what an independent verifier re-reads with no trust in the producing node.
  • Fail-closed validation. proofreceipt.Validate and the evidence checks reject structurally-invalid or over-claiming inputs rather than passing them through.

License

MIT — see LICENSE.

Directories

Path Synopsis
Package assurance is the stdlib-only assurance-ladder vocabulary: the proof levels (L0-L4), governance levels (G0-G2), the IU assurance class, and the total/monotone ClassFor projection between them.
Package assurance is the stdlib-only assurance-ladder vocabulary: the proof levels (L0-L4), governance levels (G0-G2), the IU assurance class, and the total/monotone ClassFor projection between them.
Package credential is the wire-stable data model for Infrix Verifiable Credentials (VC) and Verifiable Presentations (VP), plus the deterministic signing content an issuer/holder signs and a verifier recomputes.
Package credential is the wire-stable data model for Infrix Verifiable Credentials (VC) and Verifiable Presentations (VP), plus the deterministic signing content an issuer/holder signs and a verifier recomputes.
Package evidence provides the stdlib-only contract/verification kernel for governed-execution evidence: the cryptographic evidence chain that links intent → plan → policy decision → execution → outcome → state root, the evidence bundle and portable-package wire formats, and their offline verifiers.
Package evidence provides the stdlib-only contract/verification kernel for governed-execution evidence: the cryptographic evidence chain that links intent → plan → policy decision → execution → outcome → state root, the evidence bundle and portable-package wire formats, and their offline verifiers.
Package onboardingmetrics measures whether onboarding is actually improving (adoption-12): where users succeed, stall, and leave.
Package onboardingmetrics measures whether onboarding is actually improving (adoption-12): where users succeed, stall, and leave.
Package proofreceipt is the stdlib-only compact proof-receipt schema: the wire types, the fail-closed Validate rules, and the text/HTML renderers for the ONE receipt that appears everywhere Infrix proves something — the CLI, the SDK, Nexus, Cinema, the examples, release evidence, and the hosted playground (adoption-06).
Package proofreceipt is the stdlib-only compact proof-receipt schema: the wire types, the fail-closed Validate rules, and the text/HTML renderers for the ONE receipt that appears everywhere Infrix proves something — the CLI, the SDK, Nexus, Cinema, the examples, release evidence, and the hosted playground (adoption-06).

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL