hyperledger / besu-native

Apache License 2.0
12 stars 34 forks source link

Error handling and init no-copy in JNI #158

Closed thomas-quadratic closed 4 months ago

thomas-quadratic commented 4 months ago

This PR has two purposes:

  1. Error handling: as much as possible, pub extern fn should not panic. We catch errors and throw exceptions in the JVM.
  2. No-copy: as much as possible, we should not have to copy data before passing to the FFI.

This is still a draft PR for the moment, as I am making sure tests are in sync.