nip05.queryProfile() and test.

This commit is contained in:
fiatjaf
2022-12-20 18:36:49 -03:00
parent 482c5affd4
commit 3f1025f551
4 changed files with 43 additions and 5 deletions

View File

@@ -1,12 +1,12 @@
import * as secp256k1 from '@noble/secp256k1'
import {bech32} from 'bech32'
type ProfilePointer = {
export type ProfilePointer = {
pubkey: string // hex
relays?: string[]
}
type EventPointer = {
export type EventPointer = {
id: string // hex
relays?: string[]
}