big milestone!

This commit is contained in:
padreug 2025-02-11 14:43:08 +01:00
parent 2b35d6f39b
commit ac906ca6c9
28 changed files with 1332 additions and 16 deletions

37
src/types/nostr.ts Normal file
View file

@ -0,0 +1,37 @@
export interface NostrEvent {
kind: number
pubkey: string
created_at: number
tags: string[][]
content: string
id: string
sig: string
}
export interface NostrProfile {
pubkey: string
name?: string
picture?: string
about?: string
nip05?: string
}
export interface NostrRelayConfig {
url: string
read?: boolean
write?: boolean
}
export interface NostrAccount {
pubkey: string
privkey: string
relays: NostrRelayConfig[]
}
export interface DirectMessage {
id: string
pubkey: string
content: string
created_at: number
sent: boolean
}