Skip to content

Commit

Permalink
Merge pull request #45 from multiparty/fixDD
Browse files Browse the repository at this point in the history
Default Data added back
  • Loading branch information
gregfrasco authored Apr 4, 2023
2 parents c967d78 + 1d4fed5 commit ae9147d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion client/src/pages/home.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,11 @@ import { getPublicKey, submitData } from '@services/api';
import { importPemPublicKey, importPemPrivateKey } from '@utils/keypair';
import { tableToSecretShares, secretSharesToTable } from '@utils/shamirs';
import { useSelector } from 'react-redux';
import { defaultData } from '@constants/default-data';

export const HomePage: FC = () => {
const [file, setFile] = useState<CustomFile | null>(null);
const [data, setData] = useState<DataFormat>({} as DataFormat);
const [data, setData] = useState<DataFormat>(defaultData);
const [numShares, setNumShares] = useState<number>(10);
const [threshold, setTheshold] = useState<number>(5); // Must have at least 5 shares to reconstruct
const [numEncryptWithKey, setNumEncryptWithKey] = useState<number>(threshold + 1); // Encrypt amount "theshold + 1" shares with key
Expand Down

0 comments on commit ae9147d

Please sign in to comment.