Jeffrey Czyz
1ceb41e08b
Merge pull request #2023 from futurepaul/fallback-to-address
...
add `Fallback` getter that returns `Address`
2023-04-07 14:39:32 -05:00
Paul Miller
cf0a90b8c0
Fallback
: add Address
getter and use bitcoin types
2023-04-06 10:49:14 -05:00
Matt Corallo
a361be3544
Update crate versions to 0.0.114/invoice 0.22
2023-03-04 00:06:46 +00:00
Matt Corallo
f96ac1d341
Bump crate versions to 0.0.113/invoice 0.21
2022-12-15 22:15:55 +00:00
Matt Corallo
35154a15c3
Bump crate versions to 0.0.112/invoice 0.20
2022-10-24 18:53:58 +00:00
Wilmer Paulino
f4f1093edc
Bump workspace to rust edition 2018
...
Mostly motivated by the need of async/await.
2022-10-21 14:47:34 -07:00
Matt Corallo
2e7d924d9b
Downgrade hashbrown
to meet MSRV
...
`hashbrown` depends on `ahash` which depends on `once_cell`. Sadly,
in https://github.com/matklad/once_cell/issues/201 the `once_cell`
maintainer decided they didn't want to do the work of having an
MSRV policy for `once_cell`, making `ahash`, and thus `hashbrown`
require the latest compiler. I've reached out to `ahash` to suggest
they drop the dependency (as they could trivially work around not
having it), but until then we simply downgrade `hashbrown`.
`rust-bitcoin` also requires an older `hashbrown` so we're actually
reducing our total `no-std` code here anyway.
2022-09-22 15:06:42 +00:00
Jeffrey Czyz
ca76d0675b
Merge pull request #1694 from jurvis/jurvis/2022-08-move-scorer-from-router
...
Move `LockableScore` requirement away from `Router` trait
2022-09-16 14:01:38 -05:00
Jurvis Tan
c353c3ed7c
Move Scorer requirement away from Router trait
...
We do this to enable users to create routers that do not need a scorer.
This can be useful if they are running a node the delegates pathfinding.
* Move `Score` type parameterization from `InvoicePayer` and `Router` to
`DefaultRouter`
* Adds a new field, `scorer`, to `DefaultRouter`
* Move `AccountsForInFlightHtlcs` to `DefaultRouter`, which we
will use to wrap the new `scorer` field, so scoring only happens in
`DefaultRouter` explicitly.
* Add scoring related functions to `Router` trait that we used to call
directly from `InvoicePayer`.
* Instead of parameterizing `scorer` in `find_route`, we replace it with
inflight_map so `InvoicePayer` can pass on information about inflight
HTLCs to the router.
* Introduced a new tuple struct, InFlightHtlcs, that wraps functionality
for querying used liquidity.
2022-09-16 08:38:56 -07:00
Matt Corallo
f5473d5051
Bump versions to lightning* 0.0.111 and lightning-invoice 0.19
2022-09-12 22:34:27 +00:00
ok300
1cc2bc5145
Bump bitcoin_hashes to v0.11
2022-08-19 16:40:19 +02:00
Devrandom
7e05623bef
Update bitcoin crate to 0.29.0
2022-08-11 00:21:26 +02:00
Matt Corallo
e10dfe4fd0
Bump crate versions to 0.0.110/invoice 0.18
2022-07-26 22:01:09 +00:00
Matt Corallo
156cc77753
Bump crate versions to 0.0.109/invoice 0.17
2022-07-01 16:05:33 +00:00
NicolaLS
6c15de1399
add optional dependency on serde to implement serialize/deserialize for invoice
2022-06-20 11:49:30 +02:00
Matt Corallo
deac430f17
Update crate versions to 0.0.108/invoice 0.16
2022-06-10 14:53:23 +00:00
Jeffrey Czyz
b2e635f619
Bump crate versions to 0.0.107/invoice 0.15
2022-06-08 18:16:48 -05:00
Justin Moon
7b8f6843f5
Add 'repository' to lightning-invoice's Cargo.toml
2022-06-01 13:17:16 -05:00
Devrandom
28d33ff9e0
bitcoin crate 0.28.1
2022-05-05 18:04:42 +02:00
Jeffrey Czyz
de8bb8d261
Bump crate versions to 0.0.106/invoice 0.14
2022-04-03 08:05:08 -05:00
Matt Corallo
def0628332
Bump crate versions to 0.0.105/invoice 0.13
2022-03-01 00:43:24 +00:00
Jeffrey Czyz
62b1e01ad9
Generate docs with features for docs.rs
...
Enable generating docs using --all-features or --features="std" where
applicable. Additionally, use doc_auto_cfg to tag items requiring a
feature.
https://doc.rust-lang.org/nightly/rustdoc/unstable-features.html#doc_auto_cfg-automatically-generate-doccfg
This requires building with nightly, which is what is used by docs.rs.
https://docs.rs/about/builds
To test locally, use:
RUSTDOCFLAGS="--cfg docsrs" cargo +nightly doc ...
2022-02-18 15:38:31 -06:00
dependabot[bot]
f39fa69b68
Update hex requirement from 0.3 to 0.4
...
Updates the requirements on [hex](https://github.com/KokaKiwi/rust-hex ) to permit the latest version.
- [Release notes](https://github.com/KokaKiwi/rust-hex/releases )
- [Commits](https://github.com/KokaKiwi/rust-hex/compare/v0.3...v0.4.3 )
---
updated-dependencies:
- dependency-name: hex
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-01-18 22:05:49 +00:00
Devrandom
1a779ce658
Do not turn on bech32/std by default for lightning-invoice
2022-01-09 12:26:14 +01:00
Devrandom
01915810d4
Adapt lightning-invoice to no_std
2022-01-05 23:18:03 +01:00
Matt Corallo
ec86e2a1a7
Bump versions to 0.0.104/invoice 0.12
2021-12-17 21:34:19 +00:00
Matt Corallo
2b837bb272
Bump crate versions to 0.0.103/invoice 0.11
2021-11-03 02:20:51 +00:00
Matt Corallo
f2e47e0db2
Bump crate versions to 0.0.102 and lightning-invoice 0.10
2021-10-18 18:32:36 +00:00
Matt Corallo
43fe3d55f1
Bump Crate versions to 0.0.101 (and invoice to 0.9)
2021-09-23 18:22:59 +00:00
Matt Corallo
a906c498fb
Use new BOLT 11 test vectors with payment_secrets and feature flags
...
This pulls the BOLT 11 test vectors from
https://github.com/lightningnetwork/lightning-rfc/pull/898 ,
tweaking our tests to properly handle them.
2021-08-31 21:29:51 +00:00
Matt Corallo
11f78798d3
Update versions to 0.0.100 and lightning-invoice to 0.8
2021-08-17 18:55:07 +00:00
Matt Corallo
3f229052ea
Bump dependencies to bitcoin 0.27 and bech32 0.8
2021-07-31 18:29:07 +00:00
Matt Corallo
c9a8b26d58
Bump most crate versions to 0.0.99 and lightning-invoice to 0.7.0
2021-07-09 16:34:46 +00:00
Matt Corallo
b786adff5b
Drop the cdylib export of lightning-invoice
...
There are ~zero functions in lightning-invoice that are materially
callable from C, so there isn't any reason to tag it as a cdylib
(and make rustc build it as such). Instead, we have C bindings now.
2021-06-24 04:32:25 +00:00
Matt Corallo
9c9081dfcb
Bump versions to 0.0.98, lightning-invoice to 0.6.0
2021-06-08 21:08:29 +00:00
Matt Corallo
f551d5946b
Bump versions to 0.0.14, lightning-invoice 0.5
2021-05-01 00:43:15 +00:00
Valentine Wallace
4c7be7e137
Add utility to create an invoice using the ChannelManager
...
This also allows the ChannelManager to track information for inbound payments
to check the PaymentSecret on receive.
2021-04-29 19:13:36 -04:00
Valentine Wallace
21cb8db1b6
invoice: swap RouteHop for RouteHint
...
To prevent naming conflicts in bindings
2021-04-20 16:26:52 -04:00
Valentine Wallace
741f118da4
Clean up lightning-invoice Cargo.toml and README
2021-04-09 10:08:27 -04:00
Sebastian
f00bb10a82
Pure import of lightning-invoice crate
...
Original repo: https://github.com/rust-bitcoin/rust-lightning-invoice
2021-04-09 10:08:27 -04:00