@digitaldefiance/node-ecies-lib 1.1.22 → 1.1.24

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 (212) hide show
  1. package/README.md +8 -0
  2. package/package.json +6 -5
  3. package/src/constants.d.ts +32 -0
  4. package/src/constants.d.ts.map +1 -0
  5. package/src/constants.js +137 -0
  6. package/src/constants.js.map +1 -0
  7. package/src/enumerations/index.d.ts +2 -0
  8. package/src/enumerations/index.d.ts.map +1 -0
  9. package/src/enumerations/index.js +5 -0
  10. package/src/enumerations/index.js.map +1 -0
  11. package/src/enumerations/pbkdf2-profile.d.ts +9 -0
  12. package/src/enumerations/pbkdf2-profile.d.ts.map +1 -0
  13. package/src/enumerations/pbkdf2-profile.js +13 -0
  14. package/src/enumerations/pbkdf2-profile.js.map +1 -0
  15. package/src/i18n/ecies-i18n-factory.d.ts +54 -0
  16. package/src/i18n/ecies-i18n-factory.d.ts.map +1 -0
  17. package/src/i18n/ecies-i18n-factory.js +333 -0
  18. package/src/i18n/ecies-i18n-factory.js.map +1 -0
  19. package/src/i18n/{index.ts → index.d.ts} +1 -0
  20. package/src/i18n/index.d.ts.map +1 -0
  21. package/src/i18n/index.js +5 -0
  22. package/src/i18n/index.js.map +1 -0
  23. package/src/{index.ts → index.d.ts} +1 -0
  24. package/src/index.d.ts.map +1 -0
  25. package/src/index.js +11 -0
  26. package/src/index.js.map +1 -0
  27. package/src/interfaces/authenticated-cipher.d.ts +10 -0
  28. package/src/interfaces/authenticated-cipher.d.ts.map +1 -0
  29. package/src/interfaces/authenticated-cipher.js +3 -0
  30. package/src/interfaces/authenticated-cipher.js.map +1 -0
  31. package/src/interfaces/authenticated-decipher.d.ts +9 -0
  32. package/src/interfaces/authenticated-decipher.d.ts.map +1 -0
  33. package/src/interfaces/authenticated-decipher.js +3 -0
  34. package/src/interfaces/authenticated-decipher.js.map +1 -0
  35. package/src/interfaces/checksum-config.d.ts +5 -0
  36. package/src/interfaces/checksum-config.d.ts.map +1 -0
  37. package/src/interfaces/checksum-config.js +3 -0
  38. package/src/interfaces/checksum-config.js.map +1 -0
  39. package/src/interfaces/checksum-consts.d.ts +11 -0
  40. package/src/interfaces/checksum-consts.d.ts.map +1 -0
  41. package/src/interfaces/checksum-consts.js +3 -0
  42. package/src/interfaces/checksum-consts.js.map +1 -0
  43. package/src/interfaces/constants.d.ts +43 -0
  44. package/src/interfaces/constants.d.ts.map +1 -0
  45. package/src/interfaces/constants.js +3 -0
  46. package/src/interfaces/constants.js.map +1 -0
  47. package/src/interfaces/ecies-consts.d.ts +88 -0
  48. package/src/interfaces/ecies-consts.d.ts.map +1 -0
  49. package/src/interfaces/ecies-consts.js +3 -0
  50. package/src/interfaces/ecies-consts.js.map +1 -0
  51. package/src/interfaces/encryption-consts.d.ts +11 -0
  52. package/src/interfaces/encryption-consts.d.ts.map +1 -0
  53. package/src/interfaces/encryption-consts.js +3 -0
  54. package/src/interfaces/encryption-consts.js.map +1 -0
  55. package/src/interfaces/{index.ts → index.d.ts} +1 -0
  56. package/src/interfaces/index.d.ts.map +1 -0
  57. package/src/interfaces/index.js +21 -0
  58. package/src/interfaces/index.js.map +1 -0
  59. package/src/interfaces/keypair-buffer-with-un-encrypted-private-key.d.ts +6 -0
  60. package/src/interfaces/keypair-buffer-with-un-encrypted-private-key.d.ts.map +1 -0
  61. package/src/interfaces/keypair-buffer-with-un-encrypted-private-key.js +3 -0
  62. package/src/interfaces/keypair-buffer-with-un-encrypted-private-key.js.map +1 -0
  63. package/src/interfaces/keyring-consts.d.ts +6 -0
  64. package/src/interfaces/keyring-consts.d.ts.map +1 -0
  65. package/src/interfaces/keyring-consts.js +3 -0
  66. package/src/interfaces/keyring-consts.js.map +1 -0
  67. package/src/interfaces/member-operational.d.ts +36 -0
  68. package/src/interfaces/member-operational.d.ts.map +1 -0
  69. package/src/interfaces/member-operational.js +3 -0
  70. package/src/interfaces/member-operational.js.map +1 -0
  71. package/src/interfaces/{member-with-mnemonic.ts → member-with-mnemonic.d.ts} +3 -3
  72. package/src/interfaces/member-with-mnemonic.d.ts.map +1 -0
  73. package/src/interfaces/member-with-mnemonic.js +3 -0
  74. package/src/interfaces/member-with-mnemonic.js.map +1 -0
  75. package/src/interfaces/{multi-encrypted-message.ts → multi-encrypted-message.d.ts} +5 -5
  76. package/src/interfaces/multi-encrypted-message.d.ts.map +1 -0
  77. package/src/interfaces/multi-encrypted-message.js +3 -0
  78. package/src/interfaces/multi-encrypted-message.js.map +1 -0
  79. package/src/interfaces/multi-encrypted-parsed-header.d.ts +24 -0
  80. package/src/interfaces/multi-encrypted-parsed-header.d.ts.map +1 -0
  81. package/src/interfaces/multi-encrypted-parsed-header.js +3 -0
  82. package/src/interfaces/multi-encrypted-parsed-header.js.map +1 -0
  83. package/src/interfaces/{pbkdf-profiles.ts → pbkdf-profiles.d.ts} +2 -2
  84. package/src/interfaces/pbkdf-profiles.d.ts.map +1 -0
  85. package/src/interfaces/pbkdf-profiles.js +3 -0
  86. package/src/interfaces/pbkdf-profiles.js.map +1 -0
  87. package/src/interfaces/pbkdf2-result.d.ts +6 -0
  88. package/src/interfaces/pbkdf2-result.d.ts.map +1 -0
  89. package/src/interfaces/pbkdf2-result.js +3 -0
  90. package/src/interfaces/pbkdf2-result.js.map +1 -0
  91. package/src/interfaces/signing-key-private-key-info.d.ts +11 -0
  92. package/src/interfaces/signing-key-private-key-info.d.ts.map +1 -0
  93. package/src/interfaces/signing-key-private-key-info.js +3 -0
  94. package/src/interfaces/signing-key-private-key-info.js.map +1 -0
  95. package/src/interfaces/{simple-keypair-buffer.ts → simple-keypair-buffer.d.ts} +3 -3
  96. package/src/interfaces/simple-keypair-buffer.d.ts.map +1 -0
  97. package/src/interfaces/simple-keypair-buffer.js +3 -0
  98. package/src/interfaces/simple-keypair-buffer.js.map +1 -0
  99. package/src/interfaces/{simple-keypair.ts → simple-keypair.d.ts} +3 -3
  100. package/src/interfaces/simple-keypair.d.ts.map +1 -0
  101. package/src/interfaces/simple-keypair.js +3 -0
  102. package/src/interfaces/simple-keypair.js.map +1 -0
  103. package/src/interfaces/simple-public-key-only-buffer.d.ts +4 -0
  104. package/src/interfaces/simple-public-key-only-buffer.d.ts.map +1 -0
  105. package/src/interfaces/simple-public-key-only-buffer.js +3 -0
  106. package/src/interfaces/simple-public-key-only-buffer.js.map +1 -0
  107. package/src/interfaces/simple-public-key-only.d.ts +4 -0
  108. package/src/interfaces/simple-public-key-only.d.ts.map +1 -0
  109. package/src/interfaces/simple-public-key-only.js +3 -0
  110. package/src/interfaces/simple-public-key-only.js.map +1 -0
  111. package/src/interfaces/single-encrypted-parsed-header.d.ts +35 -0
  112. package/src/interfaces/single-encrypted-parsed-header.d.ts.map +1 -0
  113. package/src/interfaces/single-encrypted-parsed-header.js +3 -0
  114. package/src/interfaces/single-encrypted-parsed-header.js.map +1 -0
  115. package/src/interfaces/{wallet-seed.ts → wallet-seed.d.ts} +3 -3
  116. package/src/interfaces/wallet-seed.d.ts.map +1 -0
  117. package/src/interfaces/wallet-seed.js +3 -0
  118. package/src/interfaces/wallet-seed.js.map +1 -0
  119. package/src/interfaces/wrapped-key-consts.d.ts +7 -0
  120. package/src/interfaces/wrapped-key-consts.d.ts.map +1 -0
  121. package/src/interfaces/wrapped-key-consts.js +3 -0
  122. package/src/interfaces/wrapped-key-consts.js.map +1 -0
  123. package/src/member.d.ts +74 -0
  124. package/src/member.d.ts.map +1 -0
  125. package/src/member.js +273 -0
  126. package/src/member.js.map +1 -0
  127. package/src/services/aes-gcm.d.ts +66 -0
  128. package/src/services/aes-gcm.d.ts.map +1 -0
  129. package/src/services/aes-gcm.js +115 -0
  130. package/src/services/aes-gcm.js.map +1 -0
  131. package/src/services/ecies/crypto-core.d.ts +83 -0
  132. package/src/services/ecies/crypto-core.d.ts.map +1 -0
  133. package/src/services/ecies/crypto-core.js +166 -0
  134. package/src/services/ecies/crypto-core.js.map +1 -0
  135. package/src/services/ecies/file.d.ts +30 -0
  136. package/src/services/ecies/file.d.ts.map +1 -0
  137. package/src/services/ecies/file.js +112 -0
  138. package/src/services/ecies/file.js.map +1 -0
  139. package/src/services/ecies/{index.ts → index.d.ts} +1 -0
  140. package/src/services/ecies/index.d.ts.map +1 -0
  141. package/src/services/ecies/index.js +11 -0
  142. package/src/services/ecies/index.js.map +1 -0
  143. package/src/services/ecies/multi-recipient.d.ts +82 -0
  144. package/src/services/ecies/multi-recipient.d.ts.map +1 -0
  145. package/src/services/ecies/multi-recipient.js +360 -0
  146. package/src/services/ecies/multi-recipient.js.map +1 -0
  147. package/src/services/ecies/service.d.ts +70 -0
  148. package/src/services/ecies/service.d.ts.map +1 -0
  149. package/src/services/ecies/service.js +167 -0
  150. package/src/services/ecies/service.js.map +1 -0
  151. package/src/services/ecies/signature.d.ts +38 -0
  152. package/src/services/ecies/signature.d.ts.map +1 -0
  153. package/src/services/ecies/signature.js +69 -0
  154. package/src/services/ecies/signature.js.map +1 -0
  155. package/src/services/ecies/single-recipient.d.ts +85 -0
  156. package/src/services/ecies/single-recipient.d.ts.map +1 -0
  157. package/src/services/ecies/single-recipient.js +399 -0
  158. package/src/services/ecies/single-recipient.js.map +1 -0
  159. package/src/services/ecies/utilities.d.ts +22 -0
  160. package/src/services/ecies/utilities.d.ts.map +1 -0
  161. package/src/services/ecies/utilities.js +75 -0
  162. package/src/services/ecies/utilities.js.map +1 -0
  163. package/src/services/index.d.ts +4 -0
  164. package/src/services/index.d.ts.map +1 -0
  165. package/src/services/index.js +7 -0
  166. package/src/services/index.js.map +1 -0
  167. package/src/services/pbkdf2.d.ts +106 -0
  168. package/src/services/pbkdf2.d.ts.map +1 -0
  169. package/src/services/pbkdf2.js +195 -0
  170. package/src/services/pbkdf2.js.map +1 -0
  171. package/src/{types.ts → types.d.ts} +9 -26
  172. package/src/types.d.ts.map +1 -0
  173. package/src/types.js +3 -0
  174. package/src/types.js.map +1 -0
  175. package/src/utils.d.ts +11 -0
  176. package/src/utils.d.ts.map +1 -0
  177. package/src/utils.js +82 -0
  178. package/src/utils.js.map +1 -0
  179. package/LICENSE +0 -21
  180. package/src/constants.ts +0 -182
  181. package/src/enumerations/index.ts +0 -1
  182. package/src/enumerations/pbkdf2-profile.ts +0 -8
  183. package/src/i18n/ecies-i18n-factory.ts +0 -435
  184. package/src/interfaces/authenticated-cipher.ts +0 -9
  185. package/src/interfaces/authenticated-decipher.ts +0 -8
  186. package/src/interfaces/checksum-config.ts +0 -4
  187. package/src/interfaces/checksum-consts.ts +0 -13
  188. package/src/interfaces/constants.ts +0 -43
  189. package/src/interfaces/ecies-consts.ts +0 -99
  190. package/src/interfaces/encryption-consts.ts +0 -10
  191. package/src/interfaces/keypair-buffer-with-un-encrypted-private-key.ts +0 -7
  192. package/src/interfaces/keyring-consts.ts +0 -5
  193. package/src/interfaces/member-operational.ts +0 -52
  194. package/src/interfaces/multi-encrypted-parsed-header.ts +0 -24
  195. package/src/interfaces/pbkdf2-result.ts +0 -5
  196. package/src/interfaces/signing-key-private-key-info.ts +0 -12
  197. package/src/interfaces/simple-public-key-only-buffer.ts +0 -3
  198. package/src/interfaces/simple-public-key-only.ts +0 -3
  199. package/src/interfaces/single-encrypted-parsed-header.ts +0 -35
  200. package/src/interfaces/wrapped-key-consts.ts +0 -6
  201. package/src/member.ts +0 -463
  202. package/src/services/aes-gcm.ts +0 -160
  203. package/src/services/ecies/crypto-core.ts +0 -213
  204. package/src/services/ecies/file.ts +0 -174
  205. package/src/services/ecies/multi-recipient.ts +0 -583
  206. package/src/services/ecies/service.ts +0 -351
  207. package/src/services/ecies/signature.ts +0 -91
  208. package/src/services/ecies/single-recipient.ts +0 -676
  209. package/src/services/ecies/utilities.ts +0 -111
  210. package/src/services/index.ts +0 -3
  211. package/src/services/pbkdf2.ts +0 -307
  212. package/src/utils.ts +0 -104
