public static EcdsaPublicKey generateEcdsaPubKey(
      EllipticCurveType curve, HashType hashType, EcdsaSignatureEncoding encoding)
      throws Exception {
    EcdsaPrivateKey privKey = generateEcdsaPrivKey(curve, hashType, encoding);
    return privKey.getPublicKey();
  }
@return a {@code EcdsaPublicKey} constructed from {@code EllipticCurveType} and {@code
    HashType}.
java_src/src/main/java/com/google/crypto/tink/testing/TestUtil.java