Current collected state Current
Observed since 20 Oct, 21:38 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
Content-addressed artifact manifest for AI agents (Python port of @p-vbordei/agent-cid)
Python port of
@p-vbordei/agent-cid. Content-addressed artifact manifest for AI agents — CIDv1 + Ed25519 + DID + RFC 8785 JCS. Byte-deterministic-compatible with the TypeScript reference: passes the same C1–C5 conformance vectors.
pip install agent-cid
import asyncio
from cryptography.hazmat.primitives import serialization
from cryptography.hazmat.primitives.asymmetric.ed25519 import Ed25519PrivateKey
from agent_cid import build, verify, pubkey_to_did_key, BuildOpts, SignerInput
async def main():
priv = Ed25519PrivateKey.generate()
pub = priv.public_key().public_bytes(
serialization.Encoding.Raw, serialization.PublicFormat.Raw,
)
did = pubkey_to_did_key(pub)
manifest = await build(
b"hello world",
BuildOpts(
producer_did=did,
schema_uri="https://example.org/schema",
media_type="text/plain",
signers=[SignerInput(did=did, sign_fn=lambda b: priv.sign(b))],
),
)
r = await verify(manifest, b"hello world")
print(r.ok) # True
asyncio.run(main())
pip install -e ".[dev]"
pytest -v
Vectors in vectors/ are copied verbatim from the TS conformance suite.
Apache-2.0
Download counts and popularity will appear here as the collector receives them.
| Version | Published | Direct dependencies | Open version |
|---|---|---|---|
| 0.1.0 | 19 May 2026 | 8 |
This describes our collected data; it is not a security assessment.
Observed since 20 Oct, 21:38 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:7cea6748ea5fa6fab08e5af92c541b35a817537c6a0f665cbc82fb003104c002