@@ -0,0 +1,88 @@
1
+ export interface IECIESConsts {
2
+ /** The elliptic curve to use for all ECDSA operations */
3
+ CURVE_NAME: string;
4
+ /** The primary key derivation path for HD wallets */
5
+ PRIMARY_KEY_DERIVATION_PATH: string;
6
+ /** Length of ECDSA signatures in bytes */
7
+ SIGNATURE_SIZE: number;
8
+ /** Length of raw public keys in bytes (without 0x04 prefix) */
9
+ RAW_PUBLIC_KEY_LENGTH: number;
10
+ /** Length of public keys in bytes (with 0x04 prefix) */
11
+ PUBLIC_KEY_LENGTH: number;
12
+ PUBLIC_KEY_MAGIC: number;
13
+ /** Mnemonic strength in bits. This will produce a 32-bit key for ECDSA */
14
+ MNEMONIC_STRENGTH: number;
15
+ /** Symmetric encryption algorithm configuration */
16
+ SYMMETRIC: {
17
+ ALGORITHM: string;
18
+ KEY_BITS: number;
19
+ KEY_SIZE: number;
20
+ MODE: string;
21
+ };
22
+ /**
23
+ * Length of the initialization vector
24
+ */
25
+ IV_SIZE: number;
26
+ /**
27
+ * Length of the authentication tag
28
+ */
29
+ AUTH_TAG_SIZE: number;
30
+ /**
31
+ * Maximum length of the data that can be encrypted
32
+ */
33
+ MAX_RAW_DATA_SIZE: number;
34
+ SIMPLE: {
35
+ /**
36
+ * Length of the type (1) + public key (65) + IV (16) + auth tag (16)
37
+ */
38
+ FIXED_OVERHEAD_SIZE: number;
39
+ /**
40
+ * Length of the data length (0 for simple encryption)
41
+ */
42
+ DATA_LENGTH_SIZE: number;
43
+ };
44
+ /**
45
+ * ECIES single recipient
46
+ */
47
+ SINGLE: {
48
+ /**
49
+ * Length of the IV + auth tag + data length + crc16
50
+ */
51
+ FIXED_OVERHEAD_SIZE: number;
52
+ /**
53
+ * Length of the data length
54
+ */
55
+ DATA_LENGTH_SIZE: number;
56
+ };
57
+ /**
58
+ * ECIES multiple recipient
59
+ */
60
+ MULTIPLE: {
61
+ /**
62
+ * Length of the IV + auth tag + data length + recipient count for the overall message
63
+ */
64
+ FIXED_OVERHEAD_SIZE: number;
65
+ /**
66
+ * Length of the encrypted key for each recipient
67
+ */
68
+ ENCRYPTED_KEY_SIZE: number;
69
+ /**
70
+ * Maximum number of recipients for a single message
71
+ * This is limited by the size of the value used to store the recipient count in the header
72
+ */
73
+ MAX_RECIPIENTS: number;
74
+ /**
75
+ * Length of the recipient ID
76
+ */
77
+ RECIPIENT_ID_SIZE: number;
78
+ /**
79
+ * Length of the recipient count
80
+ */
81
+ RECIPIENT_COUNT_SIZE: number;
82
+ /**
83
+ * Length of the data length
84
+ */
85
+ DATA_LENGTH_SIZE: number;
86
+ };
87
+ }
88
+ //# sourceMappingURL=ecies-consts.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ecies-consts.d.ts","sourceRoot":"","sources":["../../../../../packages/digitaldefiance-node-ecies-lib/src/interfaces/ecies-consts.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,YAAY;IAC3B,yDAAyD;IACzD,UAAU,EAAE,MAAM,CAAC;IAEnB,qDAAqD;IACrD,2BAA2B,EAAE,MAAM,CAAC;IAEpC,0CAA0C;IAC1C,cAAc,EAAE,MAAM,CAAC;IAEvB,+DAA+D;IAC/D,qBAAqB,EAAE,MAAM,CAAC;IAE9B,wDAAwD;IACxD,iBAAiB,EAAE,MAAM,CAAC;IAE1B,gBAAgB,EAAE,MAAM,CAAC;IAEzB,0EAA0E;IAC1E,iBAAiB,EAAE,MAAM,CAAC;IAE1B,mDAAmD;IACnD,SAAS,EAAE;QACT,SAAS,EAAE,MAAM,CAAC;QAClB,QAAQ,EAAE,MAAM,CAAC;QACjB,QAAQ,EAAE,MAAM,CAAC;QACjB,IAAI,EAAE,MAAM,CAAC;KACd,CAAC;IAEF;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,iBAAiB,EAAE,MAAM,CAAC;IAE1B,MAAM,EAAE;QACN;;WAEG;QACH,mBAAmB,EAAE,MAAM,CAAC;QAC5B;;WAEG;QACH,gBAAgB,EAAE,MAAM,CAAC;KAC1B,CAAC;IAEF;;OAEG;IACH,MAAM,EAAE;QACN;;WAEG;QACH,mBAAmB,EAAE,MAAM,CAAC;QAC5B;;WAEG;QACH,gBAAgB,EAAE,MAAM,CAAC;KAC1B,CAAC;IAEF;;OAEG;IACH,QAAQ,EAAE;QACR;;WAEG;QACH,mBAAmB,EAAE,MAAM,CAAC;QAC5B;;WAEG;QACH,kBAAkB,EAAE,MAAM,CAAC;QAC3B;;;WAGG;QACH,cAAc,EAAE,MAAM,CAAC;QACvB;;WAEG;QACH,iBAAiB,EAAE,MAAM,CAAC;QAC1B;;WAEG;QACH,oBAAoB,EAAE,MAAM,CAAC;QAC7B;;WAEG;QACH,gBAAgB,EAAE,MAAM,CAAC;KAC1B,CAAC;CACH"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=ecies-consts.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ecies-consts.js","sourceRoot":"","sources":["../../../../../packages/digitaldefiance-node-ecies-lib/src/interfaces/ecies-consts.ts"],"names":[],"mappings":""}
@@ -0,0 +1,11 @@
1
+ export interface IEncryptionConsts {
2
+ /**
3
+ * The size of the encryption type in bytes
4
+ */
5
+ ENCRYPTION_TYPE_SIZE: number;
6
+ /**
7
+ * The size of the recipient ID in bytes
8
+ */
9
+ RECIPIENT_ID_SIZE: number;
10
+ }
11
+ //# sourceMappingURL=encryption-consts.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"encryption-consts.d.ts","sourceRoot":"","sources":["../../../../../packages/digitaldefiance-node-ecies-lib/src/interfaces/encryption-consts.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,oBAAoB,EAAE,MAAM,CAAC;IAC7B;;OAEG;IACH,iBAAiB,EAAE,MAAM,CAAC;CAC3B"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=encryption-consts.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"encryption-consts.js","sourceRoot":"","sources":["../../../../../packages/digitaldefiance-node-ecies-lib/src/interfaces/encryption-consts.ts"],"names":[],"mappings":""}
@@ -15,3 +15,4 @@ export * from './simple-public-key-only-buffer';
15
15
  export * from './single-encrypted-parsed-header';
