reorganize

Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
William Casarin
2022-04-11 10:34:35 -07:00
parent 37b5309dd4
commit 28790ccfab
13 changed files with 444 additions and 332 deletions

33
damus/Nostr/Nostr.swift Normal file
View 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
}