Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
ovx committed Apr 6, 2024
1 parent 1c57d2a commit 1e18b66
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ const hmacKey = 'secret hmac key';
// Create a new challenge and send it to the client:
const challenge = await createChallenge({
hmacKey,
maxNumber: 100000, // the maximum random number
});

// When submitted, verify the payload:
Expand Down Expand Up @@ -91,8 +92,8 @@ Usage with `altcha-lib/worker`:
import { solveChallengeWorkers } from 'altcha-lib';

const solution = await solveChallengeWorkers(
'altcha-lib/worker', // URL to
8, // spawn 8 workers
'altcha-lib/worker', // Worker script URL or path
8, // Spawn 8 workers
challenge,
salt,
);
Expand Down
5 changes: 3 additions & 2 deletions deno_dist/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ const hmacKey = 'secret hmac key';
// Create a new challenge and send it to the client:
const challenge = await createChallenge({
hmacKey,
maxNumber: 100000, // the maximum random number
});

// When submitted, verify the payload:
Expand Down Expand Up @@ -91,8 +92,8 @@ Usage with `altcha-lib/worker`:
import { solveChallengeWorkers } from 'altcha-lib';

const solution = await solveChallengeWorkers(
'altcha-lib/worker', // URL to
8, // spawn 8 workers
'altcha-lib/worker', // Worker script URL or path
8, // Spawn 8 workers
challenge,
salt,
);
Expand Down

0 comments on commit 1e18b66

Please sign in to comment.