16
16
  export * from './wallet-seed';
17
17
  export * from './wrapped-key-consts';
18
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../packages/digitaldefiance-node-ecies-lib/src/interfaces/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAC;AACvC,cAAc,0BAA0B,CAAC;AACzC,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,gDAAgD,CAAC;AAC/D,cAAc,kBAAkB,CAAC;AACjC,cAAc,sBAAsB,CAAC;AACrC,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,kBAAkB,CAAC;AACjC,cAAc,yBAAyB,CAAC;AACxC,cAAc,0BAA0B,CAAC;AACzC,cAAc,iCAAiC,CAAC;AAChD,cAAc,kCAAkC,CAAC;AACjD,cAAc,eAAe,CAAC;AAC9B,cAAc,sBAAsB,CAAC"}
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./authenticated-cipher"), exports);
5
+ tslib_1.__exportStar(require("./authenticated-decipher"), exports);
6
+ tslib_1.__exportStar(require("./checksum-config"), exports);
7
+ tslib_1.__exportStar(require("./checksum-consts"), exports);
8
+ tslib_1.__exportStar(require("./keypair-buffer-with-un-encrypted-private-key"), exports);
9
+ tslib_1.__exportStar(require("./keyring-consts"), exports);
10
+ tslib_1.__exportStar(require("./member-operational"), exports);
11
+ tslib_1.__exportStar(require("./pbkdf-profiles"), exports);
12
+ tslib_1.__exportStar(require("./pbkdf2-result"), exports);
13
+ tslib_1.__exportStar(require("./signing-key-private-key-info"), exports);
14
+ tslib_1.__exportStar(require("./simple-keypair"), exports);
15
+ tslib_1.__exportStar(require("./simple-keypair-buffer"), exports);
16
+ tslib_1.__exportStar(require("./simple-public-key-only"), exports);
17
+ tslib_1.__exportStar(require("./simple-public-key-only-buffer"), exports);
18
+ tslib_1.__exportStar(require("./single-encrypted-parsed-header"), exports);
19
+ tslib_1.__exportStar(require("./wallet-seed"), exports);
20
+ tslib_1.__exportStar(require("./wrapped-key-consts"), exports);
21
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../packages/digitaldefiance-node-ecies-lib/src/interfaces/index.ts"],"names":[],"mappings":";;;AAAA,iEAAuC;AACvC,mEAAyC;AACzC,4DAAkC;AAClC,4DAAkC;AAClC,yFAA+D;AAC/D,2DAAiC;AACjC,+DAAqC;AACrC,2DAAiC;AACjC,0DAAgC;AAChC,yEAA+C;AAC/C,2DAAiC;AACjC,kEAAwC;AACxC,mEAAyC;AACzC,0EAAgD;AAChD,2EAAiD;AACjD,wDAA8B;AAC9B,+DAAqC"}
@@ -0,0 +1,6 @@
1
+ import { ISimplePublicKeyOnlyBuffer } from './simple-public-key-only-buffer';
2
+ export interface IKeyPairBufferWithUnEncryptedPrivateKey extends ISimplePublicKeyOnlyBuffer {
3
+ publicKey: Buffer;
4
+ privateKey: Buffer;
5
+ }
6
+ //# sourceMappingURL=keypair-buffer-with-un-encrypted-private-key.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"keypair-buffer-with-un-encrypted-private-key.d.ts","sourceRoot":"","sources":["../../../../../packages/digitaldefiance-node-ecies-lib/src/interfaces/keypair-buffer-with-un-encrypted-private-key.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,EAAE,MAAM,iCAAiC,CAAC;AAE7E,MAAM,WAAW,uCACf,SAAQ,0BAA0B;IAClC,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;CACpB"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=keypair-buffer-with-un-encrypted-private-key.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"keypair-buffer-with-un-encrypted-private-key.js","sourceRoot":"","sources":["../../../../../packages/digitaldefiance-node-ecies-lib/src/interfaces/keypair-buffer-with-un-encrypted-private-key.ts"],"names":[],"mappings":""}
@@ -0,0 +1,6 @@
1
+ export interface IKeyringConsts {
2
+ ALGORITHM: string;
3
+ KEY_BITS: number;
4
+ MODE: string;
5
+ }
6
+ //# sourceMappingURL=keyring-consts.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"keyring-consts.d.ts","sourceRoot":"","sources":["../../../../../packages/digitaldefiance-node-ecies-lib/src/interfaces/keyring-consts.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,cAAc;IAC7B,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;CACd"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=keyring-consts.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"keyring-consts.js","sourceRoot":"","sources":["../../../../../packages/digitaldefiance-node-ecies-lib/src/interfaces/keyring-consts.ts"],"names":[],"mappings":""}
@@ -0,0 +1,36 @@
1
+ import { EmailString, MemberType, SecureBuffer, SecureString } from '@digitaldefiance/ecies-lib';
2
+ import { Wallet } from '@ethereumjs/wallet';
3
+ import { Types } from 'mongoose';
4
+ import { SignatureBuffer } from '../types';
5
+ /**
6
+ * Operational interface for member - defines getters and methods
7
+ */
8
+ export interface IMemberOperational<I extends string | Types.ObjectId> {
9
+ get id(): I;
10
+ get type(): MemberType;
11
+ get name(): string;
12
+ get email(): EmailString;
13
+ get publicKey(): Uint8Array;
14
+ get creatorId(): I;
15
+ get dateCreated(): Date;
16
+ get dateUpdated(): Date;
17
+ get privateKey(): SecureBuffer | undefined;
18
+ get wallet(): Wallet | undefined;
19
+ get hasPrivateKey(): boolean;
20
+ sign(data: Buffer): SignatureBuffer;
21
+ verify(signature: SignatureBuffer, data: Buffer): boolean;
22
+ encryptData(data: string | Buffer): Uint8Array;
23
+ decryptData(encryptedData: Buffer): Uint8Array;
24
+ toJson(): string;
25
+ loadWallet(mnemonic: SecureString): void;
26
+ unloadPrivateKey(): void;
27
+ unloadWallet(): void;
28
+ unloadWalletAndPrivateKey(): void;
29
+ }
30
+ /**
31
+ * Extended operational interface for test members
32
+ */
33
+ export interface ITestBrightChainMemberOperational extends IMemberOperational<Types.ObjectId> {
34
+ get mnemonic(): SecureString | undefined;
35
+ }
36
+ //# sourceMappingURL=member-operational.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"member-operational.d.ts","sourceRoot":"","sources":["../../../../../packages/digitaldefiance-node-ecies-lib/src/interfaces/member-operational.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,WAAW,EACX,UAAU,EACV,YAAY,EACZ,YAAY,EACb,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAC5C,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AACjC,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAE3C;;GAEG;AACH,MAAM,WAAW,kBAAkB,CAAC,CAAC,SAAS,MAAM,GAAG,KAAK,CAAC,QAAQ;IAEnE,IAAI,EAAE,IAAI,CAAC,CAAC;IACZ,IAAI,IAAI,IAAI,UAAU,CAAC;IACvB,IAAI,IAAI,IAAI,MAAM,CAAC;IACnB,IAAI,KAAK,IAAI,WAAW,CAAC;IACzB,IAAI,SAAS,IAAI,UAAU,CAAC;IAC5B,IAAI,SAAS,IAAI,CAAC,CAAC;IACnB,IAAI,WAAW,IAAI,IAAI,CAAC;IACxB,IAAI,WAAW,IAAI,IAAI,CAAC;IAGxB,IAAI,UAAU,IAAI,YAAY,GAAG,SAAS,CAAC;IAC3C,IAAI,MAAM,IAAI,MAAM,GAAG,SAAS,CAAC;IAGjC,IAAI,aAAa,IAAI,OAAO,CAAC;IAG7B,IAAI,CAAC,IAAI,EAAE,MAAM,GAAG,eAAe,CAAC;IACpC,MAAM,CAAC,SAAS,EAAE,eAAe,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC;IAC1D,WAAW,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,UAAU,CAAC;IAC/C,WAAW,CAAC,aAAa,EAAE,MAAM,GAAG,UAAU,CAAC;IAC/C,MAAM,IAAI,MAAM,CAAC;IAGjB,UAAU,CAAC,QAAQ,EAAE,YAAY,GAAG,IAAI,CAAC;IACzC,gBAAgB,IAAI,IAAI,CAAC;IACzB,YAAY,IAAI,IAAI,CAAC;IACrB,yBAAyB,IAAI,IAAI,CAAC;CACnC;AAED;;GAEG;AACH,MAAM,WAAW,iCACf,SAAQ,kBAAkB,CAAC,KAAK,CAAC,QAAQ,CAAC;IAC1C,IAAI,QAAQ,IAAI,YAAY,GAAG,SAAS,CAAC;CAC1C"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=member-operational.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"member-operational.js","sourceRoot":"","sources":["../../../../../packages/digitaldefiance-node-ecies-lib/src/interfaces/member-operational.ts"],"names":[],"mappings":""}
@@ -1,7 +1,7 @@
1
1
  import { SecureString } from '@digitaldefiance/ecies-lib';
