vouch-a2a 0.1.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
vouch_a2a/__init__.py ADDED
@@ -0,0 +1,11 @@
1
+ """vouch-a2a: bind A2A Agent Cards to a Vouch identity.
2
+
3
+ Thin distribution wrapping vouch.integrations.a2a. It exists so the A2A binding
4
+ can be installed and listed on its own while the implementation stays
5
+ single-sourced in the vouch-protocol package.
6
+ """
7
+
8
+ from vouch.integrations.a2a import VOUCH_CARD_FIELD, sign_agent_card, verify_agent_card
9
+
10
+ __all__ = ["sign_agent_card", "verify_agent_card", "VOUCH_CARD_FIELD"]
11
+ __version__ = "0.1.0"
@@ -0,0 +1,74 @@
1
+ Metadata-Version: 2.4
2
+ Name: vouch-a2a
3
+ Version: 0.1.0
4
+ Summary: Bind A2A (Agent2Agent) Agent Cards to a Vouch identity for verifiable agent-to-agent trust.
5
+ Author: Ramprasad Gaddam
6
+ License: Apache-2.0
7
+ Project-URL: Homepage, https://vouch-protocol.com
8
+ Project-URL: Source, https://github.com/vouch-protocol/vouch
9
+ Keywords: a2a,agent2agent,vouch,ai-agents,verifiable-credentials,identity
10
+ Classifier: Development Status :: 4 - Beta
11
+ Classifier: License :: OSI Approved :: Apache Software License
12
+ Classifier: Programming Language :: Python :: 3
13
+ Classifier: Topic :: Security :: Cryptography
14
+ Requires-Python: >=3.9
15
+ Description-Content-Type: text/markdown
16
+ Requires-Dist: vouch-protocol>=1.6.2
17
+ Provides-Extra: dev
18
+ Requires-Dist: pytest>=7.0; extra == "dev"
19
+
20
+ # vouch-a2a
21
+
22
+ Bind [A2A](https://a2a-protocol.org/) (Agent2Agent) Agent Cards to a
23
+ [Vouch](https://vouch-protocol.com) identity, so two agents can establish trust
24
+ before they collaborate.
25
+
26
+ A2A standardized how agents discover and talk to each other through Agent Cards.
27
+ It does not, by itself, prove who stands behind an agent. `vouch-a2a` attaches a
28
+ W3C Verifiable Credential (`eddsa-jcs-2022` Data Integrity proof) to the card,
29
+ optionally with a delegation chain back to the human or org that operates the
30
+ agent. A verifier can then refuse an unsigned or impostor peer.
31
+
32
+ ## Install
33
+
34
+ ```bash
35
+ pip install vouch-a2a
36
+ ```
37
+
38
+ ## Sign an Agent Card
39
+
40
+ ```python
41
+ from vouch import Signer
42
+ from vouch_a2a import sign_agent_card
43
+
44
+ signer = Signer(private_key=PRIV_JWK, did="did:web:agents.acme.com")
45
+
46
+ card = {
47
+ "name": "BillingAgent",
48
+ "url": "https://agents.acme.com/billing",
49
+ "version": "1.0.0",
50
+ "capabilities": {"streaming": True},
51
+ "skills": [{"id": "invoice", "name": "Create invoice"}],
52
+ }
53
+
54
+ signed_card = sign_agent_card(signer, card) # adds a 'vouchCredential' field
55
+ # Optionally bind to an org principal:
56
+ # signed_card = sign_agent_card(signer, card, parent_credential=org_principal_cred)
57
+ ```
58
+
59
+ ## Verify a peer's card
60
+
61
+ ```python
62
+ from vouch_a2a import verify_agent_card
63
+
64
+ ok, passport = verify_agent_card(peer_card, public_key=peer_pubkey)
65
+ if not ok:
66
+ raise PermissionError("Refusing to collaborate with an unverified agent")
67
+ ```
68
+
69
+ The credential binds to the card's `url` (the stable agent identity). The input
70
+ card is never mutated; `sign_agent_card` returns a copy.
71
+
72
+ ## License
73
+
74
+ Apache-2.0.
@@ -0,0 +1,5 @@
1
+ vouch_a2a/__init__.py,sha256=MtTqzTZ6ufBDwK4EoD2Cr7MDwvg1oi0cY8tH3JM9lKo,440
2
+ vouch_a2a-0.1.0.dist-info/METADATA,sha256=WcezhQ2NOGZy387eozMik3KbJ6PRaBgnQNOoSKV_cQE,2360
3
+ vouch_a2a-0.1.0.dist-info/WHEEL,sha256=aeYiig01lYGDzBgS8HxWXOg3uV61G9ijOsup-k9o1sk,91
4
+ vouch_a2a-0.1.0.dist-info/top_level.txt,sha256=f2oKsjqJ6pmzP7XU5BLJ8gOE2elcEAjk3KE5if3UuC4,10
5
+ vouch_a2a-0.1.0.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: setuptools (82.0.1)
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
5
+
@@ -0,0 +1 @@
1
+ vouch_a2a