Table of Contents

Class NullAccountCreationPuzzleProvider

Namespace
FishMMO.Server
Assembly
FishMMO.Server.dll

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

connectionContext string
cancellationToken CancellationToken

Returns

Task<AccountCreationPuzzle>

VerifySolution(AccountCreationPuzzle, byte[])

Verifies a client solution. Returns false for stale, reused, or invalid solutions.

public bool VerifySolution(AccountCreationPuzzle puzzle, byte[] solutionNonce)

Parameters

puzzle AccountCreationPuzzle
solutionNonce byte[]

Returns

bool