Commit Graph

50 Commits

Author SHA1 Message Date
jangko 8486c1834c fixes #558, use distinct uint for ChainId and NetworkId to prevent confusion 2021-02-14 11:01:27 +07:00
jangko 45bbf65470
fix libnimbus compilation error due to nim-eth changes 2020-07-20 17:03:20 +07:00
jangko 2ef8179ab0
fix libnimbus compilation errors related to eth/keys changes 2020-06-24 20:33:08 +07:00
kdeme 55fb4987d7
Bump chronicles + adjust some raises in libnimbus 2020-04-21 14:17:08 +02:00
Jacek Sieka 4ade5797ee
rlp: don't use ranges / experimental features (#495) 2020-04-20 20:12:44 +02:00
Jacek Sieka c1899711c9
keep up with nim-eth (#483)
* keep up with nim-eth
2020-04-07 11:53:50 +02:00
Jacek Sieka 1d472cf090
Eth keys (#482)
* bump nim-eth, fix deprecated calls
2020-04-05 15:12:48 +02:00
Ștefan Talpalaru 06e0eb80e6
lightweight stack traces
Also converted the top-level nim.cfg into a config.nims, in the process.
2020-02-11 04:33:21 +01:00
kdeme 4ec126afaf
More cosmetic changes 2020-01-23 15:40:41 +01:00
kdeme d56655d278 Move WhisperKeys to KeyStorage 2020-01-23 12:39:36 +02:00
kdeme 8c3595ff94 Bump vendor/nim-eth and fix changes 2020-01-23 12:39:36 +02:00
kdeme 8a3decd977
Add dynlib pragma to be useful as dynamic library on Windows 2019-11-29 11:08:45 +01:00
kdeme 9472cf31a9
Remove -linkshared & update Nix file to be consistent 2019-11-27 11:06:58 +01:00
kdeme 83b956c042 Remove subscribe without handler as we don't provide another mechanism for retrieval of the messages 2019-11-19 11:02:00 +00:00
kdeme 187bd22cc2 Improve some freeing in the examples 2019-11-19 11:02:00 +00:00
kdeme d781a25f30 Move output parameters to end and add defines for buffer sizes 2019-11-19 11:02:00 +00:00
kdeme 278e230761 Fix memleaks in old example 2019-11-19 11:02:00 +00:00
kdeme 8d426de44f Change ptr to var where possible 2019-11-19 11:02:00 +00:00
kdeme 16e606b274 Change from returning cstring to passing 32 raw byte array as parameter 2019-11-19 11:02:00 +00:00
kdeme 45e0fcba87 Change to fixed size arrays as they are 2019-11-19 11:02:00 +00:00
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