2
2
  import { Member } from '../member';
3
-
4
3
  export interface IBackendMemberWithMnemonic {
5
- member: Member;
6
- mnemonic: SecureString;
4
+ member: Member;
5
+ mnemonic: SecureString;
7
6
  }
7
+ //# sourceMappingURL=member-with-mnemonic.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"member-with-mnemonic.d.ts","sourceRoot":"","sources":["../../../../../packages/digitaldefiance-node-ecies-lib/src/interfaces/member-with-mnemonic.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAEnC,MAAM,WAAW,0BAA0B;IACzC,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,YAAY,CAAC;CACxB"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=member-with-mnemonic.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"member-with-mnemonic.js","sourceRoot":"","sources":["../../../../../packages/digitaldefiance-node-ecies-lib/src/interfaces/member-with-mnemonic.ts"],"names":[],"mappings":""}
@@ -1,8 +1,8 @@
1
1
  import { IMultiEncryptedParsedHeader } from './multi-encrypted-parsed-header';
2
-
3
2
  export interface IMultiEncryptedMessage extends IMultiEncryptedParsedHeader {
4
- /**
5
- * The encrypted message.
6
- */
7
- readonly encryptedMessage: Buffer;
3
+ /**
4
+ * The encrypted message.
5
+ */
6
+ readonly encryptedMessage: Buffer;
8
7
  }
