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

Add support for full LND RPC API #20

Open
wants to merge 20 commits into
base: master
Choose a base branch
from

Conversation

yzernik
Copy link

@yzernik yzernik commented Jul 22, 2022

This PR adds support for all of the LND RPC API's (#15).

I also switched from using rustls to openssl for the TLS certificate handling, because of this issue.

I added another example program in the examples directory showing how to use the add_hold_invoice RPC method in invoicesrpc, as an example of a non-lnrpc RPC call.

This may change the MSRV, not sure if that is important. I have published this fork as a crate if anyone wants to use it already: https://crates.io/crates/tonic_openssl_lnd

* Update library to use openssl instead of rustls

* Include docstring in lib module
* Add all proto files to build

* Got new proto build partially working

* Put generated files into separate gen dir

* Add invoices client and example for add hold invoice rpc.

* Fix error message in hold invoice example

* Start adding all protos

* Got proto build working with either vendor folder or lnd repo path

* Remove proto output dir and generated dir

* Add functions to connect to all LND services

* Update docstring and readme example code

* Fix clippy lint in get channel
@yzernik yzernik changed the title Add support for all LND RPC services Add support for full LND RPC API Jul 22, 2022
@grunch
Copy link
Contributor

grunch commented Aug 4, 2022

I just tested it from https://crates.io/crates/tonic_openssl_lnd and it works great, I think this is big add, thank you @yzernik

@yzernik
Copy link
Author

yzernik commented Aug 6, 2022

@Kixunil I updated the PR to revert some of the unnecessary changes I made to the connect function signature, so the diff should be much smaller now.

@DanGould
Copy link
Contributor

What a monster PR Jonathan. This is awesome. I will use walletrpc. But it's apparently going to take some time to review

@DanGould DanGould mentioned this pull request Oct 19, 2022
@okjodom
Copy link

okjodom commented Dec 14, 2022

Appreciating the effort by @yzernik in this PR, and I'm interested in moving the work forward so I can take a dependency (experimental) on tonic_lnd for Fedimint work. I propose we:

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

Successfully merging this pull request may close these issues.

4 participants