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
+2
View File
@@ -328,6 +328,7 @@
placeholder="xpub... o zpub..."
style={{flex:1,background:C.bg,border:`1px solid ${C.borderBright}`,borderRadius:6,padding:"8px 12px",color:C.t1,fontFamily:C.mono,fontSize:"0.7rem",outline:"none"}}
/>
<BotonQR campo="xpub" color={C.green} onLeido={v=>setXpubInput(v)}/>
<select value={xpubCount} onChange={e=>setXpubCount(Number(e.target.value))}
title="Direcciones a derivar por rama"
style={{background:C.bg,border:`1px solid ${C.borderBright}`,borderRadius:6,padding:"8px 8px",color:C.t1,fontFamily:C.mono,fontSize:"0.7rem",outline:"none",cursor:"pointer"}}>
@@ -626,6 +627,7 @@
style={{flex:1,background:C.bg,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="txid" onLeido={v=>setQuery(v)}/>
<button onClick={()=>analyze()} 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?"···":"ANALIZAR"}
</button>