Class NullAccountCreationPuzzleProvider
No-op default that always issues a zero-difficulty puzzle and accepts any solution. Kept so the production pipeline can be wired in without touching call sites.
public sealed class NullAccountCreationPuzzleProvider : IAccountCreationPuzzleProvider
- Inheritance
-
NullAccountCreationPuzzleProvider
- Implements
- Inherited Members
Methods
IssueAsync(string, CancellationToken)
Issues a fresh puzzle. Implementations bind it to connectionContext.
public Task<AccountCreationPuzzle> IssueAsync(string connectionContext, CancellationToken cancellationToken)
Parameters
connectionContextstringcancellationTokenCancellationToken
Returns
VerifySolution(AccountCreationPuzzle, byte[])
Verifies a client solution. Returns false for stale, reused, or invalid solutions.
public bool VerifySolution(AccountCreationPuzzle puzzle, byte[] solutionNonce)
Parameters
puzzleAccountCreationPuzzlesolutionNoncebyte[]