atp-sdk 1.1.1 → 1.2.1
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.
- package/CHANGELOG.md +56 -1
- package/README.md +167 -7
- package/dist/index.cjs +44 -7
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +27 -4
- package/dist/index.js.map +1 -1
- package/dist/simple-agent.d.ts.map +1 -1
- package/dist/simple-agent.js +331 -0
- package/dist/simple-agent.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js +23 -0
- package/dist/types.js.map +1 -1
- package/dist/utils/crypto.d.ts.map +1 -1
- package/dist/utils/crypto.js +3 -3
- package/dist/utils/crypto.js.map +1 -1
- package/dist/utils/zkp.d.ts.map +1 -0
- package/dist/utils/zkp.js +648 -0
- package/dist/utils/zkp.js.map +1 -0
- package/docs/IP-PROTECTION.md +153 -0
- package/examples/12-zkp-agent-authentication.js +299 -0
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -179,10 +179,65 @@ console.log(agent.isQuantumSafe()); // true
|
|
|
179
179
|
|
|
180
180
|
---
|
|
181
181
|
|
|
182
|
+
## [1.2.0] - 2024-12-23
|
|
183
|
+
|
|
184
|
+
### 🔐 Zero-Knowledge Proof Agent Authentication
|
|
185
|
+
|
|
186
|
+
This release introduces Zero-Knowledge Proof (ZKP) based agent-to-agent authentication, enabling agents to prove their identity and capabilities without revealing sensitive information.
|
|
187
|
+
|
|
188
|
+
### Added
|
|
189
|
+
|
|
190
|
+
#### Zero-Knowledge Proof System
|
|
191
|
+
- **ZKP Authentication**: `ZKPUtils` class for creating and verifying zero-knowledge proofs
|
|
192
|
+
- **Agent-to-Agent Auth**: Prove identity without revealing private keys
|
|
193
|
+
- **Challenge-Response Protocol**: Secure interactive authentication
|
|
194
|
+
- **Selective Disclosure**: Prove specific attributes without revealing full credentials
|
|
195
|
+
- **Trust Level Verification**: Prove minimum trust levels without exposing exact scores
|
|
196
|
+
|
|
197
|
+
#### New API Methods
|
|
198
|
+
- `ZKPUtils.generateChallenge()`: Create cryptographic challenges
|
|
199
|
+
- `ZKPUtils.createProof()`: Generate ZKP proofs
|
|
200
|
+
- `ZKPUtils.verifyProof()`: Verify ZKP proofs
|
|
201
|
+
- `ZKPUtils.createIdentityProof()`: Agent identity proofs
|
|
202
|
+
- `ZKPUtils.createCapabilityProof()`: Capability possession proofs
|
|
203
|
+
- `ZKPUtils.createTrustLevelProof()`: Trust level range proofs
|
|
204
|
+
|
|
205
|
+
#### Examples & Documentation
|
|
206
|
+
- **Example 12**: `12-zkp-agent-authentication.js` - Complete ZKP authentication workflow
|
|
207
|
+
- **Test Suite**: Comprehensive ZKP authentication tests
|
|
208
|
+
- **Integration Tests**: Agent-to-agent authentication scenarios
|
|
209
|
+
|
|
210
|
+
### Security
|
|
211
|
+
|
|
212
|
+
- **Zero-Knowledge**: Proofs reveal nothing beyond the statement being proved
|
|
213
|
+
- **Non-Interactive Option**: NIZK proofs for async authentication
|
|
214
|
+
- **Replay Protection**: Challenge-based protocol prevents replay attacks
|
|
215
|
+
- **Quantum-Safe Compatible**: Works with existing hybrid crypto system
|
|
216
|
+
|
|
217
|
+
### Use Cases
|
|
218
|
+
|
|
219
|
+
```typescript
|
|
220
|
+
// Agent A wants to prove it has 'data:read' capability to Agent B
|
|
221
|
+
// WITHOUT revealing its full credential set
|
|
222
|
+
|
|
223
|
+
const challenge = ZKPUtils.generateChallenge();
|
|
224
|
+
const proof = await ZKPUtils.createCapabilityProof(
|
|
225
|
+
agentA.did,
|
|
226
|
+
'data:read',
|
|
227
|
+
agentA.privateKey,
|
|
228
|
+
challenge
|
|
229
|
+
);
|
|
230
|
+
|
|
231
|
+
// Agent B verifies without learning what other capabilities A has
|
|
232
|
+
const isValid = await ZKPUtils.verifyProof(proof, challenge, agentA.publicKey);
|
|
233
|
+
```
|
|
234
|
+
|
|
235
|
+
---
|
|
236
|
+
|
|
182
237
|
## [Unreleased]
|
|
183
238
|
|
|
184
239
|
### Planned Features
|
|
185
|
-
- **v1.
|
|
240
|
+
- **v1.3.0**: WebAssembly support for browser environments
|
|
186
241
|
- **v1.3.0**: GraphQL API support and enhanced querying
|
|
187
242
|
- **v1.4.0**: Advanced zero-knowledge proof features
|
|
188
243
|
- **v2.0.0**: ATP Protocol v2 compatibility and new features
|
package/README.md
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
# atp-sdk - Agent Trust Protocol SDK
|
|
2
2
|
|
|
3
|
-
> **The
|
|
3
|
+
> **The First Quantum-Safe AI Agent SDK with Zero-Knowledge Proof Authentication**
|
|
4
4
|
|
|
5
5
|
ATP provides universal quantum-safe security for all AI agent protocols (MCP, Swarm, ADK, A2A, and more). Build secure, verifiable, and trustworthy AI agents in 3 lines of code!
|
|
6
6
|
|
|
7
|
+
**One unified SDK** - Quantum-safe cryptography + ZKP authentication + Identity + Credentials + Payments - all included.
|
|
8
|
+
|
|
7
9
|
[](https://www.npmjs.com/package/atp-sdk)
|
|
8
10
|
[](https://opensource.org/licenses/Apache-2.0)
|
|
9
11
|
[](https://www.typescriptlang.org/)
|
|
@@ -111,6 +113,55 @@ ATP provides:
|
|
|
111
113
|
|
|
112
114
|
[Learn more about multi-protocol support →](./docs/MULTI-PROTOCOL-SUPPORT.md)
|
|
113
115
|
|
|
116
|
+
### 🔐 **Zero-Knowledge Proof Authentication** (NEW in v1.2!)
|
|
117
|
+
- **Agent-to-Agent Authentication** - Cryptographic proofs without revealing secrets
|
|
118
|
+
- **Behavior-Based Proofs** - Prove compliance history without exposing interaction details
|
|
119
|
+
- **Trust Level Verification** - Prove minimum trust score without revealing exact value
|
|
120
|
+
- **Credential Proofs** - Selective disclosure of verifiable credentials
|
|
121
|
+
- **Identity Proofs** - DID ownership verification
|
|
122
|
+
- **Mutual Authentication** - Both agents verify each other simultaneously
|
|
123
|
+
|
|
124
|
+
```typescript
|
|
125
|
+
import { Agent } from 'atp-sdk';
|
|
126
|
+
|
|
127
|
+
// Create two agents
|
|
128
|
+
const alice = await Agent.create('Alice');
|
|
129
|
+
const bob = await Agent.create('Bob');
|
|
130
|
+
|
|
131
|
+
// Alice challenges Bob to prove trust level
|
|
132
|
+
const challenge = await alice.requestAuth(bob.getDID(), [
|
|
133
|
+
{ type: 'trust_level', params: { minTrustLevel: 0.7 } }
|
|
134
|
+
]);
|
|
135
|
+
|
|
136
|
+
// Bob generates ZK proof (proves trust >= 0.7 without revealing exact score)
|
|
137
|
+
const response = await bob.respondToChallenge(challenge);
|
|
138
|
+
|
|
139
|
+
// Alice verifies - cryptographically guaranteed
|
|
140
|
+
const result = await alice.verifyAuthResponse(response);
|
|
141
|
+
console.log('Verified:', result.verified); // true
|
|
142
|
+
```
|
|
143
|
+
|
|
144
|
+
**Behavior-Based Proofs** - ATP's unique differentiator:
|
|
145
|
+
|
|
146
|
+
```typescript
|
|
147
|
+
// Record agent interactions over time
|
|
148
|
+
bob.recordInteraction('task-1', 'success');
|
|
149
|
+
bob.recordInteraction('task-2', 'success');
|
|
150
|
+
bob.recordInteraction('task-3', 'success');
|
|
151
|
+
|
|
152
|
+
// Prove 100% success rate without revealing individual interactions
|
|
153
|
+
const behaviorProof = await bob.proveBehavior({
|
|
154
|
+
type: 'success_rate',
|
|
155
|
+
threshold: 95
|
|
156
|
+
});
|
|
157
|
+
|
|
158
|
+
// Verify the proof
|
|
159
|
+
const valid = await alice.verifyBehaviorProof(behaviorProof, {
|
|
160
|
+
type: 'success_rate',
|
|
161
|
+
threshold: 95
|
|
162
|
+
});
|
|
163
|
+
```
|
|
164
|
+
|
|
114
165
|
### 💳 **Payment Protocols**
|
|
115
166
|
- **Google AP2 Integration** - Agent Payments Protocol with mandate-based authorization
|
|
116
167
|
- **OpenAI ACP Support** - Agentic Commerce Protocol for ChatGPT commerce
|
|
@@ -437,6 +488,113 @@ const health = await client.gateway.getStatus();
|
|
|
437
488
|
console.log('Gateway status:', health.data.status);
|
|
438
489
|
```
|
|
439
490
|
|
|
491
|
+
### Zero-Knowledge Proof Authentication
|
|
492
|
+
|
|
493
|
+
```typescript
|
|
494
|
+
import { Agent, ZKProofType } from 'atp-sdk';
|
|
495
|
+
|
|
496
|
+
// === Basic Agent-to-Agent Authentication ===
|
|
497
|
+
|
|
498
|
+
// Create two agents that need to authenticate each other
|
|
499
|
+
const serviceAgent = await Agent.create('DataService');
|
|
500
|
+
const clientAgent = await Agent.create('ClientBot');
|
|
501
|
+
|
|
502
|
+
// Service agent requires proof of trust level and identity
|
|
503
|
+
const challenge = await serviceAgent.requestAuth(clientAgent.getDID(), [
|
|
504
|
+
{ type: ZKProofType.TRUST_LEVEL, params: { minTrustLevel: 0.6 } },
|
|
505
|
+
{ type: ZKProofType.IDENTITY, params: {} }
|
|
506
|
+
]);
|
|
507
|
+
|
|
508
|
+
// Client generates zero-knowledge proofs (proves claims without revealing values)
|
|
509
|
+
const response = await clientAgent.respondToChallenge(challenge);
|
|
510
|
+
|
|
511
|
+
// Service verifies proofs cryptographically
|
|
512
|
+
const authResult = await serviceAgent.verifyAuthResponse(response);
|
|
513
|
+
|
|
514
|
+
if (authResult.verified) {
|
|
515
|
+
console.log('Client authenticated successfully');
|
|
516
|
+
console.log('Trust level: >= 0.6 (exact value hidden)');
|
|
517
|
+
}
|
|
518
|
+
|
|
519
|
+
// === Mutual Authentication ===
|
|
520
|
+
// Both agents authenticate each other simultaneously
|
|
521
|
+
|
|
522
|
+
const { myResult, theirResult } = await serviceAgent.mutualAuth(
|
|
523
|
+
clientAgent.getDID(),
|
|
524
|
+
// What we require from them
|
|
525
|
+
[{ type: ZKProofType.TRUST_LEVEL, params: { minTrustLevel: 0.5 } }],
|
|
526
|
+
// What they require from us
|
|
527
|
+
[{ type: ZKProofType.CREDENTIAL, params: { credentialType: 'ServiceProvider' } }]
|
|
528
|
+
);
|
|
529
|
+
|
|
530
|
+
console.log('Both agents verified:', myResult.verified && theirResult.verified);
|
|
531
|
+
|
|
532
|
+
// === Behavior-Based Proofs (ATP Differentiator) ===
|
|
533
|
+
// Prove compliance history without revealing individual interactions
|
|
534
|
+
|
|
535
|
+
// Record interactions over time (in production, called by your business logic)
|
|
536
|
+
for (let i = 0; i < 100; i++) {
|
|
537
|
+
clientAgent.recordInteraction(`task-${i}`, 'success');
|
|
538
|
+
}
|
|
539
|
+
|
|
540
|
+
// Check current behavior stats
|
|
541
|
+
const stats = clientAgent.getBehaviorStats();
|
|
542
|
+
console.log(`Success: ${stats.successCount}, Violations: ${stats.violationCount}`);
|
|
543
|
+
|
|
544
|
+
// Prove "no violations" - service can verify without seeing interaction history
|
|
545
|
+
const noViolationsProof = await clientAgent.proveBehavior({
|
|
546
|
+
type: 'no_violations'
|
|
547
|
+
});
|
|
548
|
+
|
|
549
|
+
const isCompliant = await serviceAgent.verifyBehaviorProof(
|
|
550
|
+
noViolationsProof,
|
|
551
|
+
{ type: 'no_violations' }
|
|
552
|
+
);
|
|
553
|
+
console.log('Agent has clean record:', isCompliant);
|
|
554
|
+
|
|
555
|
+
// Prove success rate meets threshold
|
|
556
|
+
const successProof = await clientAgent.proveBehavior({
|
|
557
|
+
type: 'success_rate',
|
|
558
|
+
threshold: 95 // Proves >= 95% success without revealing exact rate
|
|
559
|
+
});
|
|
560
|
+
|
|
561
|
+
// Prove compliance with specific policy
|
|
562
|
+
const policyProof = await clientAgent.proveBehavior({
|
|
563
|
+
type: 'policy_compliance',
|
|
564
|
+
policyId: 'rate-limit-policy'
|
|
565
|
+
});
|
|
566
|
+
|
|
567
|
+
// === Using Low-Level ZKP Utilities ===
|
|
568
|
+
import {
|
|
569
|
+
createChallenge,
|
|
570
|
+
createTrustLevelProof,
|
|
571
|
+
verifyTrustLevelProof,
|
|
572
|
+
generateAuthResponse,
|
|
573
|
+
verifyAuthResponse
|
|
574
|
+
} from 'atp-sdk';
|
|
575
|
+
|
|
576
|
+
// Create a custom challenge
|
|
577
|
+
const customChallenge = createChallenge(
|
|
578
|
+
'did:atp:verifier',
|
|
579
|
+
'did:atp:prover',
|
|
580
|
+
[{ type: ZKProofType.TRUST_LEVEL, params: { minTrustLevel: 0.8 } }],
|
|
581
|
+
5 // expires in 5 minutes
|
|
582
|
+
);
|
|
583
|
+
|
|
584
|
+
// Generate proof manually
|
|
585
|
+
const trustProof = createTrustLevelProof(
|
|
586
|
+
0.85, // actual trust score
|
|
587
|
+
0.8, // threshold to prove
|
|
588
|
+
privateKey
|
|
589
|
+
);
|
|
590
|
+
|
|
591
|
+
// Verify proof
|
|
592
|
+
const isValid = verifyTrustLevelProof(trustProof, {
|
|
593
|
+
type: ZKProofType.TRUST_LEVEL,
|
|
594
|
+
params: { minTrustLevel: 0.8 }
|
|
595
|
+
});
|
|
596
|
+
```
|
|
597
|
+
|
|
440
598
|
### Payment Protocols (AP2 & ACP)
|
|
441
599
|
|
|
442
600
|
```javascript
|
|
@@ -818,7 +976,7 @@ We welcome contributions! Please see our [Contributing Guide](CONTRIBUTING.md) f
|
|
|
818
976
|
|
|
819
977
|
## 📄 License
|
|
820
978
|
|
|
821
|
-
This project is licensed under the
|
|
979
|
+
This project is licensed under the Apache-2.0 License - see the [LICENSE](LICENSE) file for details.
|
|
822
980
|
|
|
823
981
|
## 🆘 Support
|
|
824
982
|
|
|
@@ -838,9 +996,9 @@ This project is licensed under the MIT License - see the [LICENSE](LICENSE) file
|
|
|
838
996
|
## 📈 Roadmap
|
|
839
997
|
|
|
840
998
|
- [x] **v1.1.0** - Payment Protocols (AP2 & ACP) Integration
|
|
841
|
-
- [
|
|
842
|
-
- [ ] **v1.3.0** -
|
|
843
|
-
- [ ] **v1.4.0** -
|
|
999
|
+
- [x] **v1.2.0** - Zero-Knowledge Proof Authentication (Agent-to-Agent)
|
|
1000
|
+
- [ ] **v1.3.0** - WebAssembly support for browser environments
|
|
1001
|
+
- [ ] **v1.4.0** - GraphQL API support
|
|
844
1002
|
- [ ] **v2.0.0** - ATP Protocol v2 compatibility
|
|
845
1003
|
|
|
846
1004
|
## 🔗 Payment Protocol Partners
|
|
@@ -861,6 +1019,8 @@ The ATP SDK integrates with industry-leading payment platforms:
|
|
|
861
1019
|
|
|
862
1020
|
---
|
|
863
1021
|
|
|
864
|
-
**Agent Trust Protocol™** -
|
|
1022
|
+
**Agent Trust Protocol™** - The security layer for AI agents.
|
|
1023
|
+
|
|
1024
|
+
Built and maintained by [Sovr Labs](https://sovrlabs.com) | [Enterprise](https://sovrlabs.com/enterprise)
|
|
865
1025
|
|
|
866
|
-
©
|
|
1026
|
+
© 2025 Sovr Labs. Apache-2.0 License.
|
package/dist/index.cjs
CHANGED
|
@@ -2,16 +2,23 @@
|
|
|
2
2
|
/**
|
|
3
3
|
* ATP™ SDK - Agent Trust Protocol SDK
|
|
4
4
|
*
|
|
5
|
-
*
|
|
5
|
+
* The first quantum-safe AI agent SDK with zero-knowledge proof authentication.
|
|
6
|
+
* Build secure, verifiable, and trustworthy AI agent applications.
|
|
6
7
|
*
|
|
7
|
-
*
|
|
8
|
+
* Features:
|
|
9
|
+
* - Quantum-Safe Cryptography (ML-DSA + Ed25519 hybrid) - enabled by default
|
|
10
|
+
* - Zero-Knowledge Proof Authentication - prove identity without revealing secrets
|
|
11
|
+
* - Decentralized Identity (DID) management
|
|
12
|
+
* - Verifiable Credentials
|
|
13
|
+
* - Policy-based access control
|
|
14
|
+
* - Blockchain-anchored audit trails
|
|
15
|
+
*
|
|
16
|
+
* @version 1.2.0
|
|
8
17
|
* @author Agent Trust Protocol™ Team
|
|
9
|
-
* @license
|
|
18
|
+
* @license Apache-2.0
|
|
10
19
|
*/
|
|
11
20
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.SDK_INFO = exports.ATP_CONSTANTS = exports.PROTOCOL_VERSION = exports.VERSION = exports.versionManager = exports.VersionManager = exports.JWTUtils = exports.DIDUtils = exports.CryptoUtils = exports.SecurityEnforcer = exports.UniversalMonitor = exports.MCPAdapter = exports.BaseProtocolAdapter = exports.ProtocolDetector = exports.PaymentsClient = exports.GatewayClient = exports.AuditClient = exports.PermissionsClient = exports.CredentialsClient = exports.IdentityClient = exports.BaseClient = exports.ATPClient = exports.default = exports.Agent = void 0;
|
|
13
|
-
exports.createATPClient = createATPClient;
|
|
14
|
-
exports.createQuickConfig = createQuickConfig;
|
|
21
|
+
exports.SDK_INFO = exports.createQuickConfig = exports.createATPClient = exports.ATP_CONSTANTS = exports.PROTOCOL_VERSION = exports.VERSION = exports.ZKProofType = exports.BehaviorMerkleTree = exports.verifyAuthResponse = exports.generateAuthResponse = exports.verifyBehaviorProof = exports.verifyIdentityProof = exports.verifyCredentialProof = exports.verifyTrustLevelProof = exports.createBehaviorProof = exports.createBehaviorCommitment = exports.createIdentityProof = exports.createCredentialProof = exports.createTrustLevelProof = exports.isChallengeExpired = exports.createChallenge = exports.generateChallengeHash = exports.generateNonce = exports.generateRandomBlinding = exports.generatePedersenCommitment = exports.versionManager = exports.VersionManager = exports.JWTUtils = exports.DIDUtils = exports.CryptoUtils = exports.SecurityEnforcer = exports.UniversalMonitor = exports.MCPAdapter = exports.BaseProtocolAdapter = exports.ProtocolDetector = exports.PaymentsClient = exports.GatewayClient = exports.AuditClient = exports.PermissionsClient = exports.CredentialsClient = exports.IdentityClient = exports.BaseClient = exports.ATPClient = exports.default = exports.Agent = void 0;
|
|
15
22
|
// Simplified Agent API (3-line quick start!)
|
|
16
23
|
var simple_agent_js_1 = require("./simple-agent.js");
|
|
17
24
|
Object.defineProperty(exports, "Agent", { enumerable: true, get: function () { return simple_agent_js_1.Agent; } });
|
|
@@ -53,8 +60,36 @@ Object.defineProperty(exports, "JWTUtils", { enumerable: true, get: function ()
|
|
|
53
60
|
var version_manager_js_1 = require("./utils/version-manager.js");
|
|
54
61
|
Object.defineProperty(exports, "VersionManager", { enumerable: true, get: function () { return version_manager_js_1.VersionManager; } });
|
|
55
62
|
Object.defineProperty(exports, "versionManager", { enumerable: true, get: function () { return version_manager_js_1.versionManager; } });
|
|
63
|
+
// ZKP Authentication Utilities (NEW - Agent-to-Agent Auth)
|
|
64
|
+
var zkp_js_1 = require("./utils/zkp.js");
|
|
65
|
+
// Core ZKP Functions
|
|
66
|
+
Object.defineProperty(exports, "generatePedersenCommitment", { enumerable: true, get: function () { return zkp_js_1.generatePedersenCommitment; } });
|
|
67
|
+
Object.defineProperty(exports, "generateRandomBlinding", { enumerable: true, get: function () { return zkp_js_1.generateRandomBlinding; } });
|
|
68
|
+
Object.defineProperty(exports, "generateNonce", { enumerable: true, get: function () { return zkp_js_1.generateNonce; } });
|
|
69
|
+
Object.defineProperty(exports, "generateChallengeHash", { enumerable: true, get: function () { return zkp_js_1.generateChallengeHash; } });
|
|
70
|
+
Object.defineProperty(exports, "createChallenge", { enumerable: true, get: function () { return zkp_js_1.createChallenge; } });
|
|
71
|
+
Object.defineProperty(exports, "isChallengeExpired", { enumerable: true, get: function () { return zkp_js_1.isChallengeExpired; } });
|
|
72
|
+
// Proof Generation
|
|
73
|
+
Object.defineProperty(exports, "createTrustLevelProof", { enumerable: true, get: function () { return zkp_js_1.createTrustLevelProof; } });
|
|
74
|
+
Object.defineProperty(exports, "createCredentialProof", { enumerable: true, get: function () { return zkp_js_1.createCredentialProof; } });
|
|
75
|
+
Object.defineProperty(exports, "createIdentityProof", { enumerable: true, get: function () { return zkp_js_1.createIdentityProof; } });
|
|
76
|
+
Object.defineProperty(exports, "createBehaviorCommitment", { enumerable: true, get: function () { return zkp_js_1.createBehaviorCommitment; } });
|
|
77
|
+
Object.defineProperty(exports, "createBehaviorProof", { enumerable: true, get: function () { return zkp_js_1.createBehaviorProof; } });
|
|
78
|
+
// Proof Verification
|
|
79
|
+
Object.defineProperty(exports, "verifyTrustLevelProof", { enumerable: true, get: function () { return zkp_js_1.verifyTrustLevelProof; } });
|
|
80
|
+
Object.defineProperty(exports, "verifyCredentialProof", { enumerable: true, get: function () { return zkp_js_1.verifyCredentialProof; } });
|
|
81
|
+
Object.defineProperty(exports, "verifyIdentityProof", { enumerable: true, get: function () { return zkp_js_1.verifyIdentityProof; } });
|
|
82
|
+
Object.defineProperty(exports, "verifyBehaviorProof", { enumerable: true, get: function () { return zkp_js_1.verifyBehaviorProof; } });
|
|
83
|
+
// Auth Flow
|
|
84
|
+
Object.defineProperty(exports, "generateAuthResponse", { enumerable: true, get: function () { return zkp_js_1.generateAuthResponse; } });
|
|
85
|
+
Object.defineProperty(exports, "verifyAuthResponse", { enumerable: true, get: function () { return zkp_js_1.verifyAuthResponse; } });
|
|
86
|
+
// Behavior Tracking
|
|
87
|
+
Object.defineProperty(exports, "BehaviorMerkleTree", { enumerable: true, get: function () { return zkp_js_1.BehaviorMerkleTree; } });
|
|
88
|
+
// ZKP Proof Type Enum (exported as value for use in comparisons)
|
|
89
|
+
var types_js_1 = require("./types.js");
|
|
90
|
+
Object.defineProperty(exports, "ZKProofType", { enumerable: true, get: function () { return types_js_1.ZKProofType; } });
|
|
56
91
|
// Version information
|
|
57
|
-
exports.VERSION = '1.
|
|
92
|
+
exports.VERSION = '1.2.0';
|
|
58
93
|
exports.PROTOCOL_VERSION = '1.0';
|
|
59
94
|
// Constants
|
|
60
95
|
exports.ATP_CONSTANTS = {
|
|
@@ -73,6 +108,7 @@ const atp_js_2 = require("./client/atp.js");
|
|
|
73
108
|
function createATPClient(config) {
|
|
74
109
|
return new atp_js_2.ATPClient(config);
|
|
75
110
|
}
|
|
111
|
+
exports.createATPClient = createATPClient;
|
|
76
112
|
function createQuickConfig(baseUrl, options) {
|
|
77
113
|
return {
|
|
78
114
|
baseUrl,
|
|
@@ -89,6 +125,7 @@ function createQuickConfig(baseUrl, options) {
|
|
|
89
125
|
}
|
|
90
126
|
};
|
|
91
127
|
}
|
|
128
|
+
exports.createQuickConfig = createQuickConfig;
|
|
92
129
|
// SDK Metadata
|
|
93
130
|
exports.SDK_INFO = {
|
|
94
131
|
name: 'atp-sdk',
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAA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AY,EACV,yBAAyB,EACzB,6BAA6B,EAC7B,mBAAmB,EACpB,MAAM,yBAAyB,CAAC;AAEjC,YAAY,EACV,iBAAiB,EACjB,aAAa,EACb,UAAU,EACV,eAAe,EAChB,MAAM,yBAAyB,CAAC;AAEjC,YAAY,EACV,eAAe,EACf,UAAU,EACV,qBAAqB,EACrB,UAAU,EACV,gBAAgB,EACjB,MAAM,mBAAmB,CAAC;AAE3B,YAAY,EACV,aAAa,EACb,SAAS,EACT,eAAe,EACf,aAAa,EACd,MAAM,qBAAqB,CAAC;AAG7B,eAAO,MAAM,OAAO,UAAU,CAAC;AAC/B,eAAO,MAAM,gBAAgB,QAAQ,CAAC;AAGtC,eAAO,MAAM,aAAa;;;;;;;;;CAShB,CAAC;AAGX,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAG5C,wBAAgB,eAAe,CAAC,MAAM,EAAE,SAAS,GAAG,SAAS,CAE5D;AAED,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE;IAC3D,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE;QACL,GAAG,CAAC,EAAE,MAAM,CAAC;QACb,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,KAAK,CAAC,EAAE,MAAM,CAAC;KAChB,CAAC;CACH,GAAG,SAAS,CAeZ;AAGD,eAAO,MAAM,QAAQ;;;;;;;;CAQX,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,11 +1,20 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* ATP™ SDK - Agent Trust Protocol SDK
|
|
3
3
|
*
|
|
4
|
-
*
|
|
4
|
+
* The first quantum-safe AI agent SDK with zero-knowledge proof authentication.
|
|
5
|
+
* Build secure, verifiable, and trustworthy AI agent applications.
|
|
5
6
|
*
|
|
6
|
-
*
|
|
7
|
+
* Features:
|
|
8
|
+
* - Quantum-Safe Cryptography (ML-DSA + Ed25519 hybrid) - enabled by default
|
|
9
|
+
* - Zero-Knowledge Proof Authentication - prove identity without revealing secrets
|
|
10
|
+
* - Decentralized Identity (DID) management
|
|
11
|
+
* - Verifiable Credentials
|
|
12
|
+
* - Policy-based access control
|
|
13
|
+
* - Blockchain-anchored audit trails
|
|
14
|
+
*
|
|
15
|
+
* @version 1.2.0
|
|
7
16
|
* @author Agent Trust Protocol™ Team
|
|
8
|
-
* @license
|
|
17
|
+
* @license Apache-2.0
|
|
9
18
|
*/
|
|
10
19
|
// Simplified Agent API (3-line quick start!)
|
|
11
20
|
export { Agent } from './simple-agent.js';
|
|
@@ -28,8 +37,22 @@ export { CryptoUtils } from './utils/crypto.js';
|
|
|
28
37
|
export { DIDUtils } from './utils/did.js';
|
|
29
38
|
export { JWTUtils } from './utils/jwt.js';
|
|
30
39
|
export { VersionManager, versionManager } from './utils/version-manager.js';
|
|
40
|
+
// ZKP Authentication Utilities (NEW - Agent-to-Agent Auth)
|
|
41
|
+
export {
|
|
42
|
+
// Core ZKP Functions
|
|
43
|
+
generatePedersenCommitment, generateRandomBlinding, generateNonce, generateChallengeHash, createChallenge, isChallengeExpired,
|
|
44
|
+
// Proof Generation
|
|
45
|
+
createTrustLevelProof, createCredentialProof, createIdentityProof, createBehaviorCommitment, createBehaviorProof,
|
|
46
|
+
// Proof Verification
|
|
47
|
+
verifyTrustLevelProof, verifyCredentialProof, verifyIdentityProof, verifyBehaviorProof,
|
|
48
|
+
// Auth Flow
|
|
49
|
+
generateAuthResponse, verifyAuthResponse,
|
|
50
|
+
// Behavior Tracking
|
|
51
|
+
BehaviorMerkleTree } from './utils/zkp.js';
|
|
52
|
+
// ZKP Proof Type Enum (exported as value for use in comparisons)
|
|
53
|
+
export { ZKProofType } from './types.js';
|
|
31
54
|
// Version information
|
|
32
|
-
export const VERSION = '1.
|
|
55
|
+
export const VERSION = '1.2.0';
|
|
33
56
|
export const PROTOCOL_VERSION = '1.0';
|
|
34
57
|
// Constants
|
|
35
58
|
export const ATP_CONSTANTS = {
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAEH,6CAA6C;AAC7C,OAAO,EAAE,KAAK,EAA2B,MAAM,mBAAmB,CAAC;AACnE,OAAO,EAAE,KAAK,IAAI,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAErD,kBAAkB;AAClB,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAE5C,kBAAkB;AAClB,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACtD,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAC5D,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAC5D,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAEtD,yCAAyC;AACzC,OAAO,EAEL,gBAAgB,EAChB,mBAAmB,EACnB,UAAU,EACX,MAAM,sBAAsB,CAAC;AAE9B,OAAO,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAE3E,kBAAkB;AAClB,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAC1C,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAC1C,OAAO,EAAE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,aAAa,CAAC,eAAe;QAC1D,OAAO,EAAE,OAAO,EAAE,OAAO,IAAI,aAAa,CAAC,WAAW;QACtD,UAAU,EAAE,aAAa,CAAC,WAAW;QACrC,IAAI,EAAE,OAAO,EAAE,IAAI,IAAI,EAAE;QACzB,QAAQ,EAAE;YACR,QAAQ,EAAE,OAAO,CAAC,GAAG,CAAC,gBAAgB,IAAI,GAAG,OAAO,OAAO;YAC3D,WAAW,EAAE,OAAO,CAAC,GAAG,CAAC,mBAAmB,IAAI,GAAG,OAAO,OAAO;YACjE,WAAW,EAAE,OAAO,CAAC,GAAG,CAAC,mBAAmB,IAAI,GAAG,OAAO,OAAO;YACjE,KAAK,EAAE,OAAO,CAAC,GAAG,CAAC,aAAa,IAAI,GAAG,OAAO,OAAO;YACrD,OAAO,EAAE,OAAO,CAAC,GAAG,CAAC,eAAe,IAAI,GAAG,OAAO,OAAO;SAC1D;KACF,CAAC;AACJ,CAAC;AAED,eAAe;AACf,MAAM,CAAC,MAAM,QAAQ,GAAG;IACtB,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,OAAO;IAChB,eAAe,EAAE,gBAAgB;IACjC,WAAW,EAAE,mDAAmD;IAChE,UAAU,EAAE,4BAA4B;IACxC,aAAa,EAAE,2BAA2B;IAC1C,OAAO,EAAE,8BAA8B;CAC/B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"simple-agent.d.ts","sourceRoot":"","sources":["../src/simple-agent.ts"],"names":[],"mappings":"AAAA;;;;;GAKG
|
|
1
|
+
{"version":3,"file":"simple-agent.d.ts","sourceRoot":"","sources":["../src/simple-agent.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;;AAEH,OAAO,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AAGtC,OAAO,EAAgB,gBAAgB,EAAgC,MAAM,kBAAkB,CAAC;AAWhG,OAAO,KAAK,EAEV,YAAY,EACZ,cAAc,EACd,cAAc,EACd,aAAa,EACb,aAAa,EACb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