Skip to content

Commit

Permalink
Add NIP-05
Browse files Browse the repository at this point in the history
  • Loading branch information
SnowCait authored and penpenpng committed Oct 28, 2024
1 parent 88fc988 commit d03f85e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -616,6 +616,13 @@ export type MachineReadablePrefixedMessage =
/** @deprecated Renamed. Use `MachineReadablePrefixedMessage` instead */
export type OkMessageAnnotation = MachineReadablePrefixedMessage;

export namespace Nip05 {
export interface NostrAddress {
names: Record<string, string>;
relays?: Record<string, string[]>;
}
}

export namespace Nip07 {
export interface Nostr {
getPublicKey: () => Promise<string>;
Expand Down

0 comments on commit d03f85e

Please sign in to comment.