From dbdf37a31dd7ae6d12334a812963a99af8651251 Mon Sep 17 00:00:00 2001 From: Franck Royer Date: Fri, 20 May 2022 10:29:49 +1000 Subject: [PATCH] Remove usage of `Buffer` from version_1.ts --- src/lib/waku_message/version_1.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/lib/waku_message/version_1.ts b/src/lib/waku_message/version_1.ts index 3a3bc82e45..faddc2c4de 100644 --- a/src/lib/waku_message/version_1.ts +++ b/src/lib/waku_message/version_1.ts @@ -1,5 +1,3 @@ -import { Buffer } from "buffer"; - import * as secp from "@noble/secp256k1"; import { keccak256 } from "js-sha3"; import { concat } from "uint8arrays/concat"; @@ -85,7 +83,7 @@ export async function clearEncode( * @internal */ export function clearDecode( - message: Uint8Array | Buffer + message: Uint8Array ): { payload: Uint8Array; sig?: Signature } | undefined { const sizeOfPayloadSizeField = getSizeOfPayloadSizeField(message); if (sizeOfPayloadSizeField === 0) return;