migrate to jsr dependencies for @noble and @scure.

This commit is contained in:
fiatjaf
2026-01-27 23:54:50 -03:00
parent 3588d30044
commit 42c9c7554d
6 changed files with 10 additions and 9 deletions

View File

@@ -22,7 +22,7 @@ export function encrypt(
}
export function decrypt(ncryptsec: string, password: string): Uint8Array {
let { prefix, words } = bech32.decode(ncryptsec, Bech32MaxSize)
let { prefix, words } = bech32.decode(ncryptsec as `${string}1${string}`, Bech32MaxSize)
if (prefix !== 'ncryptsec') {
throw new Error(`invalid prefix ${prefix}, expected 'ncryptsec'`)
}