Commit Graph

30 Commits

Author SHA1 Message Date
kdeme e8aab6ea5b Some general clean-up 2019-11-19 11:02:00 +00:00
kdeme 2fc8f759db Update readme 2019-11-19 11:02:00 +00:00
kdeme 3d7cde60e0 Pass serialized form for source and recipient public key 2019-11-19 11:02:00 +00:00
kdeme e7129d364e Fix invalid adding of pubkey in nimbus_add_keypair 2019-11-19 11:02:00 +00:00
kdeme cf725062e9 Using raises pragma with logging really makes no sense currently but okay... 2019-11-19 11:02:00 +00:00
kdeme 0f299842e1 Add switching between Status beta and staging fleet 2019-11-19 11:02:00 +00:00
kdeme e4ca4b7d31 Use pointers types for source and recipientPublicKey 2019-11-19 11:02:00 +00:00
kdeme d07ecbbf68 Testing out possible exception with raises pragma 2019-11-19 11:02:00 +00:00
kdeme 1f5fcf756b Additional checks 2019-11-19 11:02:00 +00:00
kdeme 9e7e51b5b4 Add private key parameter for nimbus_start() + additional checks 2019-11-19 11:02:00 +00:00
kdeme 7ac8b98ce9 Add extra options to nimbus_start() 2019-11-19 11:02:00 +00:00
kdeme a8ca7d1d7f Change post payload and padding to ptr + size and some small improvements 2019-11-19 11:02:00 +00:00
kdeme e841c08b23 Some documentation comments update on the nimbus wrapper 2019-11-19 11:02:00 +00:00
kdeme 11a24885a5 Remove the ForeightThreadGC as the teardown was used faulty + lets make it explicit that this should be run only on 1 thread 2019-11-19 11:02:00 +00:00
kdeme e5eeecb3c9 Remove the foreighThreadGc pragma for now as it is very wrong 2019-11-19 11:02:00 +00:00
kdeme ffeac30da7 Fix setting of the bloom filter of a filter 2019-11-19 11:02:00 +00:00
kdeme 775ce5ca89 Update README.md with usage notes 2019-11-19 11:02:00 +00:00
kdeme cfdab7614d Allow to provide user data for the filter subscribe callback 2019-11-19 11:02:00 +00:00
kdeme f0a5d8d83c Add setting of bloomfilter to topics subscribed to 2019-11-19 11:02:00 +00:00
kdeme fd71a13142 Add calls to get bloom filter and minimum PoW 2019-11-19 11:02:00 +00:00
kdeme 119a53d298 Improving whisper post and subscribe 2019-11-19 11:02:00 +00:00
kdeme 24850f8b96 Add asymmetric and symmetric key API for whisper 2019-11-19 11:02:00 +00:00
kdeme e51474f393 improvements and clean-up 2019-11-19 11:02:00 +00:00
kdeme 23baeaa15d Trying out some Whisper RPC alike API 2019-11-19 11:02:00 +00:00
kdeme ef540fdb14 Make go wrapper_example subscribe work with c gateway function 2019-11-19 11:02:00 +00:00
kdeme 1e716a960a Refactor bootnodes and whispernodes 2019-08-16 08:51:40 +02:00
Ștefan Talpalaru f6121c10f0
various changes:
- re-enable Nim's cache globally
- add a new "nimcache" subdir for the libraries
- make sure Go doesn't try to link libnimbus.a in the dynamically linked
  wrapper example
- always delete the static archive before recreating it
- rename wrapper.nim/.h to libnimbus.nim/.h
- better hygiene in libnimbus.h (include guards and C++ support)
- remove MainnetBootnodes copy, since we do include "config.nim" after all
2019-08-02 18:59:47 +02:00
Ștefan Talpalaru f63014bddb
libnimbus.a and statically linked wrapper examples 2019-08-02 18:13:50 +02:00
Ștefan Talpalaru c75e491d76
more renaming 2019-08-02 18:13:50 +02:00
Ștefan Talpalaru 1d7e14dc1b
refactor the C and Go wrapper build system
- moved "nimbus/api" to "wrappers"
- renamed files
- replaced the build scripts with Makefile targets
- set the rpath relative to the test binary's location so it can look
  for libnimbus.so there at runtime
- libnimbus.so.0 required on Linux, apparently
- compiled all the Nimbus code with `--app:lib`, not just one file (this
  required skipping a proc in "nimbus/config.nim" because it uses an API
  that's unavailable in libraries)
- removed static linking from the Go wrapper. It doesn't make sense at a
  global level, when using a shared Nimbus library. To selectively link
  static libraries, we should probably be specifying them as *.a. I did
  build a static libnimbus.a, as a test, but it insisted on dlopen-ing a
  shared version of itself which looked too ugly to continue.
2019-08-02 18:13:47 +02:00