RFC8032Seed.fromBase64 constructor
RFC8032Seed.fromBase64(
- String seedStr
Implementation
factory RFC8032Seed.fromBase64(String seedStr) {
Uint8List seed = base64Decode(seedStr);
if (seed.length == 64) {
seed = seed.sublist(0, 32);
}
if (seed.length != 32) {
throw ArgumentError('invalid seed');
}
return RFC8032Seed.fromSeed(seed);
}