Skip to content

Commit c752ab1

Browse files
committed
chore: fix btc-base-58 slice
1 parent 8a5bf70 commit c752ab1

File tree

1 file changed

+1
-1
lines changed
  • infrastructure/signature-validator/src

1 file changed

+1
-1
lines changed

infrastructure/signature-validator/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ async function decodeSignature(signature: string): Promise<Uint8Array> {
9797
if (signature.startsWith("z")) {
9898
try {
9999
const base58btc = await getBase58btc();
100-
return base58btc.decode(signature.slice(1));
100+
return base58btc.decode(signature);
101101
} catch (error) {
102102
throw new Error(`Failed to decode multibase signature: ${error instanceof Error ? error.message : String(error)}`);
103103
}

0 commit comments

Comments
 (0)