@digitaldefiance/node-ecies-lib 1.3.20 → 1.3.27

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 -0
  2. package/package.json +3 -3
package/README.md CHANGED
@@ -75,6 +75,7 @@ The main service class providing encryption, decryption, key management, and mne
75
75
  - Integrates with plugin-based i18n for error messages and logs.
76
76
 
77
77
  Detailed API:
78
+
78
79
  - `constructor(engine?: PluginI18nEngine)`: Initializes the service; if no engine is provided, an internal plugin-based i18n engine is used.
79
80
  - `generateNewMnemonic(): SecureString`: Generates a new mnemonic phrase compliant with BIP39 for secure key generation.
80
81
  - `walletAndSeedFromMnemonic(mnemonic: SecureString): { wallet: Wallet; seed: Buffer }`: Derives an Ethereum wallet instance and raw seed buffer from a mnemonic.
@@ -97,6 +98,7 @@ Represents a cryptographic member with capabilities to:
97
98
  - Create new members from mnemonics or generate new ones.
98
99
 
99
100
  Core methods and behaviors:
101
+
100
102
  - `new Member(...)`: Constructs with injected `ECIESService`, type, name, email, public key, and optional private key, wallet, IDs, and timestamps.
101
103
  - `loadWallet(mnemonic: SecureString)`: Loads wallet and private key from mnemonic; verifies public key integrity.
102
104
  - `loadPrivateKey(privateKey: SecureBuffer)`: Imports a raw private key into the member instance.
@@ -124,6 +126,7 @@ Provides password-based key derivation with multiple predefined profiles optimiz
124
126
  | TEST_FAST | 16 bytes | 500 | SHA-256 | 32 bytes | Testing/development |
125
127
 
126
128
  Detailed API:
129
+
127
130
  - `deriveKeyFromPassword(password: Buffer, salt: Buffer, iterations: number, saltBytes: number, hashBytes: number, algorithm: string): ChecksumBuffer`: Synchronously derives a key using PBKDF2 with specified parameters.
128
131
  - `deriveKeyFromPasswordAsync(password: Buffer, salt: Buffer, iterations: number, saltBytes: number, hashBytes: number, algorithm: string): Promise<ChecksumBuffer>`: Async implementation of PBKDF2 for non-blocking operation.
129
132
  - `deriveKeyFromPasswordWithProfile(password: Buffer, profile: Pbkdf2ProfileEnum): ChecksumBuffer`: Convenience method to derive a key using a predefined profile.
@@ -265,6 +268,11 @@ Please read the contributing guidelines in the main repository.
265
268
 
266
269
  ## ChangeLog
267
270
 
271
+ ### Version 1.3.27
272
+
273
+ - Upgrade i18n/ecies
274
+ - Version bump
275
+
268
276
  ### Version 1.3.20
269
277
 
270
278
  - Version bump
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digitaldefiance/node-ecies-lib",
3
- "version": "1.3.20",
3
+ "version": "1.3.27",
4
4
  "description": "Digital Defiance Node ECIES Library",
5
5
  "main": "src/index.js",
6
6
  "types": "src/index.d.ts",
@@ -31,8 +31,8 @@
31
31
  "license": "MIT",
32
32
  "packageManager": "yarn@4.10.3",
33
33
  "dependencies": {
34
- "@digitaldefiance/ecies-lib": "1.3.20",
35
- "@digitaldefiance/i18n-lib": "1.3.20",
34
+ "@digitaldefiance/ecies-lib": "1.3.27",
35
+ "@digitaldefiance/i18n-lib": "1.3.27",
36
36
  "@ethereumjs/wallet": "^10.0.0",
37
37
  "@noble/curves": "^2.0.1",
38
38
  "@noble/hashes": "^2.0.1",