Incorporate CDK NUT-XX mint quote lookup (vnprc/cdk fix/nutxx-lookup) #7

Closed
opened 2026-08-07 21:45:52 +01:00 by vnprc-agent · 0 comments
Collaborator

Point hashpool's CDK dependency at the new NUT-XX mint quote lookup work so the mint serves POST /v1/mint/quote/pubkey, letting a wallet holding a NUT-20 locking key retrieve its mint quotes with a signed request instead of relying only on locally stored quote ids.

Primary goals:

  • Move the CDK pin — all four coordinated pins (protocols/Cargo.toml, roles/Cargo.toml, cdk-ehash's [patch.crates-io], devenv.nix cdkRepo/cdkCommit) move together from cashubtc/cdk rev 1572941d (0.16.0) to vnprc/cdk branch fix/nutxx-lookup rev 7011eebc (0.17.0).
  • Bump version requirements — cdk-family crates go 0.16.00.17.0 in protocols/ehash/Cargo.toml, roles/mint/Cargo.toml, roles/translator/Cargo.toml, and cdk-ehash's Cargo.toml, so cargo resolution matches the patched source.
  • Adapt to upstream drift7011eebc sits 265 commits past the current pin; fix whatever API breakage surfaces in cdk-ehash and the mint/translator/pool roles until both workspaces compile and tests pass.
  • New capability exposed — the mint's HTTP API gains the NUT-XX lookup route (schnorr-signed, replay-protected, ≤50 pubkeys per request); no hashpool role consumes it yet.

Current state and specifics

hashpool builds against cashubtc/cdk rev 1572941d (0.16.0), pinned in protocols/Cargo.toml:17-23, roles/Cargo.toml:29-37, devenv.nix:31-32, and cdk-ehash Cargo.toml:37-43 (hashpool consumes cdk-ehash at rev 40fdebe via roles/mint/Cargo.toml:25). The lookup feature lives on vnprc/cdk branch fix/nutxx-lookup (tip 7011eebc, based on upstream main at 23fa905d): new nutxx module in cashu, a v1 router route in cdk-axum, a by-pubkey quote query in cdk-sql-common plus sqlite migrations, and mint-side signature verification in cdk. Since 1572941d upstream also moved 254 commits and the workspace version went 0.17.0.

cdk-ehash main is protected, so its pin bump lands by PR on a branch; hashpool then consumes the new cdk-ehash rev.

Validation

Both workspaces (protocols/, roles/) and cdk-ehash compile with all targets and their full test suites pass (protocols 55, roles 51 suites, cdk-ehash 16) under rustc 1.97.1 via the cdk repo nix dev shell — the hashpool devenv shell currently stalls on this VM realizing the uncached bitcoind-gunix input (vnprc/hashpool#6), and devenv's pinned nixpkgs rustc 1.95.0 exceeds cdk's 1.85 MSRV. Runtime devenv up mining smoke test remains a human gate, as with prior CDK bumps.

Scope

In scope: the dependency move, version bumps, lockfile regeneration, and compile/test fixes in cdk-ehash and hashpool. Out of scope: wiring any hashpool role to actually call the new lookup endpoint (follow-up work once the dependency lands), and upstreaming fix/nutxx-lookup to cashubtc/cdk.

Point hashpool's CDK dependency at the new NUT-XX mint quote lookup work so the mint serves `POST /v1/mint/quote/pubkey`, letting a wallet holding a NUT-20 locking key retrieve its mint quotes with a signed request instead of relying only on locally stored quote ids. Primary goals: - **Move the CDK pin** — all four coordinated pins (`protocols/Cargo.toml`, `roles/Cargo.toml`, cdk-ehash's `[patch.crates-io]`, `devenv.nix` cdkRepo/cdkCommit) move together from `cashubtc/cdk` rev `1572941d` (0.16.0) to `vnprc/cdk` branch `fix/nutxx-lookup` rev `7011eebc` (0.17.0). - **Bump version requirements** — cdk-family crates go `0.16.0` → `0.17.0` in `protocols/ehash/Cargo.toml`, `roles/mint/Cargo.toml`, `roles/translator/Cargo.toml`, and cdk-ehash's `Cargo.toml`, so cargo resolution matches the patched source. - **Adapt to upstream drift** — `7011eebc` sits 265 commits past the current pin; fix whatever API breakage surfaces in cdk-ehash and the mint/translator/pool roles until both workspaces compile and tests pass. - **New capability exposed** — the mint's HTTP API gains the NUT-XX lookup route (schnorr-signed, replay-protected, ≤50 pubkeys per request); no hashpool role consumes it yet. ### Current state and specifics hashpool builds against `cashubtc/cdk` rev `1572941d` (0.16.0), pinned in `protocols/Cargo.toml:17-23`, `roles/Cargo.toml:29-37`, `devenv.nix:31-32`, and cdk-ehash `Cargo.toml:37-43` (hashpool consumes cdk-ehash at rev `40fdebe` via `roles/mint/Cargo.toml:25`). The lookup feature lives on `vnprc/cdk` branch `fix/nutxx-lookup` (tip `7011eebc`, based on upstream main at `23fa905d`): new `nutxx` module in `cashu`, a v1 router route in `cdk-axum`, a by-pubkey quote query in `cdk-sql-common` plus sqlite migrations, and mint-side signature verification in `cdk`. Since `1572941d` upstream also moved 254 commits and the workspace version went 0.17.0. cdk-ehash `main` is protected, so its pin bump lands by PR on a branch; hashpool then consumes the new cdk-ehash rev. ### Validation Both workspaces (`protocols/`, `roles/`) and cdk-ehash compile with all targets and their full test suites pass (protocols 55, roles 51 suites, cdk-ehash 16) under rustc 1.97.1 via the cdk repo nix dev shell — the hashpool devenv shell currently stalls on this VM realizing the uncached bitcoind-gunix input (vnprc/hashpool#6), and devenv's pinned nixpkgs rustc 1.95.0 exceeds cdk's 1.85 MSRV. Runtime `devenv up` mining smoke test remains a human gate, as with prior CDK bumps. ### Scope In scope: the dependency move, version bumps, lockfile regeneration, and compile/test fixes in cdk-ehash and hashpool. Out of scope: wiring any hashpool role to actually call the new lookup endpoint (follow-up work once the dependency lands), and upstreaming `fix/nutxx-lookup` to `cashubtc/cdk`.
vnprc closed this issue 2026-08-13 06:31:46 +01:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
vnprc/hashpool#7
No description provided.