33
damus/Nostr/Nostr.swift
Normal file
33
damus/Nostr/Nostr.swift
Normal file
@@ -0,0 +1,33 @@
|
||||
//
|
||||
// Nostr.swift
|
||||
// damus
|
||||
//
|
||||
// Created by William Casarin on 2022-04-07.
|
||||
//
|
||||
|
||||
import Foundation
|
||||
|
||||
|
||||
struct Profile: Decodable {
|
||||
let name: String?
|
||||
let about: String?
|
||||
let picture: String?
|
||||
}
|
||||
|
||||
enum NostrKind: Int {
|
||||
case metadata = 0
|
||||
case text = 1
|
||||
}
|
||||
|
||||
enum NostrTag {
|
||||
case other_event(OtherEvent)
|
||||
case key_event(KeyEvent)
|
||||
}
|
||||
|
||||
struct NostrSubscription {
|
||||
let sub_id: String
|
||||
let filter: NostrFilter
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user