More robust error handling and logging during summaries indexing

This commit is contained in:
Mononaut
2024-01-30 16:41:35 +00:00
parent e4d92c8fe0
commit db8ba7c938
6 changed files with 49 additions and 23 deletions

View File

@@ -31,6 +31,9 @@ const curveP = BigInt(`0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
* @returns {boolean} true if the point is on the SECP256K1 curve
*/
export function isPoint(pointHex: string): boolean {
if (!pointHex?.length) {
return false;
}
if (
!(
// is uncompressed