Skip to content

Commit 3a44ae1

Browse files
committed
common: remove prettier-ignore.
1 parent 37947f2 commit 3a44ae1

File tree

4 files changed

+0
-10
lines changed

4 files changed

+0
-10
lines changed

packages/common/src/curve/modular.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
import { N_0 } from "../consts.ts";
1919

2020
// Numbers aren't used in x25519 / x448 builds
21-
// prettier-ignore
2221

2322
// Calculates a modulo b
2423
export function mod(a: bigint, b: bigint): bigint {

packages/common/src/hash/sha2.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ import { type CHash, createHasher } from "./hash.ts";
2222
* Round constants:
2323
* First 32 bits of fractional parts of the cube roots of the first 64 primes 2..311)
2424
*/
25-
// prettier-ignore
2625
const SHA256_K = /* @__PURE__ */ Uint32Array.from([
2726
0x428a2f98,
2827
0x71374491,
@@ -122,7 +121,6 @@ abstract class SHA2_32B<T extends SHA2_32B<T>> extends HashMD<T> {
122121
const { A, B, C, D, E, F, G, H } = this;
123122
return [A, B, C, D, E, F, G, H];
124123
}
125-
// prettier-ignore
126124
protected set(
127125
A: number,
128126
B: number,
@@ -211,7 +209,6 @@ export class _SHA256 extends SHA2_32B<_SHA256> {
211209

212210
// Round contants
213211
// First 32 bits of the fractional parts of the cube roots of the first 80 primes 2..409
214-
// prettier-ignore
215212
const K512 = /* @__PURE__ */ (() =>
216213
u64.split([
217214
"0x428a2f98d728ae22",
@@ -327,7 +324,6 @@ abstract class SHA2_64B<T extends SHA2_64B<T>> extends HashMD<T> {
327324
constructor(outputLen: number) {
328325
super(128, outputLen, 16, false);
329326
}
330-
// prettier-ignore
331327
protected get(): [
332328
number,
333329
number,
@@ -350,7 +346,6 @@ abstract class SHA2_64B<T extends SHA2_64B<T>> extends HashMD<T> {
350346
this;
351347
return [Ah, Al, Bh, Bl, Ch, Cl, Dh, Dl, Eh, El, Fh, Fl, Gh, Gl, Hh, Hl];
352348
}
353-
// prettier-ignore
354349
protected set(
355350
Ah: number,
356351
Al: number,
@@ -432,7 +427,6 @@ abstract class SHA2_64B<T extends SHA2_64B<T>> extends HashMD<T> {
432427
const CHIh = (Eh & Fh) ^ (~Eh & Gh);
433428
const CHIl = (El & Fl) ^ (~El & Gl);
434429
// T1 = H + sigma1 + Chi(E, F, G) + SHA512_K[i] + SHA512_W[i]
435-
// prettier-ignore
436430
const T1ll = u64.add5L(Hl, sigma1l, CHIl, SHA512_Kl[i], SHA512_W_L[i]);
437431
const T1h = u64.add5H(
438432
T1ll,

packages/common/src/hash/u64.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,6 @@ const add5H = (
116116
Eh: number,
117117
): number => (Ah + Bh + Ch + Dh + Eh + ((low / 2 ** 32) | 0)) | 0;
118118

119-
// prettier-ignore
120119
export {
121120
add,
122121
add3H,
@@ -141,7 +140,6 @@ export {
141140
split,
142141
toBig,
143142
};
144-
// prettier-ignore
145143
const u64: {
146144
fromBig: typeof fromBig;
147145
split: typeof split;

packages/common/src/utils/noble.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,6 @@ function abignumer(n: number | bigint) {
7676
}
7777

7878
/** Generic type encompassing 8/16/32-byte arrays - but not 64-byte. */
79-
// prettier-ignore
8079
export type TypedArray =
8180
| Int8Array
8281
| Uint8ClampedArray

0 commit comments

Comments
 (0)