algorithms library
Algorithm selector for ALTCHA proof-of-work.
Import this file to access adaptiveDeriveKey, which automatically dispatches to the correct key-derivation function based on ChallengeParameters.algorithm. Because adaptiveDeriveKey is a top-level function it can be forwarded across Dart isolate boundaries.
Classes
- ChallengeParameters
- Parameters embedded in a challenge.
- DeriveKeyResult
- Result returned by a DeriveKeyFunction.
Functions
-
adaptiveDeriveKey(
ChallengeParameters parameters, List< int> salt, List<int> password) → Future<DeriveKeyResult> -
Derives a key using the algorithm named in
parameters.algorithm.
Typedefs
-
DeriveKeyFunction
= Future<
DeriveKeyResult> Function(ChallengeParameters parameters, List<int> salt, List<int> password) - Function that derives a key given challenge parameters, salt, and password.