Commit graph

23 commits

Author SHA1 Message Date
Orbital
3b75dfb4e5
chore: Release lndk version 0.2.0 2024-09-02 11:31:36 -05:00
Orbital
f94892cb67
main: handle sigterm/sigint signals 2024-08-27 23:37:27 -05:00
Duncan Dean
8fc2c325ff
Run cargo update to resolve audit failures 2024-07-19 13:06:06 +02:00
jbesraa
f8904ff385
Upgrade rust-lightning to 0.0.123
Among the changes from previous LDK version:
1. No need to pass `Secp256k1Error` to `SignError`
2. `OnionMessenger` takes extra argument which should implement `NL`
referring to `NodeIdLookUp` trait. This required adding new struct
`LndkNodeIdLookUp` to implement the above trait.
3. `path.introduction_node` is replaced in favor of `path.introduction_node()`
4. `OfferBuilder` signature change. `OfferBuilder::new` takes now pubkey  instead of disc.
5.  Replace `sign_closure` with `LndkSigner` struct and implemented `SignInvoiceRequestFn` trait for it
2024-07-09 10:51:22 +03:00
Orbital
509453ce0f
server: require TLS for interacting with server
This PR autogenerates TLS credentials in LNDK's data dir at ~/.LNDK and
requires TLS to be used when connecting to the gRPC server.

Some of this code took inspiration from CLN and TEOS's gRPC servers, so credit
where it's due.
2024-06-18 23:33:32 -05:00
Orbital
d9ef3dbae4
multi: setup grpc server 2024-05-29 17:04:47 -05:00
Orbital
9735c2c95f
multi: add option to pass cert/macaroon in directly to lndk 2024-05-21 14:23:21 -05:00
Orbital
16847c03ab
multi: Upgrade to ldk v20
We update to ldk v20 for the latest blinded route updates, namely being
able to create a blinded route that's more than one hop. On top of that we use
a custom versoin with a small change, which we need in order to send an onion
message along a specified path for LNDK's integration tests:
lightningdevkit/rust-lightning#2868
2024-03-06 15:27:45 -06:00
Orbital
8bfb006d20
itests: bump ldk-sample to newer version
We bump ldk-sample to a version that can open channels and broadcasts
the node announcement at a more frequent interval so we can pull ldk's
address from the node graph in our integration tests.
2024-03-06 15:21:01 -06:00
Orbital
53640aa657
Pin rust-lightning to a custom version
Bumps rust-lightning to a custom version that allows us to sign the invoice
request's tagged hash.
2024-03-06 15:20:56 -06:00
Carla Kirk-Cohen
a4ad1ccb22
multi: propagate shutdown signal from caller to lndk
To allow external callers to shutdown lndk, we provide a shutdown
trigger and listener to the onion messenger, replacing the single use
channels that we previously used. This is useful for itests, so that
we can cleanly shut down and for callers of the library to manage
execution.
2024-03-06 15:17:55 -06:00
Orbital
41a226c067
Add invoice request BOLT 12 functionality 2023-11-14 17:25:58 -06:00
Orbital
97de626cf5
Add a basic cli binary 2023-11-14 16:43:21 -06:00
Orbital
b1ecfad187
Upgrade to LDK 0.0.18 2023-11-13 13:38:17 -06:00
Orbital
a46a9016cc
tests: test that lndk forwards onion messages 2023-11-08 13:02:48 -06:00
Orbital
7d79e064d2
main: replace simple logger with log4rs 2023-11-08 13:02:48 -06:00
Orbital
c51022cad6
tests: add lnd to integration tests 2023-10-31 23:10:54 -05:00
Orbital
ba1f1092fe
tests: clean up directory structure 2023-10-31 23:10:53 -05:00
Orbital
3b9539ab5d
tests: test that ldk node can send onion message 2023-09-13 16:00:50 -05:00
Orbital
0af0e34659
tests: add bitcoind node setup for testing 2023-09-13 16:00:50 -05:00
Orbital
2f53cd2526
Upgrade ldk to 0.0.116 2023-08-28 18:01:14 -05:00
Carla Kirk-Cohen
42273d6bb4
cargo: set version to 0.0.1 2023-05-18 08:56:42 -04:00
Duncan Dean
2b90ca8d1a
Add back the Cargo.lock file since we're an application
See https://doc.rust-lang.org/cargo/faq.html#why-do-binaries-have-cargolock-in-version-control-but-not-libraries
for more information.
2023-05-18 14:10:01 +02:00