@terminal3/t3n-sdk 0.4.1 → 0.5.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/README.md CHANGED
@@ -425,7 +425,7 @@ With `--provider`, the demo runs a **user update** (create/update profile) by de
425
425
 
426
426
  3. **OID4VP present only** – When you pass **`--oid4vp-only --did <did>`**, the demo skips user update and sends only the OID4VP present request for the given DID.
427
427
 
428
- Payloads are configurable via **defaults** or **JSON files** (`--user-update-json`, `--oid4vp-json`). The request body is signed with EIP-191 using the provider’s EOA key. The key must match the TEE’s provider config (see `tests/integration/provider_configs/provider_configs.json`: `auth_method.public_key` for the provider). By default the demo uses the test key (`0x01`×32); override with `--provider-signing-key` or `PROVIDER_SIGNING_KEY` for other environments.
428
+ Payloads are configurable via **defaults** or **JSON files** (`--user-update-json`, `--oid4vp-json`). The request body is signed with EIP-191 using the provider’s EOA key. The key must match `auth_method.public_key` for the provider in the TEE's provider config. By default the demo uses the test key (`0x01`×32); override with `--provider-signing-key` or `PROVIDER_SIGNING_KEY` for other environments.
429
429
 
430
430
  ```bash
431
431
  # User update only (default)
@@ -472,7 +472,7 @@ The demo supports the following command-line arguments:
472
472
 
473
473
  - `--wait-tx`: After step 1 (user update), wait for transaction confirmation before step 2. Can also set env `WAIT_FOR_TX=true`. (Tx wait is not implemented; flag is accepted for future use.)
474
474
 
475
- - `--provider-signing-key`: EOA private key (32-byte hex, e.g. `0x01...01`) for signing provider webhooks. Must match the TEE’s provider config `auth_method.public_key` for the provider. Default is the test key used in integration (see `tests/integration/provider_configs/provider_configs.json`). Can also set env `PROVIDER_SIGNING_KEY`.
475
+ - `--provider-signing-key`: EOA private key (32-byte hex, e.g. `0x01...01`) for signing provider webhooks. Must match the TEE’s provider config `auth_method.public_key` for the provider. Default is the test key used in integration. Can also set env `PROVIDER_SIGNING_KEY`.
476
476
 
477
477
  - `--script-version`: Optional override for contract script version used by session-based actions (`--upsert`, `--get-profile`, `--agent-auth`). If omitted, the demo resolves the latest version dynamically from `/api/contracts/current` for `tee:user/contracts`.
478
478
 
package/dist/index.d.ts CHANGED
@@ -75,11 +75,10 @@ interface SessionCrypto {
75
75
  /**
76
76
  * Encrypt plaintext using session
77
77
  * @param session - Session state (opaque bytes)
78
- * @param nonce - Nonce to use for encryption
79
78
  * @param plaintext - Data to encrypt
80
79
  * @returns Promise with encrypted bytes
81
80
  */
82
- encrypt(session: Uint8Array, nonce: Uint8Array, plaintext: Uint8Array): Promise<Uint8Array>;
81
+ encrypt(session: Uint8Array, plaintext: Uint8Array): Promise<Uint8Array>;
83
82
  /**
84
83
  * Decrypt ciphertext using session
85
84
  * @param session - Session state (opaque bytes)