From 4264ca099e420bf6d6d2fa295c17626baecde6d0 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Sat, 31 Dec 2022 14:55:55 -0500 Subject: [PATCH] *need to make entry length into a buffer --- src/utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils.ts b/src/utils.ts index bec6eb1..3762fc0 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -23,7 +23,7 @@ export function signEntry( export function createSignatureData(entry: SignedRegistryEntry): Uint8Array { return b4a.concat([ encodeEndian(entry.revision, 8), - entry.data.length, + b4a.from([entry.data.length]), entry.data, ]); }