big milestone!
This commit is contained in:
parent
2b35d6f39b
commit
ac906ca6c9
28 changed files with 1332 additions and 16 deletions
37
src/types/nostr.ts
Normal file
37
src/types/nostr.ts
Normal 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
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue