nip19/nip49: remove nrelay and move bech32 string guard methods from core to nip19.

This commit is contained in:
fiatjaf
2024-09-09 14:20:12 -03:00
parent ee76d69b4b
commit 45b25c5bf5
6 changed files with 22 additions and 52 deletions

View File

@@ -1,9 +1,8 @@
import { scrypt } from '@noble/hashes/scrypt'
import { xchacha20poly1305 } from '@noble/ciphers/chacha'
import { concatBytes, randomBytes } from '@noble/hashes/utils'
import { Bech32MaxSize, encodeBytes } from './nip19.ts'
import { Bech32MaxSize, Ncryptsec, encodeBytes } from './nip19.ts'
import { bech32 } from '@scure/base'
import { Ncryptsec } from './core.ts'
export function encrypt(
sec: Uint8Array,