@ -20,3 +20,16 @@ export function generateKey() {
return result.join('');
}
export function generateSquareChallenge(){
let result = [];
let uintArray = new Uint8Array(20);
let newChallenge = crypto.getRandomValues(uintArray);
for(let i = 0; i < 20; ++i){
let position = newChallenge[i] % 2;
result.push(position);
return result;