Import named export from blst
This commit is contained in:
parent
ef98683424
commit
2235e7be89
|
@ -17,7 +17,7 @@ async function getImplementation(impl: Implementation = "herumi"): Promise<IBls>
|
||||||
throw Error("blst-native is only supported in NodeJS");
|
throw Error("blst-native is only supported in NodeJS");
|
||||||
}
|
}
|
||||||
// eslint-disable-next-line @typescript-eslint/no-require-imports
|
// eslint-disable-next-line @typescript-eslint/no-require-imports
|
||||||
return require("./blst");
|
return require("./blst").bls;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
throw new Error(`Unsupported implementation - ${impl}`);
|
throw new Error(`Unsupported implementation - ${impl}`);
|
||||||
|
|
Reference in New Issue