Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API for use from other languages? #429

Open
KrishnaPG opened this issue Oct 24, 2019 · 1 comment
Open

API for use from other languages? #429

KrishnaPG opened this issue Oct 24, 2019 · 1 comment

Comments

@KrishnaPG
Copy link

Wondering how to make this work with other languages. Is there an API to consume this library from other languages, such as JS? Something like REST/HTTP or Websocket messaging / gRPC?

@afck
Copy link
Collaborator

afck commented Oct 24, 2019

There's no API for it, but it should be straightforward to write one.
Since hbbft only implements the abstract protocol and is meant to be used as a library, the best way to do it might be via FFI: You could write (in Rust) a wrapper that exposes a C-compatible API, which can then be used with any language's FFI features.
But writing a small Rust application around it that communicates via REST or gRPC with other components could work, too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants