diff --git a/packages/core/src/lib/waku_store/index.ts b/packages/core/src/lib/waku_store/index.ts index 3f0ddf2636..2d30632b5d 100644 --- a/packages/core/src/lib/waku_store/index.ts +++ b/packages/core/src/lib/waku_store/index.ts @@ -3,7 +3,7 @@ import type { PeerId } from "@libp2p/interface-peer-id"; import { Peer } from "@libp2p/interface-peer-store"; import { sha256 } from "@noble/hashes/sha256"; import { concat, utf8ToBytes } from "@waku/byte-utils"; -import { DecodedMessage, Decoder } from "@waku/interfaces"; +import { DecodedMessage, Decoder, Index } from "@waku/interfaces"; import debug from "debug"; import all from "it-all"; import * as lp from "it-length-prefixed"; @@ -80,7 +80,7 @@ export interface QueryOptions { /** * Cursor as an index to start a query from. */ - cursor?: proto.Index; + cursor?: Index; } /** @@ -278,7 +278,7 @@ async function* paginate( protocol: string, queryOpts: Params, decoders: Map>, - cursor?: proto.Index + cursor?: Index ): AsyncGenerator[]> { if ( queryOpts.contentTopics.toString() !== @@ -381,7 +381,7 @@ export function isDefined(msg: T | undefined): msg is T { export async function createCursor( message: DecodedMessage, pubsubTopic: string = DefaultPubSubTopic -): Promise { +): Promise { if ( !message || !message.timestamp || diff --git a/packages/message-encryption/src/index.ts b/packages/message-encryption/src/index.ts index 8bbb373b5d..fc60c60a99 100644 --- a/packages/message-encryption/src/index.ts +++ b/packages/message-encryption/src/index.ts @@ -62,8 +62,6 @@ export class MessageV1 extends MessageV0 implements DecodedMessage { } } -export { sha256 } from "./crypto"; - export class AsymEncoder implements Encoder { constructor( public contentTopic: string,