Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
66 changes: 11 additions & 55 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 18 additions & 0 deletions libs/gl-client/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,23 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),

## Unreleased

## [0.4.1] - 2026-04-30

### Added

- New `lnurl` module with full LNURL protocol support (LUD-01/03/06/09/10/16)
- `lnurl::pay::fetch_invoice()` free function for LNURL-pay invoice retrieval
- `lnurl::withdraw::build_withdraw_callback_url()` free function for LNURL-withdraw
- LNURL model types: `LnUrlPayRequestData`, `LnUrlWithdrawRequestData`, `LnUrlHttpClient` trait, `LnUrlHttpClearnetClient`
- Lightning Address parsing via `lnurl::pay::parse_lightning_address()`
- LNURL bech32 decoding via `lnurl::utils::parse_lnurl()`

### Fixed

- Use `webpki-roots` for LNURL TLS to support cross-platform builds (no dependency on system CA store)
- Hardened LNURL-pay against real-world service quirks
- Case-insensitive comparison for BOLT11 invoice strings in signer

## [0.4.0] - 2026-04-02

### Added
Expand Down Expand Up @@ -38,4 +55,5 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
- Addressed a deprecation warning in gl-testing regarding `PROTOCOL_TLS` being renamed to `PROTOCOL_TLS_SERVER`
- Fixed initial VLS state not being persisted to the tower (nodelet)

[0.4.1]: https://github.com/Blockstream/greenlight/compare/gl-client-v0.4.0...gl-client-v0.4.1
[0.4.0]: https://github.com/Blockstream/greenlight/compare/gl-client-0.3.2...gl-client-v0.4.0
2 changes: 1 addition & 1 deletion libs/gl-client/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "gl-client"
version = "0.4.0"
version = "0.4.1"
edition = "2021"
authors = [
"The Greenlight Team"
Expand Down
2 changes: 1 addition & 1 deletion libs/gl-sdk-android/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ kotlin.mpp.enableCInteropCommonization=true
android.builtInKotlin=false
android.newDsl=false

libraryVersion=0.2.0
libraryVersion=0.2.1
23 changes: 23 additions & 0 deletions libs/gl-sdk-cli/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Changelog

All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## Unreleased

## [0.1.1] - 2026-04-30

### Changed

- Updated gl-sdk dependency to 0.2.1 (builder-style Node creation, LNURL support, diagnostic data)

## [0.1.0] - 2026-04-02

### Added

- Initial release with CLI wrapper for gl-sdk
- `glsdk` binary with subcommands for node management

[0.1.1]: https://github.com/Blockstream/greenlight/compare/gl-sdk-cli-v0.1.0...gl-sdk-cli-v0.1.1
[0.1.0]: https://github.com/Blockstream/greenlight/releases/tag/gl-sdk-cli-v0.1.0
2 changes: 1 addition & 1 deletion libs/gl-sdk-cli/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "gl-sdk-cli"
version = "0.1.0"
version = "0.1.1"
edition = "2021"
description = "CLI wrapper for gl-sdk"

Expand Down
2 changes: 1 addition & 1 deletion libs/gl-sdk-napi/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "gl-sdk-node"
version = "0.1.0"
version = "0.1.1"
edition = "2021"
license = "MIT"

Expand Down
2 changes: 1 addition & 1 deletion libs/gl-sdk-napi/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@greenlightcln/glsdk",
"version": "0.1.0",
"version": "0.1.1",
"description": "Node.js bindings for Blockstream Greenlight SDK",
"author": "The Greenlight Team",
"main": "index.js",
Expand Down
2 changes: 1 addition & 1 deletion libs/gl-sdk-swift
13 changes: 13 additions & 0 deletions libs/gl-sdk/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,29 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),

## Unreleased

## [0.2.1] - 2026-04-30

### Added

- `parse_input()` — synchronous, offline classification of user input. Recognises BOLT11 invoices, node IDs, LNURL bech32 strings (decoded to their underlying URL), and Lightning Addresses (returned as the unparsed `user@host` form). LNURL inputs are classified but not fetched; the cost contract is "no HTTP, no I/O." Use this for clipboard validation, invoice sanity checks, and any other path that must not touch the network.
- `resolve_input()` — asynchronous, network-touching classification. Internally calls `parse_input()`, then for the LNURL / Lightning Address branches performs the HTTP GET to the service endpoint and returns typed pay or withdraw request data. BOLT11 invoices and node IDs pass through without I/O. Use this for the QR-scan flow that should proceed straight to a pay/withdraw screen.
- `ParsedInput` enum (offline result): `Bolt11`, `NodeId`, `LnUrl { url }`, `LnUrlAddress { address }`.
- `ResolvedInput` enum (resolved result): `Bolt11`, `NodeId`, `LnUrlPay { data }`, `LnUrlWithdraw { data }`.
- Builder-style `Node` creation with signerless mode as default
- `NodeState` snapshot with hex identifiers
- `LogListener` for foreign-binding log capture
- `generate_diagnostic_data()` for support dumps

### Removed

- `Node::resolve_lnurl()` and the `ResolvedLnUrl` enum. Use `parse_input()` (offline) or `resolve_input()` (HTTP) to obtain `LnUrlPayRequestData` / `LnUrlWithdrawRequestData`, then call `Node::lnurl_pay()` / `Node::lnurl_withdraw()`.

### Fixed

- Hardened LNURL-pay against real-world services
- Excluded unpaid invoices from `list_payments`
- `list_payments` fixes for edge cases

## [0.2.0] - 2026-04-02

### Added
Expand Down Expand Up @@ -50,5 +62,6 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),

- Updated gl-client dependency to support CLN v25.12 signer.

[0.2.1]: https://github.com/Blockstream/greenlight/compare/gl-sdk-v0.2.0...gl-sdk-v0.2.1
[0.2.0]: https://github.com/Blockstream/greenlight/compare/gl-sdk-v0.1.1...gl-sdk-v0.2.0
[0.1.1]: https://github.com/Blockstream/greenlight/releases/tag/gl-sdk-v0.1.1
4 changes: 2 additions & 2 deletions libs/gl-sdk/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "gl-sdk"
version = "0.2.0"
version = "0.2.1"
edition = "2024"
description = "High-level SDK for Greenlight with UniFFI language bindings"
license = "MIT"
Expand All @@ -13,7 +13,7 @@ name = "glsdk"
[dependencies]
anyhow = "1"
bip39 = "2.2.0"
gl-client = { version = "0.4.0", path = "../gl-client" }
gl-client = { version = "0.4.1", path = "../gl-client" }
hex = "0.4"
log = "0.4"
lightning-invoice = "0.33"
Expand Down
2 changes: 1 addition & 1 deletion libs/gl-sdk/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "gl-sdk"
version = "0.2.0"
version = "0.2.1"
description = "Python bindings for Greenlight SDK using UniFFI"
readme = "README.md"
requires-python = ">=3.10"
Expand Down
Loading