altcha_widget library

Classes

AltchaChallenge
Wraps the Challenge from altcha_lib and adds optional codeChallenge returned by the server alongside the PoW challenge.
AltchaCodeChallenge
AltchaHisRequest
Represents a server response that requests Human Interaction Signature (HIS) data before issuing the actual challenge.
AltchaLocalizations
AltchaLocalizationsDelegate
AltchaServerVerification
AltchaWidget
AltchaWidgetState
Challenge
A PoW challenge returned by createChallenge.
ChallengeParameters
Parameters embedded in a challenge.
DeriveKeyResult
Result returned by a DeriveKeyFunction.
HisCollector
Collects Human Interaction Signature (HIS) data while the widget is shown.
Solution
A solution produced by solveChallenge.

Functions

channelDeriveKey(ChallengeParameters parameters, List<int> salt, List<int> password) Future<DeriveKeyResult>
Platform-native deriveKey for PBKDF2 challenges.
solveChallenge({required Challenge challenge, DeriveKeyFunction? deriveKey, int concurrency = 4, int timeoutMs = 90000}) Future<Solution?>
Solves challenge using the fastest available implementation on each platform.

Typedefs

DeriveKeyFunction = Future<DeriveKeyResult> Function(ChallengeParameters parameters, List<int> salt, List<int> password)
Function that derives a key given challenge parameters, salt, and password.