From 53605254cbaa6d8799c9cf0cb80f6269a5b2894c Mon Sep 17 00:00:00 2001 From: DarkSorrow Date: Thu, 23 Feb 2023 17:33:25 +0100 Subject: [PATCH] Fix an error with node18 While working on the hackathon for flow I had the following error while importing the package /node_modules/@freshmint/core/crypto/elliptic.ts:7 2023-02-23 11:33:06 const ECDSA_P256 = new elliptic.ec('p256'); Changeing the way the package is imported resolved the issue which seems to be due to the fact that this package export his class as default already and using the * induce an error from the nodejs imports --- packages/core/crypto/elliptic.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/crypto/elliptic.ts b/packages/core/crypto/elliptic.ts index d672d4c..b9e0bca 100644 --- a/packages/core/crypto/elliptic.ts +++ b/packages/core/crypto/elliptic.ts @@ -1,4 +1,4 @@ -import * as elliptic from 'elliptic'; +import elliptic from 'elliptic'; import { PublicKey } from './publicKey'; import { Signer, SignatureAlgorithm } from './sign';