ECPublic.fromHex constructor
ECPublic.fromHex(
- String hex
creates an object from a hex string in SEC format (classmethod)
Implementation
ECPublic.fromHex(String hex) {
final toBytes = hexToBytes(hex);
if (!ec.isPoint(toBytes)) {
throw ArgumentError("Bad point");
}
final d = reEncodedFromForm(toBytes, false);
_key = d;
}