atp-sdk 1.1.1 → 1.2.0
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 +163 -5
- package/dist/index.cjs +29 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +14 -0
- 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/zkp.d.ts.map +1 -0
- package/dist/utils/zkp.js +648 -0
- package/dist/utils/zkp.js.map +1 -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
|
@@ -111,6 +111,55 @@ ATP provides:
|
|
|
111
111
|
|
|
112
112
|
[Learn more about multi-protocol support →](./docs/MULTI-PROTOCOL-SUPPORT.md)
|
|
113
113
|
|
|
114
|
+
### 🔐 **Zero-Knowledge Proof Authentication** (NEW in v1.2!)
|
|
115
|
+
- **Agent-to-Agent Authentication** - Cryptographic proofs without revealing secrets
|
|
116
|
+
- **Behavior-Based Proofs** - Prove compliance history without exposing interaction details
|
|
117
|
+
- **Trust Level Verification** - Prove minimum trust score without revealing exact value
|
|
118
|
+
- **Credential Proofs** - Selective disclosure of verifiable credentials
|
|
119
|
+
- **Identity Proofs** - DID ownership verification
|
|
120
|
+
- **Mutual Authentication** - Both agents verify each other simultaneously
|
|
121
|
+
|
|
122
|
+
```typescript
|
|
123
|
+
import { Agent } from 'atp-sdk';
|
|
124
|
+
|
|
125
|
+
// Create two agents
|
|
126
|
+
const alice = await Agent.create('Alice');
|
|
127
|
+
const bob = await Agent.create('Bob');
|
|
128
|
+
|
|
129
|
+
// Alice challenges Bob to prove trust level
|
|
130
|
+
const challenge = await alice.requestAuth(bob.getDID(), [
|
|
131
|
+
{ type: 'trust_level', params: { minTrustLevel: 0.7 } }
|
|
132
|
+
]);
|
|
133
|
+
|
|
134
|
+
// Bob generates ZK proof (proves trust >= 0.7 without revealing exact score)
|
|
135
|
+
const response = await bob.respondToChallenge(challenge);
|
|
136
|
+
|
|
137
|
+
// Alice verifies - cryptographically guaranteed
|
|
138
|
+
const result = await alice.verifyAuthResponse(response);
|
|
139
|
+
console.log('Verified:', result.verified); // true
|
|
140
|
+
```
|
|
141
|
+
|
|
142
|
+
**Behavior-Based Proofs** - ATP's unique differentiator:
|
|
143
|
+
|
|
144
|
+
```typescript
|
|
145
|
+
// Record agent interactions over time
|
|
146
|
+
bob.recordInteraction('task-1', 'success');
|
|
147
|
+
bob.recordInteraction('task-2', 'success');
|
|
148
|
+
bob.recordInteraction('task-3', 'success');
|
|
149
|
+
|
|
150
|
+
// Prove 100% success rate without revealing individual interactions
|
|
151
|
+
const behaviorProof = await bob.proveBehavior({
|
|
152
|
+
type: 'success_rate',
|
|
153
|
+
threshold: 95
|
|
154
|
+
});
|
|
155
|
+
|
|
156
|
+
// Verify the proof
|
|
157
|
+
const valid = await alice.verifyBehaviorProof(behaviorProof, {
|
|
158
|
+
type: 'success_rate',
|
|
159
|
+
threshold: 95
|
|
160
|
+
});
|
|
161
|
+
```
|
|
162
|
+
|
|
114
163
|
### 💳 **Payment Protocols**
|
|
115
164
|
- **Google AP2 Integration** - Agent Payments Protocol with mandate-based authorization
|
|
116
165
|
- **OpenAI ACP Support** - Agentic Commerce Protocol for ChatGPT commerce
|
|
@@ -437,6 +486,113 @@ const health = await client.gateway.getStatus();
|
|
|
437
486
|
console.log('Gateway status:', health.data.status);
|
|
438
487
|
```
|
|
439
488
|
|
|
489
|
+
### Zero-Knowledge Proof Authentication
|
|
490
|
+
|
|
491
|
+
```typescript
|
|
492
|
+
import { Agent, ZKProofType } from 'atp-sdk';
|
|
493
|
+
|
|
494
|
+
// === Basic Agent-to-Agent Authentication ===
|
|
495
|
+
|
|
496
|
+
// Create two agents that need to authenticate each other
|
|
497
|
+
const serviceAgent = await Agent.create('DataService');
|
|
498
|
+
const clientAgent = await Agent.create('ClientBot');
|
|
499
|
+
|
|
500
|
+
// Service agent requires proof of trust level and identity
|
|
501
|
+
const challenge = await serviceAgent.requestAuth(clientAgent.getDID(), [
|
|
502
|
+
{ type: ZKProofType.TRUST_LEVEL, params: { minTrustLevel: 0.6 } },
|
|
503
|
+
{ type: ZKProofType.IDENTITY, params: {} }
|
|
504
|
+
]);
|
|
505
|
+
|
|
506
|
+
// Client generates zero-knowledge proofs (proves claims without revealing values)
|
|
507
|
+
const response = await clientAgent.respondToChallenge(challenge);
|
|
508
|
+
|
|
509
|
+
// Service verifies proofs cryptographically
|
|
510
|
+
const authResult = await serviceAgent.verifyAuthResponse(response);
|
|
511
|
+
|
|
512
|
+
if (authResult.verified) {
|
|
513
|
+
console.log('Client authenticated successfully');
|
|
514
|
+
console.log('Trust level: >= 0.6 (exact value hidden)');
|
|
515
|
+
}
|
|
516
|
+
|
|
517
|
+
// === Mutual Authentication ===
|
|
518
|
+
// Both agents authenticate each other simultaneously
|
|
519
|
+
|
|
520
|
+
const { myResult, theirResult } = await serviceAgent.mutualAuth(
|
|
521
|
+
clientAgent.getDID(),
|
|
522
|
+
// What we require from them
|
|
523
|
+
[{ type: ZKProofType.TRUST_LEVEL, params: { minTrustLevel: 0.5 } }],
|
|
524
|
+
// What they require from us
|
|
525
|
+
[{ type: ZKProofType.CREDENTIAL, params: { credentialType: 'ServiceProvider' } }]
|
|
526
|
+
);
|
|
527
|
+
|
|
528
|
+
console.log('Both agents verified:', myResult.verified && theirResult.verified);
|
|
529
|
+
|
|
530
|
+
// === Behavior-Based Proofs (ATP Differentiator) ===
|
|
531
|
+
// Prove compliance history without revealing individual interactions
|
|
532
|
+
|
|
533
|
+
// Record interactions over time (in production, called by your business logic)
|
|
534
|
+
for (let i = 0; i < 100; i++) {
|
|
535
|
+
clientAgent.recordInteraction(`task-${i}`, 'success');
|
|
536
|
+
}
|
|
537
|
+
|
|
538
|
+
// Check current behavior stats
|
|
539
|
+
const stats = clientAgent.getBehaviorStats();
|
|
540
|
+
console.log(`Success: ${stats.successCount}, Violations: ${stats.violationCount}`);
|
|
541
|
+
|
|
542
|
+
// Prove "no violations" - service can verify without seeing interaction history
|
|
543
|
+
const noViolationsProof = await clientAgent.proveBehavior({
|
|
544
|
+
type: 'no_violations'
|
|
545
|
+
});
|
|
546
|
+
|
|
547
|
+
const isCompliant = await serviceAgent.verifyBehaviorProof(
|
|
548
|
+
noViolationsProof,
|
|
549
|
+
{ type: 'no_violations' }
|
|
550
|
+
);
|
|
551
|
+
console.log('Agent has clean record:', isCompliant);
|
|
552
|
+
|
|
553
|
+
// Prove success rate meets threshold
|
|
554
|
+
const successProof = await clientAgent.proveBehavior({
|
|
555
|
+
type: 'success_rate',
|
|
556
|
+
threshold: 95 // Proves >= 95% success without revealing exact rate
|
|
557
|
+
});
|
|
558
|
+
|
|
559
|
+
// Prove compliance with specific policy
|
|
560
|
+
const policyProof = await clientAgent.proveBehavior({
|
|
561
|
+
type: 'policy_compliance',
|
|
562
|
+
policyId: 'rate-limit-policy'
|
|
563
|
+
});
|
|
564
|
+
|
|
565
|
+
// === Using Low-Level ZKP Utilities ===
|
|
566
|
+
import {
|
|
567
|
+
createChallenge,
|
|
568
|
+
createTrustLevelProof,
|
|
569
|
+
verifyTrustLevelProof,
|
|
570
|
+
generateAuthResponse,
|
|
571
|
+
verifyAuthResponse
|
|
572
|
+
} from 'atp-sdk';
|
|
573
|
+
|
|
574
|
+
// Create a custom challenge
|
|
575
|
+
const customChallenge = createChallenge(
|
|
576
|
+
'did:atp:verifier',
|
|
577
|
+
'did:atp:prover',
|
|
578
|
+
[{ type: ZKProofType.TRUST_LEVEL, params: { minTrustLevel: 0.8 } }],
|
|
579
|
+
5 // expires in 5 minutes
|
|
580
|
+
);
|
|
581
|
+
|
|
582
|
+
// Generate proof manually
|
|
583
|
+
const trustProof = createTrustLevelProof(
|
|
584
|
+
0.85, // actual trust score
|
|
585
|
+
0.8, // threshold to prove
|
|
586
|
+
privateKey
|
|
587
|
+
);
|
|
588
|
+
|
|
589
|
+
// Verify proof
|
|
590
|
+
const isValid = verifyTrustLevelProof(trustProof, {
|
|
591
|
+
type: ZKProofType.TRUST_LEVEL,
|
|
592
|
+
params: { minTrustLevel: 0.8 }
|
|
593
|
+
});
|
|
594
|
+
```
|
|
595
|
+
|
|
440
596
|
### Payment Protocols (AP2 & ACP)
|
|
441
597
|
|
|
442
598
|
```javascript
|
|
@@ -838,9 +994,9 @@ This project is licensed under the MIT License - see the [LICENSE](LICENSE) file
|
|
|
838
994
|
## 📈 Roadmap
|
|
839
995
|
|
|
840
996
|
- [x] **v1.1.0** - Payment Protocols (AP2 & ACP) Integration
|
|
841
|
-
- [
|
|
842
|
-
- [ ] **v1.3.0** -
|
|
843
|
-
- [ ] **v1.4.0** -
|
|
997
|
+
- [x] **v1.2.0** - Zero-Knowledge Proof Authentication (Agent-to-Agent)
|
|
998
|
+
- [ ] **v1.3.0** - WebAssembly support for browser environments
|
|
999
|
+
- [ ] **v1.4.0** - GraphQL API support
|
|
844
1000
|
- [ ] **v2.0.0** - ATP Protocol v2 compatibility
|
|
845
1001
|
|
|
846
1002
|
## 🔗 Payment Protocol Partners
|
|
@@ -861,6 +1017,8 @@ The ATP SDK integrates with industry-leading payment platforms:
|
|
|
861
1017
|
|
|
862
1018
|
---
|
|
863
1019
|
|
|
864
|
-
**Agent Trust Protocol™** -
|
|
1020
|
+
**Agent Trust Protocol™** - The security layer for AI agents.
|
|
1021
|
+
|
|
1022
|
+
Built and maintained by [Sovr Labs](https://sovrlabs.com) | [Enterprise](https://sovrlabs.com/enterprise)
|
|
865
1023
|
|
|
866
|
-
©
|
|
1024
|
+
© 2025 Sovr Labs. Apache-2.0 License.
|
package/dist/index.cjs
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* @license MIT
|
|
10
10
|
*/
|
|
11
11
|
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;
|
|
12
|
+
exports.SDK_INFO = 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;
|
|
13
13
|
exports.createATPClient = createATPClient;
|
|
14
14
|
exports.createQuickConfig = createQuickConfig;
|
|
15
15
|
// Simplified Agent API (3-line quick start!)
|
|
@@ -53,6 +53,34 @@ Object.defineProperty(exports, "JWTUtils", { enumerable: true, get: function ()
|
|
|
53
53
|
var version_manager_js_1 = require("./utils/version-manager.js");
|
|
54
54
|
Object.defineProperty(exports, "VersionManager", { enumerable: true, get: function () { return version_manager_js_1.VersionManager; } });
|
|
55
55
|
Object.defineProperty(exports, "versionManager", { enumerable: true, get: function () { return version_manager_js_1.versionManager; } });
|
|
56
|
+
// ZKP Authentication Utilities (NEW - Agent-to-Agent Auth)
|
|
57
|
+
var zkp_js_1 = require("./utils/zkp.js");
|
|
58
|
+
// Core ZKP Functions
|
|
59
|
+
Object.defineProperty(exports, "generatePedersenCommitment", { enumerable: true, get: function () { return zkp_js_1.generatePedersenCommitment; } });
|
|
60
|
+
Object.defineProperty(exports, "generateRandomBlinding", { enumerable: true, get: function () { return zkp_js_1.generateRandomBlinding; } });
|
|
61
|
+
Object.defineProperty(exports, "generateNonce", { enumerable: true, get: function () { return zkp_js_1.generateNonce; } });
|
|
62
|
+
Object.defineProperty(exports, "generateChallengeHash", { enumerable: true, get: function () { return zkp_js_1.generateChallengeHash; } });
|
|
63
|
+
Object.defineProperty(exports, "createChallenge", { enumerable: true, get: function () { return zkp_js_1.createChallenge; } });
|
|
64
|
+
Object.defineProperty(exports, "isChallengeExpired", { enumerable: true, get: function () { return zkp_js_1.isChallengeExpired; } });
|
|
65
|
+
// Proof Generation
|
|
66
|
+
Object.defineProperty(exports, "createTrustLevelProof", { enumerable: true, get: function () { return zkp_js_1.createTrustLevelProof; } });
|
|
67
|
+
Object.defineProperty(exports, "createCredentialProof", { enumerable: true, get: function () { return zkp_js_1.createCredentialProof; } });
|
|
68
|
+
Object.defineProperty(exports, "createIdentityProof", { enumerable: true, get: function () { return zkp_js_1.createIdentityProof; } });
|
|
69
|
+
Object.defineProperty(exports, "createBehaviorCommitment", { enumerable: true, get: function () { return zkp_js_1.createBehaviorCommitment; } });
|
|
70
|
+
Object.defineProperty(exports, "createBehaviorProof", { enumerable: true, get: function () { return zkp_js_1.createBehaviorProof; } });
|
|
71
|
+
// Proof Verification
|
|
72
|
+
Object.defineProperty(exports, "verifyTrustLevelProof", { enumerable: true, get: function () { return zkp_js_1.verifyTrustLevelProof; } });
|
|
73
|
+
Object.defineProperty(exports, "verifyCredentialProof", { enumerable: true, get: function () { return zkp_js_1.verifyCredentialProof; } });
|
|
74
|
+
Object.defineProperty(exports, "verifyIdentityProof", { enumerable: true, get: function () { return zkp_js_1.verifyIdentityProof; } });
|
|
75
|
+
Object.defineProperty(exports, "verifyBehaviorProof", { enumerable: true, get: function () { return zkp_js_1.verifyBehaviorProof; } });
|
|
76
|
+
// Auth Flow
|
|
77
|
+
Object.defineProperty(exports, "generateAuthResponse", { enumerable: true, get: function () { return zkp_js_1.generateAuthResponse; } });
|
|
78
|
+
Object.defineProperty(exports, "verifyAuthResponse", { enumerable: true, get: function () { return zkp_js_1.verifyAuthResponse; } });
|
|
79
|
+
// Behavior Tracking
|
|
80
|
+
Object.defineProperty(exports, "BehaviorMerkleTree", { enumerable: true, get: function () { return zkp_js_1.BehaviorMerkleTree; } });
|
|
81
|
+
// ZKP Proof Type Enum (exported as value for use in comparisons)
|
|
82
|
+
var types_js_1 = require("./types.js");
|
|
83
|
+
Object.defineProperty(exports, "ZKProofType", { enumerable: true, get: function () { return types_js_1.ZKProofType; } });
|
|
56
84
|
// Version information
|
|
57
85
|
exports.VERSION = '1.0.0';
|
|
58
86
|
exports.PROTOCOL_VERSION = '1.0';
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAGH,OAAO,EAAE,KAAK,EAAE,KAAK,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AACnE,OAAO,EAAE,KAAK,IAAI,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAGrD,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAG5C,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;AAGtD,OAAO,EACL,QAAQ,EACR,gBAAgB,EAChB,mBAAmB,EACnB,UAAU,EACX,MAAM,sBAAsB,CAAC;AAE9B,OAAO,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAG3E,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAA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,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
|
@@ -28,6 +28,20 @@ export { CryptoUtils } from './utils/crypto.js';
|
|
|
28
28
|
export { DIDUtils } from './utils/did.js';
|
|
29
29
|
export { JWTUtils } from './utils/jwt.js';
|
|
30
30
|
export { VersionManager, versionManager } from './utils/version-manager.js';
|
|
31
|
+
// ZKP Authentication Utilities (NEW - Agent-to-Agent Auth)
|
|
32
|
+
export {
|
|
33
|
+
// Core ZKP Functions
|
|
34
|
+
generatePedersenCommitment, generateRandomBlinding, generateNonce, generateChallengeHash, createChallenge, isChallengeExpired,
|
|
35
|
+
// Proof Generation
|
|
36
|
+
createTrustLevelProof, createCredentialProof, createIdentityProof, createBehaviorCommitment, createBehaviorProof,
|
|
37
|
+
// Proof Verification
|
|
38
|
+
verifyTrustLevelProof, verifyCredentialProof, verifyIdentityProof, verifyBehaviorProof,
|
|
39
|
+
// Auth Flow
|
|
40
|
+
generateAuthResponse, verifyAuthResponse,
|
|
41
|
+
// Behavior Tracking
|
|
42
|
+
BehaviorMerkleTree } from './utils/zkp.js';
|
|
43
|
+
// ZKP Proof Type Enum (exported as value for use in comparisons)
|
|
44
|
+
export { ZKProofType } from './types.js';
|
|
31
45
|
// Version information
|
|
32
46
|
export const VERSION = '1.0.0';
|
|
33
47
|
export const PROTOCOL_VERSION = '1.0';
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;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,CAA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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;AAEH,OAAO,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AAGtC,OAAO,EAAgB,gBAAgB,EAAgC,MAAM,kBAAkB,CAAC;
|
|
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,aA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