8
+ //# sourceMappingURL=multi-encrypted-message.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"multi-encrypted-message.d.ts","sourceRoot":"","sources":["../../../../../packages/digitaldefiance-node-ecies-lib/src/interfaces/multi-encrypted-message.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,MAAM,iCAAiC,CAAC;AAE9E,MAAM,WAAW,sBAAuB,SAAQ,2BAA2B;IACzE;;OAEG;IACH,QAAQ,CAAC,gBAAgB,EAAE,MAAM,CAAC;CACnC"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=multi-encrypted-message.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"multi-encrypted-message.js","sourceRoot":"","sources":["../../../../../packages/digitaldefiance-node-ecies-lib/src/interfaces/multi-encrypted-message.ts"],"names":[],"mappings":""}
@@ -0,0 +1,24 @@
1
+ import { Types } from 'mongoose';
2
+ export interface IMultiEncryptedParsedHeader {
3
+ /**
4
+ * The length of the data before encryption
5
+ */
6
+ readonly dataLength: number;
7
+ /**
8
+ * The number of recipients
9
+ */
10
+ readonly recipientCount: number;
11
+ /**
12
+ * The IDs of the recipients
13
+ */
14
+ readonly recipientIds: Types.ObjectId[];
15
+ /**
16
+ * An encrypted version of the symmetric key for each recipient
17
+ */
18
+ readonly recipientKeys: Buffer[];
19
+ /**
20
+ * The size of the header, up to the encrypted message start (excludes encrypted message IV+auth tag)
21
+ */
22
+ readonly headerSize: number;
23
+ }
24
+ //# sourceMappingURL=multi-encrypted-parsed-header.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"multi-encrypted-parsed-header.d.ts","sourceRoot":"","sources":["../../../../../packages/digitaldefiance-node-ecies-lib/src/interfaces/multi-encrypted-parsed-header.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAEjC,MAAM,WAAW,2BAA2B;IAC1C;;OAEG;IACH,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B;;OAEG;IACH,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAC;IAChC;;OAEG;IACH,QAAQ,CAAC,YAAY,EAAE,KAAK,CAAC,QAAQ,EAAE,CAAC;IACxC;;OAEG;IACH,QAAQ,CAAC,aAAa,EAAE,MAAM,EAAE,CAAC;IACjC;;OAEG;IACH,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;CAC7B"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=multi-encrypted-parsed-header.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"multi-encrypted-parsed-header.js","sourceRoot":"","sources":["../../../../../packages/digitaldefiance-node-ecies-lib/src/interfaces/multi-encrypted-parsed-header.ts"],"names":[],"mappings":""}
@@ -1,6 +1,6 @@
1
1
  import { IPbkdf2Config } from '@digitaldefiance/ecies-lib';
