diff options
Diffstat (limited to 'src/nostr.h')
| -rw-r--r-- | src/nostr.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/nostr.h b/src/nostr.h index 41e59df..b878db9 100644 --- a/src/nostr.h +++ b/src/nostr.h | |||
| @@ -32,6 +32,12 @@ std::string BtfActiveRelay(); | |||
| 32 | // Record the relay this node just registered its service at (thread-safe). | 32 | // Record the relay this node just registered its service at (thread-safe). |
| 33 | void BtfSetActiveRelay(const std::string& relay); | 33 | void BtfSetActiveRelay(const std::string& relay); |
| 34 | 34 | ||
| 35 | // If set (via /announcerelay=host:port), this node announces that relay on | ||
| 36 | // Nostr so other nodes discover it automatically -- no manual seed-list edit. | ||
| 37 | extern std::string strBtfAnnounceRelay; | ||
| 38 | // Every relay to try: curated seeds + relays discovered from Nostr announcements. | ||
| 39 | std::vector<std::string> BtfAllRelays(); | ||
| 40 | |||
| 35 | // Copy this node's .btf identity (lazily loading or generating it): the x-only | 41 | // Copy this node's .btf identity (lazily loading or generating it): the x-only |
| 36 | // pubkey (= the .btf address) and the x25519 secret for the end-to-end channel. | 42 | // pubkey (= the .btf address) and the x25519 secret for the end-to-end channel. |
| 37 | bool BtfGetIdentity(unsigned char pubkey[32], unsigned char enc_sk[32]); | 43 | bool BtfGetIdentity(unsigned char pubkey[32], unsigned char enc_sk[32]); |