v1.34.0: leer QR con la cámara

Botón ⌗ QR junto a cada campo (direcciones, URI de pago, txid, xpub,
PSBT, tx en crudo). Enseña lo leído y pide confirmar. Rechaza semillas y
claves privadas sin mostrarlas. Foto de respaldo sin cámara en directo.
Librería qr 0.7.2 (Paul Miller) en vendor/qr/, con su huella en SETUP.
Pruebas en tests/test22.js.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01L5npnUYgSPkAaHkdaeUqBr
This commit is contained in:
2026-10-22 00:40:23 +02:00
co-authored by Claude Opus 5.5
parent b486f04427
commit e2adf88f77
13 changed files with 458 additions and 4 deletions
+3
View File
@@ -66,6 +66,7 @@
style={{flex:1,background:C.bgCard,border:`1px solid ${C.borderBright}`,borderRadius:6,padding:"11px 14px",color:C.t1,fontFamily:C.mono,fontSize:"0.78rem",outline:"none"}}
onFocus={e=>e.target.style.borderColor=C.purple} onBlur={e=>e.target.style.borderColor=C.borderBright}
/>
<BotonQR campo="busqueda" onLeido={v=>setQuery(v)}/>
<button onClick={()=>search()} style={{padding:"11px 20px",background:C.purpleMuted,border:`1px solid ${C.purple}40`,borderRadius:6,color:C.purple,fontFamily:C.mono,fontSize:"0.75rem",cursor:"pointer",fontWeight:700}}>
{loading?"···":"BUSCAR"}
</button>
@@ -130,6 +131,7 @@
style={{flex:1,background:C.bg,border:`1px solid ${C.borderBright}`,borderRadius:6,padding:"9px 12px",color:C.t1,fontFamily:C.mono,fontSize:"0.75rem",outline:"none"}}
onFocus={e=>e.target.style.borderColor=C.green} onBlur={e=>e.target.style.borderColor=C.borderBright}
/>
<BotonQR campo="txid" color={C.green} onLeido={v=>setTxid(v)}/>
<button onClick={verify} style={{padding:"9px 16px",background:C.greenMuted,border:`1px solid ${C.green}40`,borderRadius:6,color:C.green,fontFamily:C.mono,fontSize:"0.72rem",cursor:"pointer",fontWeight:700}}>
{loading?"···":"VERIFICAR"}
</button>
@@ -356,6 +358,7 @@
style={{flex:1,background:C.bg,border:`1px solid ${C.borderBright}`,borderRadius:6,padding:"9px 12px",color:C.t1,fontFamily:C.mono,fontSize:"0.75rem",outline:"none"}}
onFocus={e=>e.target.style.borderColor=C.purple} onBlur={e=>e.target.style.borderColor=C.borderBright}
/>
<BotonQR campo="direccion" onLeido={v=>setAddr(v)}/>
<button onClick={fetchUtxos} style={{padding:"9px 16px",background:C.purpleMuted,border:`1px solid ${C.purple}40`,borderRadius:6,color:C.purple,fontFamily:C.mono,fontSize:"0.72rem",cursor:"pointer",fontWeight:700}}>
{loading?"···":"MAPEAR"}
</button>