working rss feed to nostr publish

This commit is contained in:
2023-11-24 00:43:28 -05:00
parent 06edcb57ae
commit 88d2f9cfec
8396 changed files with 783105 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
// nip42.ts
var authenticate = async ({
challenge,
relay,
sign
}) => {
const e = {
kind: 22242 /* ClientAuth */,
created_at: Math.floor(Date.now() / 1e3),
tags: [
["relay", relay.url],
["challenge", challenge]
],
content: ""
};
return relay.auth(await sign(e));
};
export {
authenticate
};