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
321 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-19 13:22:41 +00:00
export const EMPTY_PUBLIC_KEY = Buffer.alloc(PUBLIC_KEY_LENGTH);
export const EMPTY_SIGNATURE = Buffer.alloc(SIGNATURE_LENGTH);