refactor: replace temporary nip46 file with official nostr-tools (#583)

This commit is contained in:
hoppe
2025-09-21 22:44:50 +09:00
committed by GitHub
parent ec11d53fac
commit c4643b2d8b
6 changed files with 11 additions and 496 deletions

View File

@@ -2,7 +2,7 @@ import { Button } from '@/components/ui/button'
import { Input } from '@/components/ui/input'
import { DEFAULT_NOSTRCONNECT_RELAY } from '@/constants'
import { useNostr } from '@/providers/NostrProvider'
import { createNostrConnectURI, NostrConnectParams } from '@/providers/NostrProvider/nip46'
import { createNostrConnectURI, NostrConnectParams } from 'nostr-tools/nip46'
import { Check, Copy, Loader } from 'lucide-react'
import { generateSecretKey, getPublicKey } from 'nostr-tools'
import { useEffect, useLayoutEffect, useRef, useState } from 'react'