mirror of
https://github.com/kccleoc/seedpgp-web.git
synced 2026-03-07 09:57:50 +08:00
Fix CameraEntropy video initialization and add stats review panel
- Fix videoRef timing issue by using useEffect for video setup - Stop animation loop on capture to prevent infinite warnings - Fix null canvas reference in generateMnemonicFromEntropy - Add stats review panel with continue/retake options - Add seed generation explanation and blurred preview - Implement seed generation from camera noise/entropy bits and enhance dice rolls with detailed statistical analysis
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
* handling various input formats, per-row decryption, and final output actions.
|
||||
*/
|
||||
import { useState, useEffect, useCallback, useRef } from 'react';
|
||||
import { QrCode, X, Plus, CheckCircle2, AlertTriangle, RefreshCw, Sparkles, EyeOff, Lock, Key, ArrowRight } from 'lucide-react';
|
||||
import { QrCode, X, Plus, CheckCircle2, AlertTriangle, RefreshCw, Sparkles, EyeOff, Key, ArrowRight } from 'lucide-react';
|
||||
import QRScanner from './QRScanner';
|
||||
import { decryptFromSeed, detectEncryptionMode } from '../lib/seedpgp';
|
||||
import { decryptFromKrux } from '../lib/krux';
|
||||
@@ -113,19 +113,6 @@ export function SeedBlender({ onDirtyStateChange, setMnemonicForBackup, requestT
|
||||
}
|
||||
}, [incomingSeed]);
|
||||
|
||||
const handleLockAndClear = () => {
|
||||
setEntries([createNewEntry()]);
|
||||
setBlendedResult(null);
|
||||
setXorStrength(null);
|
||||
setBlendError('');
|
||||
setDiceRolls('');
|
||||
setDiceStats(null);
|
||||
setDicePatternWarning(null);
|
||||
setDiceOnlyMnemonic(null);
|
||||
setFinalMnemonic(null);
|
||||
setShowFinalQR(false);
|
||||
};
|
||||
|
||||
useEffect(() => {
|
||||
const processEntries = async () => {
|
||||
setBlending(true);
|
||||
|
||||
Reference in New Issue
Block a user