AlgoScrypt.fromMap constructor

AlgoScrypt.fromMap(
  1. Map<String, dynamic> map
)

Implementation

factory AlgoScrypt.fromMap(
  Map<String, dynamic> map,
) {
  map = {
    'type': "scrypt",
    'costCpu': 8,
    'costMemory': 14,
    'costParallel': 1,
    'length': 64,
    ...map,
  };

  return AlgoScrypt(
    type: map['type'].toString(),
    costCpu: map['costCpu'],
    costMemory: map['costMemory'],
    costParallel: map['costParallel'],
    length: map['length'],
  );
}