diff --git a/src/message.ts b/src/message.ts index f7df6f4..17b951e 100644 --- a/src/message.ts +++ b/src/message.ts @@ -3,7 +3,7 @@ import type { IMessage, IRateLimitProof, } from "@waku/interfaces"; -import utils from "@waku/utils/bytes"; +import * as utils from "@waku/utils/bytes"; import { epochBytesToInt } from "./epoch.js"; import { RLNInstance } from "./rln.js"; diff --git a/src/rln.ts b/src/rln.ts index dd897f4..203ff91 100644 --- a/src/rln.ts +++ b/src/rln.ts @@ -227,7 +227,7 @@ export class RLNInstance { } verifyWithRoots( - proof: RateLimitProof | Uint8Array, + proof: IRateLimitProof | Uint8Array, msg: Uint8Array ): boolean { let pBytes: Uint8Array;