CesiumWallet constructor
Main factory constructor which generate seed and rootKey for the given Cesium salt and password
Implementation
factory CesiumWallet(String salt, String password) {
var scrypt = pc.KeyDerivator('scrypt');
scrypt.init(
pc.ScryptParameters(
4096,
16,
1,
32,
Uint8List.fromList(salt.codeUnits),
),
);
var seed = scrypt.process(Uint8List.fromList(password.codeUnits));
return CesiumWallet.fromSeed(seed);
}