@private.me/xbind 1.2.15 → 1.2.17

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/README.md CHANGED
@@ -1,7 +1,7 @@
1
1
  # @private.me/xbind
2
2
 
3
3
  ![npm version](https://img.shields.io/npm/v/@private.me/xbind)
4
- ![version](https://img.shields.io/badge/version-1.2.15-blue)
4
+ ![version](https://img.shields.io/badge/version-1.2.17-blue)
5
5
  ![tests](https://img.shields.io/badge/tests-1245%20passing-brightgreen)
6
6
  ![TypeScript](https://img.shields.io/badge/TypeScript-strict-blue)
7
7
  ![license](https://img.shields.io/badge/license-Proprietary-blue)
@@ -12,7 +12,7 @@ Build AI agents that communicate securely using ML-DSA-65 DID identity, ML-KEM-7
12
12
 
13
13
  Part of the **Private.Me** platform—where APIs have keys, but ACIs have identity.
14
14
 
15
- **Version 1.1.7** — **Dependency hardening:** Vendored mldsa-wasm@0.0.4 (eliminates external dependency risk). Previous v1.1.6: CRITICAL SECURITY FIX removed deriveSharedKey() vulnerability. PLAN-3 architecture with post-quantum cryptography (ML-KEM-768, ML-DSA-65), Python SDK, and Full Control protection.
15
+ **Version 1.2.17** — **Documentation:** Generic pricing language per Gold Package Requirement #18 (removed specific operation counts). Previous v1.2.16: AWS/gRPC/HTTP Error Mappings - All 49 error codes now include protocol-specific mappings (aws, grpc, http fields) for cross-platform error translation.
16
16
 
17
17
  ## Install
18
18
 
@@ -126,22 +126,38 @@ See [Configuration Guide](./docs/configuration.md) for complete setup instructio
126
126
 
127
127
  ## Pricing
128
128
 
129
- **3-month free trial** — No credit card required.
129
+ **Free tier available** — No credit card required.
130
130
 
131
- **Tiers:** Free, Pro, and Enterprise plans available. Free tier includes generous limits. Pro tier provides usage-based billing. Enterprise tier offers volume discounts and dedicated support.
132
-
133
- See [pricing details](../../docs/pricing-reference.md) for current rates and complete tier comparison.
131
+ See [pricing details](../../docs/pricing-reference.md) for current rates and tier comparison.
134
132
 
135
133
  [Subscribe now](https://private.me/subscribe?product=xbind)
136
134
 
137
135
  ## Quick Start
138
136
 
139
- **15 seconds to setup:**
137
+ **Complete setup in under 2 minutes:**
138
+
139
+ ### Step 1: Email Verification (Required)
140
+
141
+ **ALL API calls are blocked until you verify your email address.** This links your usage to a verified contact for security notifications and billing.
142
+
143
+ ```bash
144
+ npx xbind setup
145
+ ```
146
+
147
+ **What happens:**
148
+ 1. Enter your email address
149
+ 2. Receive 6-digit verification code (check spam folder)
150
+ 3. Enter code to activate account
151
+ 4. DeploymentID generated (persistent economic identity)
152
+
153
+ **Note:** Disposable email services (Mailinator, Guerrilla Mail, etc.) are blocked. Use a real email address.
154
+
155
+ ### Step 2: Create Agent & Send Messages
140
156
 
141
157
  ```typescript
142
158
  import { Agent } from '@private.me/xbind';
143
159
 
144
- // Create agent (auto-generates identity)
160
+ // Create agent (auto-generates cryptographic identity)
145
161
  const agent = await Agent.lazy({ name: 'my-service' });
146
162
 
147
163
  // Send authenticated message
@@ -160,6 +176,16 @@ console.log('Message sent with cryptographic identity');
160
176
  console.log('Agent DID:', agent.did);
161
177
  ```
162
178
 
179
+ ### Step 3: Understand Your Free Tier
180
+
181
+ - **100,000 operations/month** (free tier)
182
+ - **120,000 hard cap** (20% grace buffer)
183
+ - **Monthly reset:** 1st of each month at 00:00 UTC
184
+ - **Milestone emails:** Sent at 50%, 80%, 100%, 120% usage
185
+
186
+ **At 100K operations:** Email verification enforced (if not already verified)
187
+ **At 120K operations:** Hard cap reached. Upgrade to Pro for unlimited operations.
188
+
163
189
  **Prerequisites:** The `FULL_CONTROL_MASTER_KEY` environment variable is required for Share 2 operations in production but optional for basic testing. See [Environment Variables](#environment-variables) for setup.
164
190
 
165
191
  **JITR (Just-in-Time Registration):** Agents created with `Agent.fromSeed()` automatically register with the trust registry on first use. No manual registration scripts required. Includes all encryption keys (Ed25519, X25519, ML-KEM, ML-DSA) for zero-config encrypted messaging.
@@ -205,6 +231,96 @@ Zero key management, zero cascade failures, zero bearer credentials. Cryptograph
205
231
 
206
232
  **Zero-config JITR:** Just-in-Time Registration auto-registers agents with trust registry on first use (AWS IoT JITR, OAuth DCR, MCP 2025 standards). Post-quantum cryptography (ML-KEM-768, ML-DSA-65), bilateral authorization, XorIDA split-channel delivery, Python SDK, Full Control IP protection, zero rotation, type safety with `Result<T, E>`, PLAN-3 hybrid signatures, 96 error codes.
207
233
 
234
+ ## Automatic XorIDA Split-Channel Protection
235
+
236
+ xBind automatically activates information-theoretic XorIDA threshold sharing for high-risk operations. No code changes required—security is transparent.
237
+
238
+ ### Risk Tags (Recommended for Crypto)
239
+
240
+ For cryptocurrency transactions (BTC, ETH, etc.), use explicit risk tags in your payload:
241
+
242
+ ```typescript
243
+ // Low risk: 2-of-2 threshold
244
+ await agent.send({
245
+ to: recipientDid,
246
+ payload: { amount: 0.5, currency: 'BTC', risk: 'low' }
247
+ });
248
+
249
+ // Medium risk: 2-of-3 threshold
250
+ await agent.send({
251
+ to: recipientDid,
252
+ payload: { amount: 5.0, currency: 'ETH', risk: 'medium' }
253
+ });
254
+
255
+ // High risk: 3-of-5 threshold
256
+ await agent.send({
257
+ to: recipientDid,
258
+ payload: { amount: 50, currency: 'BTC', risk: 'high' }
259
+ });
260
+
261
+ // Critical risk: 3-of-5 threshold
262
+ await agent.send({
263
+ to: recipientDid,
264
+ payload: { amount: 100, currency: 'BTC', risk: 'critical' }
265
+ });
266
+ ```
267
+
268
+ ### Fiat Currency Auto-Detection
269
+
270
+ For fiat currencies (USD, EUR, GBP), xBind uses numeric thresholds:
271
+
272
+ ```typescript
273
+ // Automatically triggers 2-of-3 (amount >= $100,000)
274
+ await agent.send({
275
+ to: recipientDid,
276
+ payload: { amount: 500000, currency: 'USD', action: 'transfer' }
277
+ });
278
+
279
+ // Automatically triggers 3-of-5 (amount >= $1,000,000)
280
+ await agent.send({
281
+ to: recipientDid,
282
+ payload: { amount: 2500000, currency: 'USD', action: 'transfer' }
283
+ });
284
+ ```
285
+
286
+ ### Manual Security Override
287
+
288
+ Override automatic detection with explicit security levels:
289
+
290
+ ```typescript
291
+ // Force 2-of-3 regardless of amount/risk
292
+ await agent.send({
293
+ to: recipientDid,
294
+ payload: data,
295
+ security: 'high'
296
+ });
297
+
298
+ // Force 3-of-5 for maximum security
299
+ await agent.send({
300
+ to: recipientDid,
301
+ payload: data,
302
+ security: 'critical'
303
+ });
304
+
305
+ // Disable XorIDA (standard encrypted transport)
306
+ await agent.send({
307
+ to: recipientDid,
308
+ payload: data,
309
+ security: 'standard'
310
+ });
311
+ ```
312
+
313
+ ### Threshold Schemes
314
+
315
+ | Risk Tag / Threshold | Shares | Required | Security Level |
316
+ |---------------------|--------|----------|----------------|
317
+ | `low` | 2 | 2 | 2-of-2 threshold |
318
+ | `medium` / $100k-$1M | 3 | 2 | 2-of-3 threshold |
319
+ | `high` / `critical` / >$1M | 5 | 3 | 3-of-5 threshold |
320
+ | No tag / <$100k | — | — | Standard encrypted transport |
321
+
322
+ **Key Insight:** XorIDA is information-theoretically secure. Any K-1 shares reveal zero information about the secret, even with unlimited computing power. Quantum computers cannot break XorIDA.
323
+
208
324
  ## Billing & Metering
209
325
 
210
326
  xBind includes usage-based billing with automated milestone notifications: