@terminal3/t3n-sdk 4.35.0 → 4.35.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
@@ -44,8 +44,9 @@ const address = eth_get_address(privateKey);
44
44
 
45
45
  const client = new T3nClient({
46
46
  baseUrl: "https://t3n-node.example.com",
47
- // For a purely local dev node, use `{ unsafe_trust_server: true }` instead — it disables attestation verification.
48
- trustAnchor: await fetchTrustedManifest("testnet", { baseUrl: "https://t3n-node.example.com" }),
47
+ // `trustAnchor` is required. `fetchTrustedManifest` returns an operator-signed anchor,
48
+ // verified against a public key pinned in this package — it never returns an unverified one.
49
+ trustAnchor: await fetchTrustedManifest("sandbox", { baseUrl: "https://t3n-node.example.com" }),
49
50
  wasmComponent,
50
51
  handlers: {
51
52
  EthSign: metamask_sign(address, undefined, privateKey),
@@ -75,8 +76,7 @@ const privateKey = "0x...";
75
76
  const address = eth_get_address(privateKey);
76
77
 
77
78
  const client = new T3nClient({
78
- // For a purely local dev node, use `{ unsafe_trust_server: true }` instead — it disables attestation verification.
79
- trustAnchor: await fetchTrustedManifest("testnet"),
79
+ trustAnchor: await fetchTrustedManifest("sandbox"),
80
80
  wasmComponent: await loadWasmComponent(),
81
81
  handlers: {
82
82
  EthSign: metamask_sign(address, undefined, privateKey),