Skip to content

Commit

Permalink
chore: fix ts error
Browse files Browse the repository at this point in the history
  • Loading branch information
espaciofuturoio committed Feb 2, 2025
1 parent 81396ce commit c6c88bd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions apps/web/lib/passkey/stellar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -171,8 +171,9 @@ export const convertEcdsaSignatureAsnToCompact = (sig: Buffer) => {
if (bufToBigint(s) > (bufToBigint(q) - BigInt(1)) / BigInt(2)) {
signature64 = Buffer.from([
...r,
// @ts-expect-error
...Buffer.from(bigintToBuf(bufToBigint(q) - bufToBigint(s))),
...Buffer.from(
new Uint8Array(bigintToBuf(bufToBigint(q) - bufToBigint(s))),
),
])
} else {
signature64 = Buffer.from([...r, ...s])
Expand Down

0 comments on commit c6c88bd

Please sign in to comment.