Skip to main content

aimarket-tee

Documentation

Document Description
User guide Install, configure, verify plugin is loaded
User cases Personas and cross-plugin workflows
SDK integration Code examples and hook behavior

TEE-attested execution for AI capabilities. AWS Nitro Enclaves / Intel TDX. Before invoke, the server sends a cryptographic attestation report: "this code runs in an encrypted hardware enclave. I physically cannot see your input." Receipts are signed by the enclave key. Unlocks enterprise, legal, medical, and finance verticals.

When to Use

  • Confidential AI processing — consumer sends sensitive data (PII, legal docs, medical records), provider can't see it
  • Enterprise compliance (GDPR/HIPAA/FedRAMP) — attestation report proves code integrity and data isolation
  • Third-party model hosting — model owner deploys to enclave, hub operator can't extract weights
  • Regulated industries — prove to auditors that execution happened in certified hardware

Installation

pip install aimarket-tee

API Endpoints

No additional API endpoints. Activated automatically via invoke flow — attestation is attached to every invocation response.

End-to-End Example

from aimarket_tee.tee_attestation import TEEAttestationService, EnclavePlatform

service = TEEAttestationService(platform=EnclavePlatform.AWS_NITRO)

# Execute capability inside enclave — provider sees only hashes
result = service.execute_with_attestation(
    capability_id="legal.review@v1",
    product_id="prod-legal",
    input_payload={"documents": {"nda": "CONFIDENTIAL: review this NDA..."}},
    code_identifier="legal-review-v2.0.0-githash-abc123",
    price_usd=5.00
)

print(result["attestation"]["platform"])  # aws_nitro
print(result["attestation"]["code_hash"])  # sha256 of code
print(result["receipt"]["input_hash"])     # sha256 of input (provider never sees plaintext)
print(result["enterprise_compliance"]["gdpr"])  # "Input never leaves enclave in plaintext"

Security

  • Code hash verification — consumer verifies the exact code running in enclave
  • Input confidentiality — provider sees only SHA-256(input), never plaintext
  • Output signed by enclave key — verifiable proof of correct execution
  • Attestation TTL — 5 minutes by default, prevents replay attacks

License

MIT · Maintained by AI-Factory

Metadata

Release files for aimarket-tee 2.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for aimarket-tee 2.0.1
File Size Uploaded Provenance Actions
aimarket_tee-2.0.1.tar.gz 3.8 kB Without provenance Details for aimarket_tee-2.0.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for aimarket-tee 2.0.1
File Interpreter ABI Platform Actions
aimarket_tee-2.0.1-py3-none-any.whl Python 3 none any Details for aimarket_tee-2.0.1-py3-none-any.whl

Total release size: 8.2 kB

Release files / aimarket_tee-2.0.1.tar.gz

Download URL aimarket_tee-2.0.1.tar.gz
Size 3.8 kB
Tags Source
SHA-256 checksum
How to use checksums
2622da23e82c0ee30fecfe1a789261b55c9190d12df01c4fa04f4d68bae3dc08
BLAKE2b-256 checksum
How to use checksums
ad1a8143e84e0b9f3319b0b04f44a3adb2d16c6265d72d7f401e9179a4deb6d1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.6

Release files / aimarket_tee-2.0.1-py3-none-any.whl

Download URL aimarket_tee-2.0.1-py3-none-any.whl
Size 4.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4180795e0ac083573058c399072e50c7b16bcfd5a047878255e7a278bae11f23
BLAKE2b-256 checksum
How to use checksums
94b8cb50cf4509dcd93183eed7b1e10ee866b7a8936c1277f8ef3973652a2a86
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.6

Security for aimarket-tee 2.0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

2.0.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page