@cheny56/node-client 1.0.14 → 1.0.15

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/package.json +1 -1
  2. package/src/wallet.js +2 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cheny56/node-client",
3
- "version": "1.0.14",
3
+ "version": "1.0.15",
4
4
  "description": "Client library for Quorum blockchain with Post-Quantum Cryptography (PQC) and Zero-Knowledge Proof (ZK) support",
5
5
  "main": "./src/index.js",
6
6
  "types": "src/index.d.ts",
package/src/wallet.js CHANGED
@@ -104,8 +104,9 @@ class PQCWallet {
104
104
  throw new Error('dilithium-crystals does not expose keyPair method. Please check the package API.');
105
105
  }
106
106
 
107
+ // dilithium.keyPair() is async and returns { publicKey, privateKey }
107
108
  const keyPair = await dilithium.keyPair();
108
- this.secretKey = keyPair.secretKey;
109
+ this.secretKey = keyPair.privateKey; // dilithium-crystals uses 'privateKey', not 'secretKey'
109
110
  this.publicKey = keyPair.publicKey;
110
111
  this.address = derivePQCAddress(this.publicKey);
111
112
  this._initialized = true;