nskeyAdvertisementKey function
The at-key an nskey's public half is published under.
The double underscore is what makes eager publication both safe and
workable. Safe: an unauthenticated scan ignores showhidden, and a
public:__ key is revealed only by showhidden, so an outsider cannot
enumerate which namespaces — which apps — an atSign uses, while plookup
still serves the key to anyone who knows the namespace. Workable: a single
underscore key is hidden from every scan but is written with commit id -1,
so it sits outside the commit log and sync can never push it.
Implementation
AtKey nskeyAdvertisementKey(String owner, String namespace) => AtKey()
..key = nskeyAdvertisementRecordName
..namespace = namespace
..sharedBy = owner
..metadata = (Metadata()..isPublic = true);