2
2
  import { Pbkdf2ProfileEnum } from '../enumerations/pbkdf2-profile';
3
-
4
3
  export type PbkdfProfiles = {
5
- [key in Pbkdf2ProfileEnum]: IPbkdf2Config;
4
+ [key in Pbkdf2ProfileEnum]: IPbkdf2Config;
6
5
  };
6
+ //# sourceMappingURL=pbkdf-profiles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pbkdf-profiles.d.ts","sourceRoot":"","sources":["../../../../../packages/digitaldefiance-node-ecies-lib/src/interfaces/pbkdf-profiles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAC3D,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AAEnE,MAAM,MAAM,aAAa,GAAG;KACzB,GAAG,IAAI,iBAAiB,GAAG,aAAa;CAC1C,CAAC"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=pbkdf-profiles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pbkdf-profiles.js","sourceRoot":"","sources":["../../../../../packages/digitaldefiance-node-ecies-lib/src/interfaces/pbkdf-profiles.ts"],"names":[],"mappings":""}
@@ -0,0 +1,6 @@
1
+ export interface IPbkdf2Result {
2
+ salt: Buffer;
3
+ hash: Buffer;
4
+ iterations: number;
5
+ }
6
+ //# sourceMappingURL=pbkdf2-result.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pbkdf2-result.d.ts","sourceRoot":"","sources":["../../../../../packages/digitaldefiance-node-ecies-lib/src/interfaces/pbkdf2-result.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC;CACpB"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=pbkdf2-result.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pbkdf2-result.js","sourceRoot":"","sources":["../../../../../packages/digitaldefiance-node-ecies-lib/src/interfaces/pbkdf2-result.ts"],"names":[],"mappings":""}
@@ -0,0 +1,11 @@
1
+ import { ec } from 'elliptic';
2
+ import { IKeyPairBufferWithUnEncryptedPrivateKey } from './keypair-buffer-with-un-encrypted-private-key';
3
+ export interface ISigningKeyPrivateKeyInfo extends IKeyPairBufferWithUnEncryptedPrivateKey {
4
+ keyPair: ec.KeyPair;
5
+ publicKey: Buffer;
6
+ privateKey: Buffer;
7
+ seedHex: string;
8
+ entropy: string;
9
+ mnemonic: string;
10
+ }
11
+ //# sourceMappingURL=signing-key-private-key-info.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"signing-key-private-key-info.d.ts","sourceRoot":"","sources":["../../../../../packages/digitaldefiance-node-ecies-lib/src/interfaces/signing-key-private-key-info.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,UAAU,CAAC;AAC9B,OAAO,EAAE,uCAAuC,EAAE,MAAM,gDAAgD,CAAC;AAEzG,MAAM,WAAW,yBACf,SAAQ,uCAAuC;IAC/C,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;CAClB"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=signing-key-private-key-info.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"signing-key-private-key-info.js","sourceRoot":"","sources":["../../../../../packages/digitaldefiance-node-ecies-lib/src/interfaces/signing-key-private-key-info.ts"],"names":[],"mappings":""}
@@ -1,6 +1,6 @@
1
1
  import { ISimplePublicKeyOnlyBuffer } from './simple-public-key-only-buffer';
