NIP05 Verification

Changelog-Added: Added NIP05 Verification
This commit is contained in:
William Casarin
2023-01-04 01:30:37 -08:00
parent 104205394f
commit 8785f31834
11 changed files with 149 additions and 51 deletions

View File

@@ -11,6 +11,11 @@ import UIKit
class Profiles {
var profiles: [String: TimestampedProfile] = [:]
var validated: [String: NIP05] = [:]
func is_validated(_ pk: String) -> NIP05? {
return validated[pk]
}
func add(id: String, profile: TimestampedProfile) {
profiles[id] = profile