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 Signing key dev-key-min-32-chars-padded-here!!

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.1.0.tar.gz (18.2 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.1.0-py3-none-any.whl (21.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: eve_governance-0.1.0.tar.gz
  • Upload date:
  • Size: 18.2 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.1.0.tar.gz
Algorithm Hash digest
SHA256 6afac874199a83c0001da5208e0356c904ab1ae275931beca27bde36cd23e8c9
MD5 09f770d81e18b37ac6d3fc09712862cd
BLAKE2b-256 abcf9e22143552a3ede587366012fefe1be91989c214eb75a4edffe68cad89ee

See more details on using hashes here.

File details

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

File metadata

  • Download URL: eve_governance-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 21.0 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.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e2f43d035df5d1c1862a2598b3b751e227888c7a2a469a150e603ecb0e2467f7
MD5 1bdd400a950365d76b76e5ed16dfbd9a
BLAKE2b-256 2a4ad03069d90144f0063c23ddc9d3cf4642e3bfe51f07dbb2f5d28ea8bfa2e6

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