···2424}
25252626/**
2727- * Derive the authority domain from an NSID.
2828- * e.g. "sh.tangled.feed.star" -> "tangled.sh"
2727+ * Derive the full authority domain from an NSID (all segments except the last, reversed).
2828+ * e.g. "sh.tangled.feed.star" -> "feed.tangled.sh"
2929 */
3030export function nsidToAuthority(nsid: string): string {
3131 const parts = nsid.split(".");