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
+13
View File
@@ -0,0 +1,13 @@
// keys.ts
import { schnorr } from "@noble/curves/secp256k1";
import { bytesToHex } from "@noble/hashes/utils";
function generatePrivateKey() {
return bytesToHex(schnorr.utils.randomPrivateKey());
}
function getPublicKey(privateKey) {
return bytesToHex(schnorr.getPublicKey(privateKey));
}
export {
generatePrivateKey,
getPublicKey
};