[NUT-13] V2 keysets use legacy BIP32 derivation instead of HMAC-SHA256 — cross-wallet restore broken
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 30/100
- Tipo de issue
- Error
- Claridad
- Bastante claro
- Estado de actividad
- Activo
- Stack tecnológico
- go
- Área
- cryptography
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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.
- Lenguaje dominante
- Go
- Estrellas
- 12
- Forks
- 14
- Merge medio
- 1 d 6 h
- PR fusionados (30 d)
- 235
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de OpenTollGate/tollgate-module-basic-go
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
OpenTollGate/tollgate-module-basic-go#949 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
OpenTollGate/tollgate-module-basic-go#833 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
OpenTollGate/tollgate-module-basic-go#813 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
OpenTollGate/tollgate-module-basic-go#804 ·
Los mantenedores suelen responder en 1 día
-
go-battery needs an ndsctl on PATH: TestPurchaseSessionGuardHoldsThroughTheOutcomeUnknownWindow fails on bare hosts (passes with stub)Posiblemente ocupada @Amperstrand la tomó hace 4 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
OpenTollGate/tollgate-module-basic-go#726 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
Todos los issues de OpenTollGate/tollgate-module-basic-go
Issues similares
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
puppe1990/amarra-cais#355 ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Gentleman-Programming/engram#1899 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 1 día
-
security
Dificultad 2/5 1-3 horas Aptitud para principiantes 64/100
SocialGouv/iterion#2483 ·
Los mantenedores suelen responder en 1 día