upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/src/nostr.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/nostr.h')
-rw-r--r--src/nostr.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/nostr.h b/src/nostr.h
index 04149e3..b5eb5e3 100644
--- a/src/nostr.h
+++ b/src/nostr.h
@@ -82,6 +82,14 @@ bool BtfGetIdentity(unsigned char pubkey[32], unsigned char enc_sk[32]);
82// This node's printable .btf address, or "" if the identity failed to load. 82// This node's printable .btf address, or "" if the identity failed to load.
83std::string BtfLocalAddress(); 83std::string BtfLocalAddress();
84 84
85// This node's own signed descriptor, ready to hand to a peer over the wire.
86// "" until ThreadBtfAccept has registered at a rendezvous.
87std::string BtfLocalDescriptor();
88
89// The shared secp256k1 context, for btf::VerifyDescriptor (which takes it as
90// void* to keep headers free of secp). NULL if the identity failed to load.
91void* BtfSecpContext();
92
85// Resolve a .btf address via the public discovery relays: fetch the owner's 93// Resolve a .btf address via the public discovery relays: fetch the owner's
86// self-certified descriptor and return its meeting node ("host:port") and 94// self-certified descriptor and return its meeting node ("host:port") and
87// x25519 public key for the end-to-end channel. 95// x25519 public key for the end-to-end channel.