mirror of
https://github.com/nbd-wtf/nostr-tools.git
synced 2025-12-12 01:58:51 +00:00
nip19/nip49: remove nrelay and move bech32 string guard methods from core to nip19.
This commit is contained in:
3
nip49.ts
3
nip49.ts
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user