1
0
mirror of git://jb55.com/damus synced 2024-09-16 02:03:45 +00:00

ndb: more id transition helpers

This commit is contained in:
William Casarin 2023-07-31 03:35:38 -07:00
parent ff20cc4767
commit a08d0a5a19

View File

@ -12,3 +12,18 @@ typealias FollowRef = ReferencedId
typealias Pubkey = String
typealias NoteId = String
typealias Privkey = String
extension String {
// Id constructors
init?(hex: String) {
self = hex
}
static var empty: String {
return ""
}
func hex() -> String {
return self
}
}