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/constants.ts

8 lines
355 B
TypeScript
Raw Normal View History

2019-08-05 15:48:26 +00:00
export const SECRET_KEY_LENGTH = 32;
2019-12-11 09:58:24 +00:00
export const SIGNATURE_LENGTH = 96;
2019-08-05 15:48:26 +00:00
export const FP_POINT_LENGTH = 48;
export const PUBLIC_KEY_LENGTH = FP_POINT_LENGTH;
export const G2_HASH_PADDING = 16;
2020-11-25 16:09:44 +00:00
export const EMPTY_PUBLIC_KEY = Uint8Array.from(Buffer.alloc(PUBLIC_KEY_LENGTH));
export const EMPTY_SIGNATURE = Uint8Array.from(Buffer.alloc(SIGNATURE_LENGTH));