title: Converting byte array to publickey ECDSA
body: <p>I need to use ECDSA algorithm to sign a message and send to receiver in java. Then, receiver should verify sender's signature.</p>
  
  <p>So, for this, receiver has sender's public key but in byte array format after converting <code>java.security.PublicKey</code> to byte array by the command bellow:</p>
  
  <pre><code>byte[] byteArrayPublicKey = publickey.getEncoded();
  </code></pre>
  
  <p>The format of public key in ECDSA algorithm (before converting it to byte array) is as follow:</p>
  
  <p>Public Key:</p>
  
  <pre><code>X: 8a83c389e7bb817c17bf2db4ed71055f18342b630221b2a3a1ca752502dc2e21
  
  Y: 3eaf48c9ab1700fe0966a0cde196b85af66bb8f0bacef711c9dca2368f9d8470
  </code></pre>
  
  <p>But, the problem is to convert this byte array to usable format to verify the signature that is <code>java.security.PublicKey</code> by receiver. </p>
  
  <p>In general, is there any solution to verify the signature without converting it to byte array? In the other word, the problem is to verify the signature by sender's public key, using any method.</p>