Skip to content

Commit 25d948f

Browse files
committed
Bindings: alias CurveParams -> CurveParamsT and reorder import
The plugin trivago/prettier-plugin-sort-imports does not work when the same symbol is used to import a value from a module A and re-used in the same file See trivago/prettier-plugin-sort-imports#287
1 parent 41b7f16 commit 25d948f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/bindings/crypto/elliptic-curve-examples.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
import { CurveParams, Pallas, Vesta } from './elliptic-curve.js';
1+
import { CurveParams as CurveParamsT, Pallas, Vesta } from './elliptic-curve.js';
22
import { exampleFields } from './finite-field-examples.js';
33

44
export { CurveParams };
55

6-
const secp256k1Params: CurveParams = {
6+
const secp256k1Params: CurveParamsT = {
77
name: 'secp256k1',
88
modulus: exampleFields.secp256k1.modulus,
99
order: exampleFields.secq256k1.modulus,
@@ -15,7 +15,7 @@ const secp256k1Params: CurveParams = {
1515
},
1616
};
1717

18-
const secp256r1Params: CurveParams = {
18+
const secp256r1Params: CurveParamsT = {
1919
name: 'secp256r1',
2020
modulus: exampleFields.secp256r1.modulus,
2121
order: 0xffffffff00000000ffffffffffffffffbce6faada7179e84f3b9cac2fc632551n,
@@ -27,7 +27,7 @@ const secp256r1Params: CurveParams = {
2727
},
2828
};
2929

30-
const pallasParams: CurveParams = {
30+
const pallasParams: CurveParamsT = {
3131
name: 'Pallas',
3232
modulus: Pallas.modulus,
3333
order: Pallas.order,
@@ -38,7 +38,7 @@ const pallasParams: CurveParams = {
3838
endoScalar: Pallas.endoScalar,
3939
};
4040

41-
const vestaParams: CurveParams = {
41+
const vestaParams: CurveParamsT = {
4242
name: 'Vesta',
4343
modulus: Vesta.modulus,
4444
order: Vesta.order,

0 commit comments

Comments
 (0)