Skip to content

Commit

Permalink
Adjustment to elliptic import
Browse files Browse the repository at this point in the history
  • Loading branch information
dreamoftrees committed Mar 1, 2024
1 parent 40db19f commit ba55b53
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions packages/x-client/src/utils/stark/starkCurve.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,17 @@
import { Signer } from '@ethersproject/abstract-signer';
import { splitSignature } from '@ethersproject/bytes';
import hash from 'hash.js';
import * as pkg from 'elliptic';
import * as elliptic from 'elliptic';
import * as encUtils from 'enc-utils';
// eslint-disable-next-line @typescript-eslint/naming-convention
import BN from 'bn.js';
import { hdkey } from 'ethereumjs-wallet';
import * as ethereumjsWallet from 'ethereumjs-wallet';
import { createStarkSigner } from './starkSigner';
import * as legacy from './legacy/crypto';
import { getStarkPublicKeyFromImx } from './getStarkPublicKeyFromImx';

const { ec, curves } = pkg;
const { ec, curves } = elliptic;
const { hdkey } = ethereumjsWallet;

/*
Stark-friendly elliptic curve
Expand Down

0 comments on commit ba55b53

Please sign in to comment.