Skip to main content

EVE Governance SDK — Offline cryptographic governance verification

Project description

eve-governance — EVE Governance SDK

Offline cryptographic governance verification for EVE AI Core enterprise artifacts. Verify HMAC-SHA256 signed governance artifacts without calling EVE's servers.

Installation

pip install eve-governance

Quick start

from eve_governance import (
    verify_decision_certificate,
    verify_chain,
    verify_iti_snapshot,
    health_band,
    load_replay_chain,
    analyze_replay_chain,
)

# Verify a single CoreGuard decision certificate
result = verify_decision_certificate(cert_dict)
print(f"Valid: {result.valid}")

# Verify a JSONL audit chain
events = load_replay_chain("audit_chain.jsonl")
chain_result = verify_chain(events)
print(f"Chain valid: {chain_result.valid}, gaps: {chain_result.gap_count}")

# Verify an ITI snapshot
iti = verify_iti_snapshot(snapshot_dict)
print(f"Score: {iti.composite_score}, band: {iti.health_band}")

# Health band classification
print(health_band(87.5))  # -> GOOD

CLI

# Verify a replay bundle
eve-gov verify-bundle export.zip

# Verify a decision certificate
eve-gov verify-decision cert.json

# Verify a deployment attestation
eve-gov verify-attestation attestation.json --key-env MY_SIGNING_KEY

# Verify an ITI snapshot
eve-gov verify-iti snapshot.json --json

# Verify a JSONL audit chain
eve-gov verify-chain audit.jsonl

# Human-readable replay summary
eve-gov replay-summary audit.jsonl

Signing

All artifacts use HMAC-SHA256 with this canonical form:

import hmac, hashlib, json
key = os.environ["JWT_SECRET_KEY"].encode()
canonical = json.dumps(payload, sort_keys=True, separators=(",", ":")).encode()
signature = hmac.new(key, canonical, hashlib.sha256).hexdigest()

Environment variables

Variable Purpose Default
JWT_SECRET_KEY HMAC signing key (legacy/symmetric artifacts) none — required (no default key; verify_* raises ValueError if unset and no key is passed)

Ed25519 decision-evidence verification (verify_decision_evidence) needs no secret — only the published public key from GET /.well-known/eve-pubkey.

License

Proprietary — EVE NeuroSystems LLC

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

eve_governance-0.2.0.tar.gz (21.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

eve_governance-0.2.0-py3-none-any.whl (25.2 kB view details)

Uploaded Python 3

File details

Details for the file eve_governance-0.2.0.tar.gz.

File metadata

  • Download URL: eve_governance-0.2.0.tar.gz
  • Upload date:
  • Size: 21.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.8

File hashes

Hashes for eve_governance-0.2.0.tar.gz
Algorithm Hash digest
SHA256 cdd2c4ee84101540f562444eff88f011ccb26a8894a277d6908027fbcf0bf91d
MD5 848529b0dd8dabc8021ebbc4a9a78c86
BLAKE2b-256 8722f70b3ad85cb7d30da3756c971f56ba5b07f3435dbd37122402fea16d14f3

See more details on using hashes here.

File details

Details for the file eve_governance-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: eve_governance-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 25.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.8

File hashes

Hashes for eve_governance-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1bba369af58b443f81b97e6deaf8f78d96d92667f62811c3f00470d94d9dd100
MD5 5e38c7a9df57bf7fff3008f634b9d3eb
BLAKE2b-256 247421683d68c36a0f831d41cdb71c958836196bada655b7058ddac090dce165

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page