Skip to content

Commit cfb3d4b

Browse files
remove bigint string
1 parent f369a3b commit cfb3d4b

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

src/Point.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { ed25519 } from "@noble/curves/ed25519.js";
22
import { concatBytes, hexToBytes, numberToBytesBE } from "@noble/curves/utils.js";
33

4-
import { getSecp256k1, toBigIntBE } from "./helpers/common";
5-
import { BigIntString, KeyType } from "./interfaces";
4+
import { getSecp256k1 } from "./helpers/common";
5+
import { KeyType } from "./interfaces";
66

77
class Point {
88
x: bigint;
@@ -11,9 +11,9 @@ class Point {
1111

1212
keyType: KeyType;
1313

14-
constructor(x: BigIntString, y: BigIntString, keyType: KeyType) {
15-
this.x = toBigIntBE(x);
16-
this.y = toBigIntBE(y);
14+
constructor(x: bigint, y: bigint, keyType: KeyType) {
15+
this.x = x;
16+
this.y = y;
1717
this.keyType = keyType;
1818
}
1919

src/interfaces.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -224,8 +224,6 @@ export interface VerifierParams {
224224
extended_verifier_id?: string;
225225
}
226226

227-
export type BigIntString = string | bigint;
228-
229227
export type StringifiedType = Record<string, unknown>;
230228

231229
/** JSON shape returned by Share.toJSON() */

0 commit comments

Comments
 (0)