19 lines
594 B
JavaScript
19 lines
594 B
JavaScript
|
import { SecretKey } from "./secretKey.js";
|
||
|
import { PublicKey } from "./publicKey.js";
|
||
|
import { Signature } from "./signature.js";
|
||
|
import { init, destroy } from "./context.js";
|
||
|
import { functionalInterfaceFactory } from "../functional.js";
|
||
|
export * from "../constants.js";
|
||
|
export { SecretKey, PublicKey, Signature, init, destroy };
|
||
|
export const bls = async () => {
|
||
|
await init();
|
||
|
return {
|
||
|
implementation: "herumi",
|
||
|
SecretKey,
|
||
|
PublicKey,
|
||
|
Signature,
|
||
|
...functionalInterfaceFactory({ SecretKey, PublicKey, Signature }),
|
||
|
};
|
||
|
};
|
||
|
export default bls;
|