@digitaldefiance/node-ecies-lib 4.16.0 → 4.16.2
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
|
@@ -8,7 +8,7 @@ A Node.js-specific implementation of the Digital Defiance ECIES (Elliptic Curve
|
|
|
8
8
|
|
|
9
9
|
Part of [Express Suite](https://github.com/Digital-Defiance/express-suite)
|
|
10
10
|
|
|
11
|
-
> Current Version: v4.
|
|
11
|
+
> Current Version: v4.16.0
|
|
12
12
|
|
|
13
13
|
This library implements a modern, enterprise-grade ECIES protocol (v4.0) featuring HKDF key derivation, AAD binding, and optimized multi-recipient encryption. It includes a pluggable ID provider system, memory-efficient streaming encryption, and comprehensive internationalization.
|
|
14
14
|
|
|
@@ -671,6 +671,8 @@ describe('Integration with suite-core-lib', () => {
|
|
|
671
671
|
|
|
672
672
|
## ChangeLog
|
|
673
673
|
|
|
674
|
+
### v4.16.0 - Voting key derivation now uses X&Y coordinates for improved security
|
|
675
|
+
|
|
674
676
|
### v4.13.0 - API Naming Improvements & Configuration Enhancements
|
|
675
677
|
|
|
676
678
|
**Breaking Changes:**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@digitaldefiance/node-ecies-lib",
|
|
3
|
-
"version": "4.16.
|
|
3
|
+
"version": "4.16.2",
|
|
4
4
|
"description": "Digital Defiance Node ECIES Library",
|
|
5
5
|
"homepage": "https://github.com/Digital-Defiance/node-ecies-lib",
|
|
6
6
|
"repository": {
|
|
@@ -59,9 +59,9 @@
|
|
|
59
59
|
"license": "MIT",
|
|
60
60
|
"packageManager": "yarn@4.10.3",
|
|
61
61
|
"dependencies": {
|
|
62
|
-
"@digitaldefiance/ecies-lib": "4.16.
|
|
62
|
+
"@digitaldefiance/ecies-lib": "4.16.2",
|
|
63
63
|
"@digitaldefiance/express-suite-test-utils": "1.0.14",
|
|
64
|
-
"@digitaldefiance/i18n-lib": "4.
|
|
64
|
+
"@digitaldefiance/i18n-lib": "4.1.1",
|
|
65
65
|
"@ethereumjs/wallet": "^2.0.4",
|
|
66
66
|
"@noble/curves": "^1.4.2",
|
|
67
67
|
"@noble/hashes": "^1.4.0",
|
|
@@ -1,8 +1,14 @@
|
|
|
1
|
-
import { ComponentConfig, EngineConfig, I18nEngine } from '@digitaldefiance/i18n-lib';
|
|
1
|
+
import { ComponentConfig, EngineConfig, I18nEngine, type BrandedMasterStringsCollection, type CoreLanguageCode } from '@digitaldefiance/i18n-lib';
|
|
2
|
+
import { NodeEciesStringKey } from './node-keys';
|
|
2
3
|
import type { NodeEciesStringKeyValue } from './node-keys';
|
|
3
4
|
export declare function getNodeEciesI18nEngine(config?: EngineConfig): I18nEngine;
|
|
4
5
|
export declare function resetNodeEciesI18nEngine(): void;
|
|
5
6
|
export declare function createNodeEciesComponentConfig(): ComponentConfig;
|
|
7
|
+
/**
|
|
8
|
+
* Master strings collection for the Node ECIES component.
|
|
9
|
+
* Uses BrandedMasterStringsCollection for type-safe branded enum support.
|
|
10
|
+
*/
|
|
11
|
+
export declare const NodeEciesComponentStrings: BrandedMasterStringsCollection<typeof NodeEciesStringKey, CoreLanguageCode>;
|
|
6
12
|
/**
|
|
7
13
|
* Helper to translate Node ECIES strings
|
|
8
14
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"node-ecies-i18n-setup.d.ts","sourceRoot":"","sources":["../../../../../packages/digitaldefiance-node-ecies-lib/src/i18n/node-ecies-i18n-setup.ts"],"names":[],"mappings":"AAMA,OAAO,EACL,eAAe,EACf,YAAY,EACZ,UAAU,
|
|
1
|
+
{"version":3,"file":"node-ecies-i18n-setup.d.ts","sourceRoot":"","sources":["../../../../../packages/digitaldefiance-node-ecies-lib/src/i18n/node-ecies-i18n-setup.ts"],"names":[],"mappings":"AAMA,OAAO,EACL,eAAe,EACf,YAAY,EACZ,UAAU,EAEV,KAAK,8BAA8B,EACnC,KAAK,gBAAgB,EACtB,MAAM,2BAA2B,CAAC;AAEnC,OAAO,EAAwB,kBAAkB,EAAE,MAAM,aAAa,CAAC;AACvE,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,aAAa,CAAC;AAiB3D,wBAAgB,sBAAsB,CAAC,MAAM,CAAC,EAAE,YAAY,GAAG,UAAU,CAYxE;AAED,wBAAgB,wBAAwB,IAAI,IAAI,CAG/C;AAED,wBAAgB,8BAA8B,IAAI,eAAe,CAMhE;AAED;;;GAGG;AACH,eAAO,MAAM,yBAAyB,EAAE,8BAA8B,CACpE,OAAO,kBAAkB,EACzB,gBAAgB,CAUjB,CAAC;AAEF;;GAEG;AACH,wBAAgB,uBAAuB,CACrC,SAAS,EAAE,uBAAuB,EAClC,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,EAC3C,QAAQ,CAAC,EAAE,MAAM,GAChB,MAAM,CAOR"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.NodeEciesComponentStrings = void 0;
|
|
3
4
|
exports.getNodeEciesI18nEngine = getNodeEciesI18nEngine;
|
|
4
5
|
exports.resetNodeEciesI18nEngine = resetNodeEciesI18nEngine;
|
|
5
6
|
exports.createNodeEciesComponentConfig = createNodeEciesComponentConfig;
|
|
@@ -35,22 +36,24 @@ function resetNodeEciesI18nEngine() {
|
|
|
35
36
|
function createNodeEciesComponentConfig() {
|
|
36
37
|
return {
|
|
37
38
|
id: node_keys_1.NodeEciesComponentId,
|
|
38
|
-
strings:
|
|
39
|
+
strings: exports.NodeEciesComponentStrings,
|
|
39
40
|
aliases: ['NodeEciesStringKey'],
|
|
40
41
|
};
|
|
41
42
|
}
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
43
|
+
/**
|
|
44
|
+
* Master strings collection for the Node ECIES component.
|
|
45
|
+
* Uses BrandedMasterStringsCollection for type-safe branded enum support.
|
|
46
|
+
*/
|
|
47
|
+
exports.NodeEciesComponentStrings = {
|
|
48
|
+
[i18n_lib_1.LanguageCodes.EN_US]: translations_1.englishTranslations,
|
|
49
|
+
[i18n_lib_1.LanguageCodes.EN_GB]: translations_1.britishEnglishTranslations,
|
|
50
|
+
[i18n_lib_1.LanguageCodes.FR]: translations_1.frenchTranslations,
|
|
51
|
+
[i18n_lib_1.LanguageCodes.ES]: translations_1.spanishTranslations,
|
|
52
|
+
[i18n_lib_1.LanguageCodes.DE]: translations_1.germanTranslations,
|
|
53
|
+
[i18n_lib_1.LanguageCodes.ZH_CN]: translations_1.mandarinTranslations,
|
|
54
|
+
[i18n_lib_1.LanguageCodes.JA]: translations_1.japaneseTranslations,
|
|
55
|
+
[i18n_lib_1.LanguageCodes.UK]: translations_1.ukrainianTranslations,
|
|
56
|
+
};
|
|
54
57
|
/**
|
|
55
58
|
* Helper to translate Node ECIES strings
|
|
56
59
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"node-ecies-i18n-setup.js","sourceRoot":"","sources":["../../../../../packages/digitaldefiance-node-ecies-lib/src/i18n/node-ecies-i18n-setup.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"node-ecies-i18n-setup.js","sourceRoot":"","sources":["../../../../../packages/digitaldefiance-node-ecies-lib/src/i18n/node-ecies-i18n-setup.ts"],"names":[],"mappings":";;;AAiCA,wDAYC;AAED,4DAGC;AAED,wEAMC;AAuBD,0DAWC;AA5FD;;;;GAIG;AACH,0DAAgE;AAChE,wDAOmC;AAEnC,2CAAuE;AAEvE,iDASwB;AAExB,mEAAmE;AACnE,6DAA6D;AAC7D,IAAI,oBAAoB,GAAsB,IAAI,CAAC;AACnD,IAAI,oBAAoB,GAAG,KAAK,CAAC;AAEjC,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