Secure storage and distribution of cryptographic keys in ATProto applications
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix: fix the incorrectly ordered NSIDs for the xrpc endpoints.

+4 -4
+2 -2
lexicons.json
··· 1 1 [ 2 2 { 3 3 "lexicon": 1, 4 - "id": "key.v0.roomy.muni.town", 4 + "id": "town.muni.roomy.v0.key", 5 5 "defs": { 6 6 "main": { 7 7 "type": "query", ··· 25 25 }, 26 26 { 27 27 "lexicon": 1, 28 - "id": "public.key.v0.roomy.muni.town", 28 + "id": "town.muni.roomy.v0.key.public", 29 29 "defs": { 30 30 "main": { 31 31 "type": "query",
+2 -2
main.ts
··· 92 92 type Ctx = Request & AuthCtx; 93 93 94 94 // Get a user's public key 95 - router.get("/xrpc/public.key.v0.roomy.muni.town", async ({ query }) => { 95 + router.get("/xrpc/town.muni.roomy.v0.key.public", async ({ query }) => { 96 96 let { did } = query; 97 97 if (typeof did !== "string" || !did) 98 98 return error(400, "DID query parameter required"); ··· 142 142 }); 143 143 144 144 // Get the user's personal keypair 145 - router.get("/xrpc/key.v0.roomy.muni.town", ({ did }: Ctx) => 145 + router.get("/xrpc/town.muni.roomy.v0.key", ({ did }: Ctx) => 146 146 getEncodedKeypair(did) 147 147 ); 148 148