Skip to content

Commit

Permalink
Merge pull request #3283 from TheBlueMatt/2024-07-human-readable-name…
Browse files Browse the repository at this point in the history
…s-resolution

Support paying directly to Human Readable Names using bLIP 32
  • Loading branch information
tnull authored Nov 12, 2024
2 parents b0bd437 + cbdb8cb commit f152689
Show file tree
Hide file tree
Showing 17 changed files with 935 additions and 49 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,6 @@ lightning/net_graph-*.bin
lightning-rapid-gossip-sync/res/full_graph.lngossip
lightning-custom-message/target
lightning-transaction-sync/target
lightning-dns-resolver/target
no-std-check/target
msrv-no-dev-deps-check/target
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ members = [
"lightning-custom-message",
"lightning-transaction-sync",
"lightning-macros",
"lightning-dns-resolver",
"possiblyrandom",
]

Expand Down
5 changes: 1 addition & 4 deletions ci/ci-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ WORKSPACE_MEMBERS=(
lightning-custom-message
lightning-transaction-sync
lightning-macros
lightning-dns-resolver
possiblyrandom
)

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

echo -e "\n\nChecking and testing lightning crate with dnssec feature"
cargo test -p lightning --verbose --color always --features dnssec
cargo check -p lightning --verbose --color always --features dnssec

echo -e "\n\nChecking and testing Block Sync Clients with features"

cargo test -p lightning-block-sync --verbose --color always --features rest-client
Expand Down
1 change: 1 addition & 0 deletions fuzz/src/invoice_request_deser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ fn build_response<T: secp256k1::Signing + secp256k1::Verification>(
payer_note_truncated: invoice_request
.payer_note()
.map(|s| UntrustedString(s.to_string())),
human_readable_name: None,
},
});
let payee_tlvs = ReceiveTlvs {
Expand Down
19 changes: 19 additions & 0 deletions lightning-dns-resolver/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
[package]
name = "lightning-dns-resolver"
version = "0.1.0"
authors = ["Matt Corallo"]
license = "MIT OR Apache-2.0"
repository = "/~https://github.com/lightningdevkit/rust-lightning/"
description = "A crate which implements DNSSEC resolution for lightning clients over bLIP 32 using `tokio` and the `dnssec-prover` crate."
edition = "2021"

[dependencies]
lightning = { version = "0.0.124", path = "../lightning", default-features = false }
lightning-types = { version = "0.1", path = "../lightning-types", default-features = false }
dnssec-prover = { version = "0.6", default-features = false, features = [ "std", "tokio" ] }
tokio = { version = "1.0", default-features = false, features = ["rt"] }

[dev-dependencies]
bitcoin = { version = "0.32" }
tokio = { version = "1.0", default-features = false, features = ["macros", "time"] }
lightning = { version = "0.0.124", path = "../lightning", features = ["dnssec", "_test_utils"] }
Loading

0 comments on commit f152689

Please sign in to comment.