@gardenfi/core 0.2.0-beta.75 → 0.2.0-beta.76

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 (299) hide show
  1. package/dist/index.cjs +31 -1
  2. package/dist/index.js +7813 -28
  3. package/package.json +1 -1
  4. package/dist/index10.cjs +0 -1
  5. package/dist/index10.js +0 -112
  6. package/dist/index100.cjs +0 -1
  7. package/dist/index100.js +0 -23
  8. package/dist/index101.cjs +0 -1
  9. package/dist/index101.js +0 -9
  10. package/dist/index102.cjs +0 -1
  11. package/dist/index102.js +0 -35
  12. package/dist/index103.cjs +0 -1
  13. package/dist/index103.js +0 -4
  14. package/dist/index104.cjs +0 -1
  15. package/dist/index104.js +0 -40
  16. package/dist/index105.cjs +0 -1
  17. package/dist/index105.js +0 -31
  18. package/dist/index106.cjs +0 -1
  19. package/dist/index106.js +0 -9
  20. package/dist/index107.cjs +0 -1
  21. package/dist/index107.js +0 -7
  22. package/dist/index108.cjs +0 -1
  23. package/dist/index108.js +0 -13
  24. package/dist/index109.cjs +0 -1
  25. package/dist/index109.js +0 -4
  26. package/dist/index11.cjs +0 -20
  27. package/dist/index11.js +0 -380
  28. package/dist/index110.cjs +0 -1
  29. package/dist/index110.js +0 -60
  30. package/dist/index111.cjs +0 -1
  31. package/dist/index111.js +0 -4
  32. package/dist/index112.cjs +0 -1
  33. package/dist/index112.js +0 -42
  34. package/dist/index113.cjs +0 -1
  35. package/dist/index113.js +0 -45
  36. package/dist/index114.cjs +0 -1
  37. package/dist/index114.js +0 -20
  38. package/dist/index115.cjs +0 -1
  39. package/dist/index115.js +0 -111
  40. package/dist/index116.cjs +0 -1
  41. package/dist/index116.js +0 -23
  42. package/dist/index117.cjs +0 -1
  43. package/dist/index117.js +0 -228
  44. package/dist/index118.cjs +0 -1
  45. package/dist/index118.js +0 -6
  46. package/dist/index119.cjs +0 -1
  47. package/dist/index119.js +0 -160
  48. package/dist/index12.cjs +0 -1
  49. package/dist/index12.js +0 -22
  50. package/dist/index120.cjs +0 -1
  51. package/dist/index120.js +0 -4
  52. package/dist/index121.cjs +0 -1
  53. package/dist/index121.js +0 -75
  54. package/dist/index122.cjs +0 -1
  55. package/dist/index122.js +0 -64
  56. package/dist/index123.cjs +0 -1
  57. package/dist/index123.js +0 -37
  58. package/dist/index124.cjs +0 -1
  59. package/dist/index124.js +0 -7
  60. package/dist/index125.cjs +0 -1
  61. package/dist/index125.js +0 -107
  62. package/dist/index126.cjs +0 -1
  63. package/dist/index126.js +0 -15
  64. package/dist/index127.cjs +0 -1
  65. package/dist/index127.js +0 -35
  66. package/dist/index128.cjs +0 -1
  67. package/dist/index128.js +0 -4
  68. package/dist/index129.cjs +0 -1
  69. package/dist/index129.js +0 -32
  70. package/dist/index13.cjs +0 -1
  71. package/dist/index13.js +0 -396
  72. package/dist/index130.cjs +0 -1
  73. package/dist/index130.js +0 -4
  74. package/dist/index131.cjs +0 -1
  75. package/dist/index131.js +0 -358
  76. package/dist/index132.cjs +0 -1
  77. package/dist/index132.js +0 -241
  78. package/dist/index133.cjs +0 -1
  79. package/dist/index133.js +0 -70
  80. package/dist/index134.cjs +0 -1
  81. package/dist/index134.js +0 -64
  82. package/dist/index135.cjs +0 -1
  83. package/dist/index135.js +0 -14
  84. package/dist/index136.cjs +0 -1
  85. package/dist/index136.js +0 -47
  86. package/dist/index137.cjs +0 -1
  87. package/dist/index137.js +0 -65
  88. package/dist/index138.cjs +0 -1
  89. package/dist/index138.js +0 -21
  90. package/dist/index139.cjs +0 -1
  91. package/dist/index139.js +0 -228
  92. package/dist/index14.cjs +0 -1
  93. package/dist/index14.js +0 -28
  94. package/dist/index140.cjs +0 -1
  95. package/dist/index140.js +0 -5
  96. package/dist/index141.cjs +0 -1
  97. package/dist/index141.js +0 -171
  98. package/dist/index142.cjs +0 -1
  99. package/dist/index142.js +0 -30
  100. package/dist/index143.cjs +0 -1
  101. package/dist/index143.js +0 -23
  102. package/dist/index144.cjs +0 -1
  103. package/dist/index144.js +0 -72
  104. package/dist/index145.cjs +0 -1
  105. package/dist/index145.js +0 -130
  106. package/dist/index146.cjs +0 -1
  107. package/dist/index146.js +0 -9
  108. package/dist/index147.cjs +0 -1
  109. package/dist/index147.js +0 -4
  110. package/dist/index148.cjs +0 -1
  111. package/dist/index148.js +0 -28
  112. package/dist/index149.cjs +0 -1
  113. package/dist/index149.js +0 -4
  114. package/dist/index15.cjs +0 -1
  115. package/dist/index15.js +0 -34
  116. package/dist/index16.cjs +0 -1
  117. package/dist/index16.js +0 -27
  118. package/dist/index17.cjs +0 -1
  119. package/dist/index17.js +0 -33
  120. package/dist/index18.cjs +0 -1
  121. package/dist/index18.js +0 -32
  122. package/dist/index19.cjs +0 -1
  123. package/dist/index19.js +0 -55
  124. package/dist/index2.cjs +0 -1
  125. package/dist/index2.js +0 -412
  126. package/dist/index20.cjs +0 -1
  127. package/dist/index20.js +0 -28
  128. package/dist/index21.cjs +0 -1
  129. package/dist/index21.js +0 -4
  130. package/dist/index22.cjs +0 -1
  131. package/dist/index22.js +0 -140
  132. package/dist/index23.cjs +0 -1
  133. package/dist/index23.js +0 -4
  134. package/dist/index24.cjs +0 -1
  135. package/dist/index24.js +0 -11
  136. package/dist/index25.cjs +0 -1
  137. package/dist/index25.js +0 -11
  138. package/dist/index26.cjs +0 -3
  139. package/dist/index26.js +0 -30
  140. package/dist/index27.cjs +0 -1
  141. package/dist/index27.js +0 -17
  142. package/dist/index28.cjs +0 -2
  143. package/dist/index28.js +0 -27
  144. package/dist/index29.cjs +0 -1
  145. package/dist/index29.js +0 -43
  146. package/dist/index3.cjs +0 -1
  147. package/dist/index3.js +0 -5
  148. package/dist/index30.cjs +0 -1
  149. package/dist/index30.js +0 -201
  150. package/dist/index31.cjs +0 -1
  151. package/dist/index31.js +0 -4
  152. package/dist/index32.cjs +0 -1
  153. package/dist/index32.js +0 -4
  154. package/dist/index33.cjs +0 -1
  155. package/dist/index33.js +0 -4
  156. package/dist/index34.cjs +0 -1
  157. package/dist/index34.js +0 -15
  158. package/dist/index35.cjs +0 -1
  159. package/dist/index35.js +0 -39
  160. package/dist/index36.cjs +0 -1
  161. package/dist/index36.js +0 -44
  162. package/dist/index37.cjs +0 -1
  163. package/dist/index37.js +0 -30
  164. package/dist/index38.cjs +0 -1
  165. package/dist/index38.js +0 -17
  166. package/dist/index39.cjs +0 -1
  167. package/dist/index39.js +0 -26
  168. package/dist/index4.cjs +0 -1
  169. package/dist/index4.js +0 -18
  170. package/dist/index40.cjs +0 -1
  171. package/dist/index40.js +0 -28
  172. package/dist/index41.cjs +0 -1
  173. package/dist/index41.js +0 -57
  174. package/dist/index42.cjs +0 -1
  175. package/dist/index42.js +0 -30
  176. package/dist/index43.cjs +0 -1
  177. package/dist/index43.js +0 -177
  178. package/dist/index44.cjs +0 -1
  179. package/dist/index44.js +0 -4
  180. package/dist/index45.cjs +0 -1
  181. package/dist/index45.js +0 -37
  182. package/dist/index46.cjs +0 -1
  183. package/dist/index46.js +0 -11
  184. package/dist/index47.cjs +0 -1
  185. package/dist/index47.js +0 -15
  186. package/dist/index48.cjs +0 -1
  187. package/dist/index48.js +0 -14
  188. package/dist/index49.cjs +0 -1
  189. package/dist/index49.js +0 -6
  190. package/dist/index5.cjs +0 -1
  191. package/dist/index5.js +0 -99
  192. package/dist/index50.cjs +0 -1
  193. package/dist/index50.js +0 -48
  194. package/dist/index51.cjs +0 -1
  195. package/dist/index51.js +0 -45
  196. package/dist/index52.cjs +0 -1
  197. package/dist/index52.js +0 -174
  198. package/dist/index53.cjs +0 -1
  199. package/dist/index53.js +0 -15
  200. package/dist/index54.cjs +0 -1
  201. package/dist/index54.js +0 -7
  202. package/dist/index55.cjs +0 -1
  203. package/dist/index55.js +0 -19
  204. package/dist/index56.cjs +0 -1
  205. package/dist/index56.js +0 -14
  206. package/dist/index57.cjs +0 -1
  207. package/dist/index57.js +0 -22
  208. package/dist/index58.cjs +0 -1
  209. package/dist/index58.js +0 -34
  210. package/dist/index59.cjs +0 -1
  211. package/dist/index59.js +0 -4
  212. package/dist/index6.cjs +0 -1
  213. package/dist/index6.js +0 -5
  214. package/dist/index60.cjs +0 -6
  215. package/dist/index60.js +0 -949
  216. package/dist/index61.cjs +0 -1
  217. package/dist/index61.js +0 -4
  218. package/dist/index62.cjs +0 -1
  219. package/dist/index62.js +0 -64
  220. package/dist/index63.cjs +0 -1
  221. package/dist/index63.js +0 -35
  222. package/dist/index64.cjs +0 -1
  223. package/dist/index64.js +0 -89
  224. package/dist/index65.cjs +0 -1
  225. package/dist/index65.js +0 -58
  226. package/dist/index66.cjs +0 -2
  227. package/dist/index66.js +0 -62
  228. package/dist/index67.cjs +0 -1
  229. package/dist/index67.js +0 -6
  230. package/dist/index68.cjs +0 -1
  231. package/dist/index68.js +0 -37
  232. package/dist/index69.cjs +0 -1
  233. package/dist/index69.js +0 -130
  234. package/dist/index7.cjs +0 -1
  235. package/dist/index7.js +0 -76
  236. package/dist/index70.cjs +0 -2
  237. package/dist/index70.js +0 -45
  238. package/dist/index71.cjs +0 -1
  239. package/dist/index71.js +0 -11
  240. package/dist/index72.cjs +0 -1
  241. package/dist/index72.js +0 -13
  242. package/dist/index73.cjs +0 -1
  243. package/dist/index73.js +0 -14
  244. package/dist/index74.cjs +0 -1
  245. package/dist/index74.js +0 -16
  246. package/dist/index75.cjs +0 -1
  247. package/dist/index75.js +0 -9
  248. package/dist/index76.cjs +0 -1
  249. package/dist/index76.js +0 -20
  250. package/dist/index77.cjs +0 -1
  251. package/dist/index77.js +0 -81
  252. package/dist/index78.cjs +0 -1
  253. package/dist/index78.js +0 -17
  254. package/dist/index79.cjs +0 -1
  255. package/dist/index79.js +0 -21
  256. package/dist/index8.cjs +0 -1
  257. package/dist/index8.js +0 -61
  258. package/dist/index80.cjs +0 -1
  259. package/dist/index80.js +0 -24
  260. package/dist/index81.cjs +0 -1
  261. package/dist/index81.js +0 -16
  262. package/dist/index82.cjs +0 -1
  263. package/dist/index82.js +0 -9
  264. package/dist/index83.cjs +0 -1
  265. package/dist/index83.js +0 -4
  266. package/dist/index84.cjs +0 -1
  267. package/dist/index84.js +0 -4
  268. package/dist/index85.cjs +0 -2
  269. package/dist/index85.js +0 -37
  270. package/dist/index86.cjs +0 -1
  271. package/dist/index86.js +0 -8
  272. package/dist/index87.cjs +0 -1
  273. package/dist/index87.js +0 -22
  274. package/dist/index88.cjs +0 -1
  275. package/dist/index88.js +0 -37
  276. package/dist/index89.cjs +0 -1
  277. package/dist/index89.js +0 -369
  278. package/dist/index9.cjs +0 -1
  279. package/dist/index9.js +0 -63
  280. package/dist/index90.cjs +0 -1
  281. package/dist/index90.js +0 -23
  282. package/dist/index91.cjs +0 -1
  283. package/dist/index91.js +0 -58
  284. package/dist/index92.cjs +0 -1
  285. package/dist/index92.js +0 -5
  286. package/dist/index93.cjs +0 -1
  287. package/dist/index93.js +0 -51
  288. package/dist/index94.cjs +0 -1
  289. package/dist/index94.js +0 -28
  290. package/dist/index95.cjs +0 -1
  291. package/dist/index95.js +0 -4
  292. package/dist/index96.cjs +0 -1
  293. package/dist/index96.js +0 -4
  294. package/dist/index97.cjs +0 -1
  295. package/dist/index97.js +0 -15
  296. package/dist/index98.cjs +0 -1
  297. package/dist/index98.js +0 -9
  298. package/dist/index99.cjs +0 -1
  299. package/dist/index99.js +0 -115
