This repository has been archived on 2023-04-09. You can view files and clone it, but cannot push or open issues or pull requests.
chainsafe-bls/src/blst/index.ts

28 lines
649 B
TypeScript
Raw Normal View History

2020-11-19 13:22:41 +00:00
import {PrivateKey} from "./privateKey";
import {PublicKey} from "./publicKey";
import {Signature} from "./signature";
2020-11-20 19:03:17 +00:00
import {IBls} from "../interface";
2020-11-19 13:22:41 +00:00
export * from "../constants";
import {functionalInterfaceFactory} from "../functional";
2020-11-19 13:22:41 +00:00
2020-11-25 10:45:19 +00:00
export {PrivateKey, PublicKey, Signature};
2020-11-19 13:22:41 +00:00
2020-11-20 12:27:30 +00:00
export async function initBLS(): Promise<void> {
2020-11-19 13:22:41 +00:00
// Native bindings require no init() call
}
2020-11-20 12:27:30 +00:00
export function destroy(): void {
2020-11-19 13:22:41 +00:00
// Native bindings require no destroy() call
}
export const bls: IBls = {
2020-11-19 13:22:41 +00:00
PrivateKey,
PublicKey,
Signature,
...functionalInterfaceFactory({PrivateKey, PublicKey, Signature}),
2020-11-19 13:22:41 +00:00
initBLS,
destroy,
};
2020-11-20 19:03:17 +00:00
export default bls;