@terminal3/t3n-sdk 0.4.1 → 0.5.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/README.md +2 -2
- package/dist/index.d.ts +1 -2
- package/dist/index.esm.js +1 -1
- package/dist/index.js +1 -1
- package/dist/src/wasm/interface.d.ts +1 -2
- package/dist/wasm/generated/interfaces/component-session-cookie.d.ts +8 -0
- package/dist/wasm/generated/interfaces/component-session-session.d.ts +1 -2
- package/dist/wasm/generated/interfaces/wasi-cli-environment.d.ts +1 -1
- package/dist/wasm/generated/interfaces/wasi-cli-exit.d.ts +1 -1
- package/dist/wasm/generated/interfaces/wasi-cli-stderr.d.ts +1 -1
- package/dist/wasm/generated/interfaces/wasi-io-error.d.ts +2 -1
- package/dist/wasm/generated/interfaces/wasi-io-streams.d.ts +1 -11
- package/dist/wasm/generated/interfaces/wasi-random-random.d.ts +2 -0
- package/dist/wasm/generated/session.core.wasm +0 -0
- package/dist/wasm/generated/session.d.ts +7 -10
- package/dist/wasm/generated/session.js +239 -1674
- package/package.json +1 -1
- package/dist/wasm/generated/interfaces/wasi-cli-stdin.d.ts +0 -3
- package/dist/wasm/generated/interfaces/wasi-cli-stdout.d.ts +0 -3
- package/dist/wasm/generated/interfaces/wasi-clocks-wall-clock.d.ts +0 -5
- package/dist/wasm/generated/interfaces/wasi-filesystem-preopens.d.ts +0 -3
- package/dist/wasm/generated/interfaces/wasi-filesystem-types.d.ts +0 -124
- package/dist/wasm/generated/session.core2.wasm +0 -0
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
|
|
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
|
|
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,
|
|
81
|
+
encrypt(session: Uint8Array, plaintext: Uint8Array): Promise<Uint8Array>;
|
|
83
82
|
/**
|
|
84
83
|
* Decrypt ciphertext using session
|
|
85
84
|
* @param session - Session state (opaque bytes)
|