From d587d6e37b04e8497011078f63df51bbaeb4a5fb Mon Sep 17 00:00:00 2001 From: Chris Duncan Date: Sat, 8 Aug 2026 02:29:11 -0700 Subject: [PATCH] Check for index buffer with actual values. --- src/lib/vault/parsers.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/vault/parsers.ts b/src/lib/vault/parsers.ts index 1fd9405..26dc60d 100644 --- a/src/lib/vault/parsers.ts +++ b/src/lib/vault/parsers.ts @@ -82,7 +82,7 @@ export function parseData (action: string, data: Record) { } // Index(es) for child account to derive or sign - if ((action === 'derive' || action === 'sign') && !(data.index instanceof ArrayBuffer)) { + if ((action === 'derive' || action === 'sign') && (!(data.index instanceof ArrayBuffer) || data.index.byteLength < 1)) { throw new TypeError('Index is required to derive an account private key') } const index = data.index instanceof ArrayBuffer -- 2.52.0