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

24 lines
487 B
TypeScript
Raw Normal View History

/**
* Indicate that this error is expected and should not be ignored
* by the functional interface try / catch blocks
*/
export class ExpectedError extends Error {}
2020-11-29 23:35:42 +00:00
export class ZeroPrivateKeyError extends Error {
constructor() {
super("PRIVATE_KEY_IS_ZERO");
}
}
export class ZeroPublicKeyError extends Error {
constructor() {
super("PUBLIC_KEY_IS_ZERO");
}
}
2020-11-30 00:01:48 +00:00
export class ZeroSignatureError extends Error {
constructor() {
super("SIGNATURE_IS_ZERO");
}
}