From 661c6227e738946ac1e8f80a1fb362a4d672c877 Mon Sep 17 00:00:00 2001 From: Franck Royer Date: Thu, 19 May 2022 16:10:23 +1000 Subject: [PATCH] Move type definition to the top --- src/lib/waku_message/version_1.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/lib/waku_message/version_1.ts b/src/lib/waku_message/version_1.ts index e24fb8fe68..3ca8362eab 100644 --- a/src/lib/waku_message/version_1.ts +++ b/src/lib/waku_message/version_1.ts @@ -17,6 +17,11 @@ const SignatureLength = 65; export const PrivateKeySize = 32; +export type Signature = { + signature: Uint8Array; + publicKey: Uint8Array | undefined; +}; + /** * Encode the payload pre-encryption. * @@ -76,11 +81,6 @@ export async function clearEncode( return { payload: envelope, sig }; } -export type Signature = { - signature: Uint8Array; - publicKey: Uint8Array | undefined; -}; - /** * Decode a decrypted payload. *