2
-
3
2
  export interface ISimpleKeyPairBuffer extends ISimplePublicKeyOnlyBuffer {
4
- publicKey: Buffer;
5
- privateKey: Buffer;
3
+ publicKey: Buffer;
4
+ privateKey: Buffer;
6
5
  }
6
+ //# sourceMappingURL=simple-keypair-buffer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"simple-keypair-buffer.d.ts","sourceRoot":"","sources":["../../../../../packages/digitaldefiance-node-ecies-lib/src/interfaces/simple-keypair-buffer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,EAAE,MAAM,iCAAiC,CAAC;AAE7E,MAAM,WAAW,oBAAqB,SAAQ,0BAA0B;IACtE,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;CACpB"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=simple-keypair-buffer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"simple-keypair-buffer.js","sourceRoot":"","sources":["../../../../../packages/digitaldefiance-node-ecies-lib/src/interfaces/simple-keypair-buffer.ts"],"names":[],"mappings":""}
@@ -1,6 +1,6 @@
1
1
  import { ISimplePublicKeyOnly } from './simple-public-key-only';
2
-
3
2
  export interface ISimpleKeyPair extends ISimplePublicKeyOnly {
4
- publicKey: string;
5
- privateKey: Buffer;
3
+ publicKey: string;
4
+ privateKey: Buffer;
6
5
  }
