python: add binding for getLongId, getPublicKey

This commit is contained in:
Adrien Beraud committed 2025-08-30 19:27:57 -04:00
1 parent c139fc9791
commit bf9561c4af
2 files changed
+21

No files matched your search

+3
View File
@@ -125,12 +125,14 @@ cdef extern from "opendht/crypto.h" namespace "dht::crypto":
cdef cppclass PublicKey:
PublicKey()
InfoHash getId() const
PkId getLongId() const
Blob encrypt(Blob data) const
cdef cppclass Certificate:
Certificate()
Certificate(string pem)
InfoHash getId() const
PkId getLongId() const
string toString() const
string getName() const
void revoke(PrivateKey key, Certificate cert)
@@ -271,6 +273,7 @@ cdef extern from "opendht/dhtrunner.h" namespace "dht":
SockAddr bind6
InfoHash getId() const
shared_ptr[PublicKey] getPublicKey() const
InfoHash getNodeId() const
void bootstrap(const_char*, const_char*)
void bootstrap(const SockAddr&, DoneCallbackSimple done_cb)