RecoveryDataKey.fromHexString constructor
RecoveryDataKey.fromHexString(
- String hexString
Load the recovery data key from its hexadecimal representation
Implementation
factory RecoveryDataKey.fromHexString(String hexString) {
final decodedBytes = hex.decode(hexString);
if (!byteLengthOptions.contains(decodedBytes.length)) {
throw ArgumentError(
"Invalid recovery data key: decoded size should be in $byteLengthOptions bytes");
}
return RecoveryDataKey._(Uint8List.fromList(decodedBytes));
}