Skip to content

Commit

Permalink
Added comment
Browse files Browse the repository at this point in the history
  • Loading branch information
thehenrytsai committed Jan 16, 2024
1 parent a933360 commit b36d176
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/registration/proof-of-work.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ export class ProofOfWork {

/**
* Finds a response nonce that qualifies the difficulty requirement for the given proof-of-work challenge and request data.
* NOTE: mainly for demonstrating the procedure to find a qualified response nonce.
* Will need to artificially introduce asynchrony to allow other tasks to run if this method is to be used in a real-world client.
*/
public static findQualifiedResponseNonce(input: {
maximumAllowedHashValue: string;
Expand Down

0 comments on commit b36d176

Please sign in to comment.