package/dist/index99.js DELETED
@@ -1,115 +0,0 @@
1
- import { HashMD as m, Chi as p, Maj as u } from "./index122.js";
2
- import { wrapConstructor as D, rotr as i } from "./index123.js";
3
- const g = /* @__PURE__ */ new Uint32Array([
4
- 1116352408,
5
- 1899447441,
6
- 3049323471,
7
- 3921009573,
8
- 961987163,
9
- 1508970993,
10
- 2453635748,
11
- 2870763221,
12
- 3624381080,
13
- 310598401,
14
- 607225278,
15
- 1426881987,
16
- 1925078388,
17
- 2162078206,
18
- 2614888103,
19
- 3248222580,
20
- 3835390401,
21
- 4022224774,
22
- 264347078,
23
- 604807628,
24
- 770255983,
25
- 1249150122,
26
- 1555081692,
27
- 1996064986,
28
- 2554220882,
29
- 2821834349,
30
- 2952996808,
31
- 3210313671,
32
- 3336571891,
33
- 3584528711,
34
- 113926993,
35
- 338241895,
36
- 666307205,
37
- 773529912,
38
- 1294757372,
39
- 1396182291,
40
- 1695183700,
41
- 1986661051,
42
- 2177026350,
43
- 2456956037,
44
- 2730485921,
45
- 2820302411,
46
- 3259730800,
47
- 3345764771,
48
- 3516065817,
49
- 3600352804,
50
- 4094571909,
51
- 275423344,
52
- 430227734,
53
- 506948616,
54
- 659060556,
55
- 883997877,
56
- 958139571,
57
- 1322822218,
58
- 1537002063,
59
- 1747873779,
60
- 1955562222,
61
- 2024104815,
62
- 2227730452,
63
- 2361852424,
64
- 2428436474,
65
- 2756734187,
66
- 3204031479,
67
- 3329325298
68
- ]), b = /* @__PURE__ */ new Uint32Array([
69
- 1779033703,
70
- 3144134277,
71
- 1013904242,
72
- 2773480762,
73
- 1359893119,
74
- 2600822924,
75
- 528734635,
76
- 1541459225
77
- ]), h = /* @__PURE__ */ new Uint32Array(64);
78
- class w extends m {
79
- constructor() {
80
- super(64, 32, 8, !1), this.A = b[0] | 0, this.B = b[1] | 0, this.C = b[2] | 0, this.D = b[3] | 0, this.E = b[4] | 0, this.F = b[5] | 0, this.G = b[6] | 0, this.H = b[7] | 0;
81
- }
82
- get() {
83
- const { A: d, B: o, C: t, D: s, E: a, F: f, G: c, H: e } = this;
84
- return [d, o, t, s, a, f, c, e];
85
- }
86
- // prettier-ignore
87
- set(d, o, t, s, a, f, c, e) {
88
- this.A = d | 0, this.B = o | 0, this.C = t | 0, this.D = s | 0, this.E = a | 0, this.F = f | 0, this.G = c | 0, this.H = e | 0;
89
- }
90
- process(d, o) {
91
- for (let x = 0; x < 16; x++, o += 4)
92
- h[x] = d.getUint32(o, !1);
93
- for (let x = 16; x < 64; x++) {
94
- const A = h[x - 15], n = h[x - 2], C = i(A, 7) ^ i(A, 18) ^ A >>> 3, H = i(n, 17) ^ i(n, 19) ^ n >>> 10;
95
- h[x] = H + h[x - 7] + C + h[x - 16] | 0;
96
- }
97
- let { A: t, B: s, C: a, D: f, E: c, F: e, G: r, H: l } = this;
98
- for (let x = 0; x < 64; x++) {
99
- const A = i(c, 6) ^ i(c, 11) ^ i(c, 25), n = l + A + p(c, e, r) + g[x] + h[x] | 0, H = (i(t, 2) ^ i(t, 13) ^ i(t, 22)) + u(t, s, a) | 0;
100
- l = r, r = e, e = c, c = f + n | 0, f = a, a = s, s = t, t = n + H | 0;
101
- }
102
- t = t + this.A | 0, s = s + this.B | 0, a = a + this.C | 0, f = f + this.D | 0, c = c + this.E | 0, e = e + this.F | 0, r = r + this.G | 0, l = l + this.H | 0, this.set(t, s, a, f, c, e, r, l);
103
- }
104
- roundClean() {
105
- h.fill(0);
106
- }
107
- destroy() {
108
- this.set(0, 0, 0, 0, 0, 0, 0, 0), this.buffer.fill(0);
109
- }
110
- }
111
- const G = /* @__PURE__ */ D(() => new w());
112
- export {
113
- w as SHA256,
114
- G as sha256
115
- };