6
+ //# sourceMappingURL=simple-keypair.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"simple-keypair.d.ts","sourceRoot":"","sources":["../../../../../packages/digitaldefiance-node-ecies-lib/src/interfaces/simple-keypair.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAEhE,MAAM,WAAW,cAAe,SAAQ,oBAAoB;IAC1D,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;CACpB"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=simple-keypair.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"simple-keypair.js","sourceRoot":"","sources":["../../../../../packages/digitaldefiance-node-ecies-lib/src/interfaces/simple-keypair.ts"],"names":[],"mappings":""}
@@ -0,0 +1,4 @@
1
+ export interface ISimplePublicKeyOnlyBuffer {
2
+ publicKey: Buffer;
3
+ }
4
+ //# sourceMappingURL=simple-public-key-only-buffer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"simple-public-key-only-buffer.d.ts","sourceRoot":"","sources":["../../../../../packages/digitaldefiance-node-ecies-lib/src/interfaces/simple-public-key-only-buffer.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,0BAA0B;IACzC,SAAS,EAAE,MAAM,CAAC;CACnB"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=simple-public-key-only-buffer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"simple-public-key-only-buffer.js","sourceRoot":"","sources":["../../../../../packages/digitaldefiance-node-ecies-lib/src/interfaces/simple-public-key-only-buffer.ts"],"names":[],"mappings":""}
@@ -0,0 +1,4 @@
1
+ export interface ISimplePublicKeyOnly {
2
+ publicKey: string;
3
+ }
4
+ //# sourceMappingURL=simple-public-key-only.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"simple-public-key-only.d.ts","sourceRoot":"","sources":["../../../../../packages/digitaldefiance-node-ecies-lib/src/interfaces/simple-public-key-only.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,oBAAoB;IACnC,SAAS,EAAE,MAAM,CAAC;CACnB"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=simple-public-key-only.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"simple-public-key-only.js","sourceRoot":"","sources":["../../../../../packages/digitaldefiance-node-ecies-lib/src/interfaces/simple-public-key-only.ts"],"names":[],"mappings":""}
@@ -0,0 +1,35 @@
1
+ import { EciesEncryptionTypeEnum } from '@digitaldefiance/ecies-lib';
2
+ /**
3
+ * Interface for encrypted messages
4
+ */
5
+ export interface ISingleEncryptedParsedHeader {
6
+ /**
7
+ * The optional preamble, if specified/relevant
8
+ */
9
+ readonly preamble?: Buffer;
10
+ /**
11
+ * The encryption type used to encrypt the data
12
+ */
13
+ readonly encryptionType: EciesEncryptionTypeEnum;
14
+ /**
15
+ * The ephemeral public key used to encrypt the data
16
+ */
17
+ readonly ephemeralPublicKey: Buffer;
18
+ /**
19
+ * The initialization vector used to encrypt the data
20
+ */
21
+ readonly iv: Buffer;
22
+ /**
23
+ * The authentication tag used to encrypt the data
24
+ */
25
+ readonly authTag: Buffer;
26
+ /**
27
+ * The length of the encrypted data
28
+ */
29
+ readonly dataLength: number;
30
+ /**
31
+ * The size of the encrypted data header
32
+ */
33
+ readonly headerSize: number;
34
+ }
35
+ //# sourceMappingURL=single-encrypted-parsed-header.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"single-encrypted-parsed-header.d.ts","sourceRoot":"","sources":["../../../../../packages/digitaldefiance-node-ecies-lib/src/interfaces/single-encrypted-parsed-header.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,4BAA4B,CAAC;AAErE;;GAEG;AACH,MAAM,WAAW,4BAA4B;IAC3C;;OAEG;IACH,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAC3B;;OAEG;IACH,QAAQ,CAAC,cAAc,EAAE,uBAAuB,CAAC;IACjD;;OAEG;IACH,QAAQ,CAAC,kBAAkB,EAAE,MAAM,CAAC;IACpC;;OAEG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB;;OAEG;IACH,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B;;OAEG;IACH,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;CAC7B"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=single-encrypted-parsed-header.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"single-encrypted-parsed-header.js","sourceRoot":"","sources":["../../../../../packages/digitaldefiance-node-ecies-lib/src/interfaces/single-encrypted-parsed-header.ts"],"names":[],"mappings":""}
@@ -1,7 +1,7 @@
1
1
  import { SecureBuffer } from '@digitaldefiance/ecies-lib';
2
2
  import { Wallet } from '@ethereumjs/wallet';
3
-
4
3
  export interface IWalletSeed {
5
- wallet: Wallet;
6
- seed: SecureBuffer;
4
+ wallet: Wallet;
5
+ seed: SecureBuffer;
7
6
  }
7
+ //# sourceMappingURL=wallet-seed.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"wallet-seed.d.ts","sourceRoot":"","sources":["../../../../../packages/digitaldefiance-node-ecies-lib/src/interfaces/wallet-seed.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAE5C,MAAM,WAAW,WAAW;IAC1B,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,YAAY,CAAC;CACpB"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=wallet-seed.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"wallet-seed.js","sourceRoot":"","sources":["../../../../../packages/digitaldefiance-node-ecies-lib/src/interfaces/wallet-seed.ts"],"names":[],"mappings":""}
@@ -0,0 +1,7 @@
1
+ export interface IWrappedKeyConsts {
2
+ SALT_SIZE: number;
3
+ IV_SIZE: number;
4
+ MASTER_KEY_SIZE: number;
5
+ MIN_ITERATIONS: number;
6
+ }
7
+ //# sourceMappingURL=wrapped-key-consts.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"wrapped-key-consts.d.ts","sourceRoot":"","sources":["../../../../../packages/digitaldefiance-node-ecies-lib/src/interfaces/wrapped-key-consts.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,iBAAiB;IAChC,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,eAAe,EAAE,MAAM,CAAC;IACxB,cAAc,EAAE,MAAM,CAAC;CACxB"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=wrapped-key-consts.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"wrapped-key-consts.js","sourceRoot":"","sources":["../../../../../packages/digitaldefiance-node-ecies-lib/src/interfaces/wrapped-key-consts.ts"],"names":[],"mappings":""}