@rohan-protocol/sdk 0.8.0 → 0.8.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.
Files changed (2) hide show
  1. package/README.md +15 -5
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # @rohan-protocol/sdk (v0.8.0)
1
+ # @rohan-protocol/sdk — Enterprise Node.js SDK (v0.8.1)
2
2
 
3
3
  Zero-Docker TypeScript client library for confidential state transitions, cryptographic commitments, and on-chain state inspection on the Midnight Blockchain.
4
4
 
@@ -22,6 +22,14 @@ npm install @rohan-protocol/sdk
22
22
  * **In-Memory Audit Engine (`verifyCommitment`):** Verifies the canonical SHA-256 digest of a confidential payload; use the inner payload digest, not the timestamp-salted on-chain `intentHash`.
23
23
  * **Memory Sanitation (`MemorySanitizer`):** Zeroizes sensitive witness buffers after cryptographic operations.
24
24
 
25
+ ### Runtime Support
26
+
27
+ The SDK is an Enterprise Node.js SDK. Node.js 22 is the current supported and
28
+ CI-tested runtime. Browser use is not supported: SDK modules also depend on
29
+ `node:crypto` and `Buffer`, even though the Ed25519 signer uses WebCrypto.
30
+ Isomorphic browser support is a separate R&D goal for RFC-006, Midnight Grants
31
+ Milestone 1; it is not part of this package's current support contract.
32
+
25
33
  ---
26
34
 
27
35
  ## 💻 API Reference & Code Examples
@@ -110,10 +118,12 @@ signer.destroy();
110
118
  keyPair.privateKey.fill(0);
111
119
  ```
112
120
 
113
- `InMemoryEd25519Signer.destroy()` wipes its retained raw private-key copy on a
114
- best-effort basis. JavaScript runtimes and WebCrypto do not guarantee erasure
115
- of imported key material or other memory copies. Persist and manage identity
116
- keys with an appropriate secure keystore in production.
121
+ `InMemoryEd25519Signer.destroy()` wipes its retained raw private-key byte array
122
+ and prevents subsequent signing. It is best-effort cleanup, not cryptographic
123
+ erasure: a `CryptoKey` already imported by WebCrypto, runtime copies, and copies
124
+ held by the caller or garbage collector cannot be reliably wiped by JavaScript.
125
+ Drop references to the signer and caller-owned key arrays when finished. Persist
126
+ and manage identity keys with an appropriate secure keystore in production.
117
127
 
118
128
  ---
119
129
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@rohan-protocol/sdk",
3
- "version": "0.8.0",
4
- "description": "Zero-Knowledge Agent Handshake SDK for Midnight Blockchain",
3
+ "version": "0.8.1",
4
+ "description": "Enterprise Node.js SDK for zero-knowledge agent handshakes on Midnight Blockchain",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
7
7
  "types": "./dist/index.d.ts",