getPublicKey static method

ETHPublicKey? getPublicKey(
  1. List<int> messageDigest,
  2. List<int> signature, {
  3. bool hashMessage = true,
  4. int? payloadLength,
})

Implementation

static ETHPublicKey? getPublicKey(
    List<int> messageDigest, List<int> signature,
    {bool hashMessage = true, int? payloadLength}) {
  final verifier = ETHVerifier.getPublicKey(messageDigest, signature,
      hashMessage: hashMessage, payloadLength: payloadLength);
  if (verifier == null) return null;
  final pubKey = Secp256k1PublicKeyEcdsa.fromBytes(verifier.point.toBytes());
  return ETHPublicKey._(pubKey);
}