Attempt to speed up signature verification

This commit is contained in:
Jon Staab
2024-11-21 15:33:13 -08:00
parent 81bf3bec10
commit 2bc575dc21
4 changed files with 24 additions and 11 deletions
+2
View File
@@ -25,6 +25,8 @@ export const identity = <T>(x: T, ...args: unknown[]) => x
export const always = <T>(x: T, ...args: unknown[]) => () => x
export const not = (x: boolean, ...args: unknown[]) => !x
export const num = (x: Maybe<number>) => x || 0
export const add = (x: Maybe<number>, y: Maybe<number>) => num(x) + num(y)