@cheny56/node-client 1.0.1 → 1.0.3

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 +8 -8
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -22,7 +22,7 @@ npm install @cheny56/client
22
22
  ### Basic Setup
23
23
 
24
24
  ```javascript
25
- import { QuorumProvider, ECDSAWallet, PQCWallet, HybridWallet } from '@quorum/client';
25
+ import { QuorumProvider, ECDSAWallet, PQCWallet, HybridWallet } from '@cheny56/client';
26
26
 
27
27
  // Connect to Quorum node
28
28
  const provider = new QuorumProvider('http://localhost:8545');
@@ -38,7 +38,7 @@ const hybridWallet = new HybridWallet(ecdsaWallet, pqcWallet);
38
38
  #### ECDSA Transaction
39
39
 
40
40
  ```javascript
41
- import { LegacyTransaction } from '@quorum/client';
41
+ import { LegacyTransaction } from '@cheny56/client';
42
42
 
43
43
  const tx = new LegacyTransaction({
44
44
  to: '0x742d35Cc6634C0532925a3b844Bc9e7595f0bEb',
@@ -55,7 +55,7 @@ const receipt = await provider.waitForTransaction(txHash);
55
55
  #### PQC Transaction
56
56
 
57
57
  ```javascript
58
- import { PQCLegacyTransaction } from '@quorum/client';
58
+ import { PQCLegacyTransaction } from '@cheny56/client';
59
59
 
60
60
  // Get nonce first
61
61
  const nonce = await provider.getTransactionCount(pqcWallet.address, 'pending');
@@ -78,7 +78,7 @@ const receipt = await provider.waitForTransaction(txHash);
78
78
  #### Hybrid Transaction
79
79
 
80
80
  ```javascript
81
- import { HybridLegacyTransaction } from '@quorum/client';
81
+ import { HybridLegacyTransaction } from '@cheny56/client';
82
82
 
83
83
  const nonce = await provider.getTransactionCount(hybridWallet.address, 'pending');
84
84
 
@@ -102,7 +102,7 @@ const receipt = await provider.waitForTransaction(txHash);
102
102
  #### Using ECDSA
103
103
 
104
104
  ```javascript
105
- import { ERC20Token } from '@quorum/client';
105
+ import { ERC20Token } from '@cheny56/client';
106
106
 
107
107
  const token = new ERC20Token(tokenAddress, provider, ecdsaWallet);
108
108
  const tx = await token.transfer(recipientAddress, ethers.utils.parseEther('100'));
@@ -112,7 +112,7 @@ await tx.wait();
112
112
  #### Using PQC
113
113
 
114
114
  ```javascript
115
- import { ERC20Token } from '@quorum/client';
115
+ import { ERC20Token } from '@cheny56/client';
116
116
 
117
117
  const token = new ERC20Token(tokenAddress, provider);
118
118
  const txHash = await token.transferPQC(
@@ -128,7 +128,7 @@ const receipt = await provider.waitForTransaction(txHash);
128
128
  #### Using Hybrid
129
129
 
130
130
  ```javascript
131
- import { ERC20Token } from '@quorum/client';
131
+ import { ERC20Token } from '@cheny56/client';
132
132
 
133
133
  const token = new ERC20Token(tokenAddress, provider);
134
134
  const txHash = await token.transferHybrid(
@@ -144,7 +144,7 @@ const receipt = await provider.waitForTransaction(txHash);
144
144
  ### Zero-Knowledge Proof Transactions
145
145
 
146
146
  ```javascript
147
- import { ZKTransaction, ZK_PROOF_SYSTEM } from '@quorum/client';
147
+ import { ZKTransaction, ZK_PROOF_SYSTEM } from '@cheny56/client';
148
148
 
149
149
  const zkTx = new ZKTransaction({
150
150
  to: contractAddress,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cheny56/node-client",
3
- "version": "1.0.1",
3
+ "version": "1.0.3",
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
  "type": "module",
@@ -22,7 +22,7 @@
22
22
  "license": "LGPL-3.0",
23
23
  "dependencies": {
24
24
  "ethers": "^5.7.2",
25
- "@noble/post-quantum": "^1.0.0"
25
+ "@noble/post-quantum": "^0.5.4"
26
26
  },
27
27
  "peerDependencies": {},
28
28
  "devDependencies": {},