2020-11-30 18:01:13 +00:00
|
|
|
import {SecretKey} from "./secretKey";
|
2020-11-19 13:22:41 +00:00
|
|
|
import {PublicKey} from "./publicKey";
|
|
|
|
import {Signature} from "./signature";
|
2020-11-20 19:03:17 +00:00
|
|
|
import {IBls} from "../interface";
|
2020-11-25 10:41:52 +00:00
|
|
|
import {functionalInterfaceFactory} from "../functional";
|
2020-11-28 19:14:06 +00:00
|
|
|
export * from "../constants";
|
2020-11-19 13:22:41 +00:00
|
|
|
|
2020-11-30 18:01:13 +00:00
|
|
|
export {SecretKey, PublicKey, Signature};
|
2020-11-19 13:22:41 +00:00
|
|
|
|
2020-11-25 16:09:44 +00:00
|
|
|
export async function init(): 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
|
|
|
|
}
|
|
|
|
|
2020-11-25 10:41:52 +00:00
|
|
|
export const bls: IBls = {
|
2020-11-30 18:01:13 +00:00
|
|
|
SecretKey,
|
2020-11-19 13:22:41 +00:00
|
|
|
PublicKey,
|
|
|
|
Signature,
|
2020-11-25 10:41:52 +00:00
|
|
|
|
2020-11-30 18:01:13 +00:00
|
|
|
...functionalInterfaceFactory({SecretKey, PublicKey, Signature}),
|
2020-11-25 16:09:44 +00:00
|
|
|
init,
|
2020-11-19 13:22:41 +00:00
|
|
|
destroy,
|
|
|
|
};
|
2020-11-20 19:03:17 +00:00
|
|
|
|
|
|
|
export default bls;
|