url_set_for_ndk 0.2.0
url_set_for_ndk: ^0.2.0 copied to clipboard
Relay and Blossom server sets for the ndk package, described rather than listed so they can be persisted offline and resolved later from the NIP-65, NIP-17, NIP-37 and BUD-03 lists accounts publish.
0.2.0 #
ndkUrlListFntakes aUrlListCheckStoreto remember when each list was last checked. A list checked less thanmaxAgeago resolves from NDK's cache without a query, and a list checked before keeps resolving while no relay answers.MemoryUrlListCheckStoreships with the package.ndkUrlListFn(offline: true)resolves from NDK's cache and the checks alone, without ever querying a relay.
0.1.0 #
- Initial release, extracted from
RelaySetinbroadcast_queue_shim_for_ndk0.7.0 and renamed toUrlSet. Stored maps keep the same format. UrlSet.inboxandUrlSet.dmtake one pubkey, like every other leaf. UseUrlSet.unionfor several. Stored maps with apubkeyslist still load, as a union of one leaf per pubkey.- Add
UrlSet.blossom(pubkey)for BUD-03 Blossom server lists (kind 10063), looked up on the owner's NIP-65 write relays. - Add
UrlSet.kinds, so a consumer can reject leaves it cannot use. - Export
resolveUrlSetand itsUrlResolutionresult.