ChallengeParameters class
Parameters embedded in a challenge.
Constructors
-
ChallengeParameters({required String algorithm, required String nonce, required String salt, required int cost, required int keyLength, required String keyPrefix, String? keySignature, int? memoryCost, int? parallelism, num? expiresAt, Map<
String, Object?> ? data, Map<String, Object?> extra = const {}}) -
ChallengeParameters.fromJson(Map<
String, dynamic> json) -
factory
Properties
- algorithm → String
-
final
- cost → int
-
final
-
data
→ Map<
String, Object?> ? -
final
- expiresAt → num?
-
Unix seconds; may be fractional (altcha-lib passes numbers through).
final
-
extra
→ Map<
String, Object?> -
Parameters not modelled above (from a custom DeriveKeyFunction or
another implementation), kept verbatim so they are signed and verified.
Keys naming a modelled field are ignored, even when that field is null.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- keyLength → int
-
final
- keyPrefix ↔ String
-
getter/setter pair
- keySignature ↔ String?
-
getter/setter pair
- memoryCost → int?
-
final
- nonce → String
-
final
- parallelism → int?
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- salt → String
-
final
Methods
-
copyWith(
{String? keyPrefix, String? keySignature}) → ChallengeParameters -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toSortedJson(
) → Map< String, dynamic> - Returns toJson with map keys sorted recursively (canonical order).
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited