forChallenge static method

List<ChallengePieceResolver> forChallenge(
  1. Challenge config,
  2. String serializedInput
)

Implementation

static List<ChallengePieceResolver> forChallenge(
    Challenge config,
    String serializedInput,
    ) {
  return config.salts.map((salt) {
    return ChallengePieceResolver(
      salt,
      serializedInput,
      config.difficultyFactor,
    );
  }).toList();
}