Use const in main bls export
This commit is contained in:
parent
e51c1784a7
commit
61c1baea3f
|
@ -4,7 +4,7 @@ import {bls as blsHerumi} from "./herumi";
|
||||||
export type Implementation = "herumi" | "blst-native";
|
export type Implementation = "herumi" | "blst-native";
|
||||||
|
|
||||||
// TODO: Use a Proxy for example to throw an error if it's not initialized yet
|
// TODO: Use a Proxy for example to throw an error if it's not initialized yet
|
||||||
export let bls: IBls = {} as IBls;
|
export const bls: IBls = {} as IBls;
|
||||||
|
|
||||||
async function getImplementation(impl: Implementation = "herumi"): Promise<IBls> {
|
async function getImplementation(impl: Implementation = "herumi"): Promise<IBls> {
|
||||||
switch (impl) {
|
switch (impl) {
|
||||||
|
|
Reference in New Issue