[NUT-13] V2 keysets use legacy BIP32 derivation instead of HMAC-SHA256 — cross-wallet restore broken
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 30/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- go
- Lĩnh vực
- cryptography
Hướng nghiên cứu
The payload names no source files, so start by locating the NUT-13 derivation code for V2 (01) keysets and the restore loop in the repository. First confirm whether the BIP32-vs-HMAC-SHA256 mismatch still reproduces on upstream main, since the issue says this was not re-verified. Done means V2 keysets derive secrets with Cashu_KDF_HMACSHA256 per NUT-13, the restore loop uses continue on unit mismatch, and the counter no longer over-increments.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Migrated from Amperstrand/tollgate-module-basic-go#82 as part of the fork retirement — OpenTollGate/tollgate-module-basic-go is the single source of truth; the fork issue carries the original discussion and any lab evidence. Retirement plan: #758.]
NUT-13 deterministic secrets: V2 (01) keysets use BIP32 path instead of mandated HMAC-SHA256 Cashu_KDF_HMACSHA256. This breaks cross-wallet restore from nutshell/cdk/cashu-ts for V2 keysets.
Additional restore loop bugs:
breakon unit mismatch (shouldcontinue)- Counter over-increment
Legacy BIP32 is implemented correctly for V1 keysets, but V2 must use HMAC-SHA256 per spec.
Fix: Implement HMAC-SHA256 derivation for V2 keysets; fix restore loop logic.
Evidence: /home/ubuntu/src/tollgate_audit_report_2026-08-26.md §6, line 103; §7
Section reference: /home/ubuntu/src/tollgate_audit_report_2026-08-26.md §6
Migrated 2026-10-09. Applicability to current upstream main (4614ac2, post-rc1) was not re-verified during migration — confirming whether the finding still reproduces upstream is this issue's first task.
- Ngôn ngữ chính
- Go
- Star
- 12
- Fork
- 14
- Merge trung bình
- 1 ngày 6 giờ
- Pull request đã merge (30 ngày)
- 235
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của OpenTollGate/tollgate-module-basic-go
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
OpenTollGate/tollgate-module-basic-go#949 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
OpenTollGate/tollgate-module-basic-go#833 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
OpenTollGate/tollgate-module-basic-go#813 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
OpenTollGate/tollgate-module-basic-go#804 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
go-battery needs an ndsctl on PATH: TestPurchaseSessionGuardHoldsThroughTheOutcomeUnknownWindow fails on bare hosts (passes with stub)Có thể đã có người làm @Amperstrand đã nhận 4 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
OpenTollGate/tollgate-module-basic-go#726 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của OpenTollGate/tollgate-module-basic-go
Issue tương tự
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Gentleman-Programming/engram#1899 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 1 ngày
-
perf(translator): Claude→Responses stream re-validates the whole request body on every SSE chunkĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
router-for-me/CLIProxyAPI#6665 ·
Maintainer thường phản hồi trong vòng 1 ngày