Skip to content

Commit f152689

Browse files
authored
Merge pull request #3283 from TheBlueMatt/2024-07-human-readable-names-resolution
Support paying directly to Human Readable Names using bLIP 32
2 parents b0bd437 + cbdb8cb commit f152689

17 files changed

+935
-49
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,6 @@ lightning/net_graph-*.bin
1212
lightning-rapid-gossip-sync/res/full_graph.lngossip
1313
lightning-custom-message/target
1414
lightning-transaction-sync/target
15+
lightning-dns-resolver/target
1516
no-std-check/target
1617
msrv-no-dev-deps-check/target

Cargo.toml

+1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ members = [
1515
"lightning-custom-message",
1616
"lightning-transaction-sync",
1717
"lightning-macros",
18+
"lightning-dns-resolver",
1819
"possiblyrandom",
1920
]
2021

ci/ci-tests.sh

+1-4
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ WORKSPACE_MEMBERS=(
5454
lightning-custom-message
5555
lightning-transaction-sync
5656
lightning-macros
57+
lightning-dns-resolver
5758
possiblyrandom
5859
)
5960

@@ -64,10 +65,6 @@ for DIR in "${WORKSPACE_MEMBERS[@]}"; do
6465
cargo doc -p "$DIR" --document-private-items
6566
done
6667

67-
echo -e "\n\nChecking and testing lightning crate with dnssec feature"
68-
cargo test -p lightning --verbose --color always --features dnssec
69-
cargo check -p lightning --verbose --color always --features dnssec
70-
7168
echo -e "\n\nChecking and testing Block Sync Clients with features"
7269

7370
cargo test -p lightning-block-sync --verbose --color always --features rest-client

fuzz/src/invoice_request_deser.rs

+1
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ fn build_response<T: secp256k1::Signing + secp256k1::Verification>(
8989
payer_note_truncated: invoice_request
9090
.payer_note()
9191
.map(|s| UntrustedString(s.to_string())),
92+
human_readable_name: None,
9293
},
9394
});
9495
let payee_tlvs = ReceiveTlvs {

lightning-dns-resolver/Cargo.toml

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
[package]
2+
name = "lightning-dns-resolver"
3+
version = "0.1.0"
4+
authors = ["Matt Corallo"]
5+
license = "MIT OR Apache-2.0"
6+
repository = "https://github.com/lightningdevkit/rust-lightning/"
7+
description = "A crate which implements DNSSEC resolution for lightning clients over bLIP 32 using `tokio` and the `dnssec-prover` crate."
8+
edition = "2021"
9+
10+
[dependencies]
11+
lightning = { version = "0.0.124", path = "../lightning", default-features = false }
12+
lightning-types = { version = "0.1", path = "../lightning-types", default-features = false }
13+
dnssec-prover = { version = "0.6", default-features = false, features = [ "std", "tokio" ] }
14+
tokio = { version = "1.0", default-features = false, features = ["rt"] }
15+
16+
[dev-dependencies]
17+
bitcoin = { version = "0.32" }
18+
tokio = { version = "1.0", default-features = false, features = ["macros", "time"] }
19+
lightning = { version = "0.0.124", path = "../lightning", features = ["dnssec", "_test_utils"] }

0 commit comments

Comments
 (0)