@waku/message-hash
Version:
TypeScript implementation of the Deterministic Message Hashing as specified in 14/WAKU2-MESSAGE
8 lines (7 loc) • 432 B
TypeScript
import type { IDecodedMessage, IProtoMessage } from "@waku/interfaces";
/**
* Deterministic Message Hashing as defined in
* [14/WAKU2-MESSAGE](https://rfc.vac.dev/spec/14/#deterministic-message-hashing)
*/
export declare function messageHash(pubsubTopic: string, message: IProtoMessage | IDecodedMessage): Uint8Array;
export declare function messageHashStr(pubsubTopic: string, message: IProtoMessage | IDecodedMessage): string;