ECDSAKey { public boolean verify(final byte[] hashedMessage, final ECDSASignature signature) { try { return verifier.verify(getPublicKey(), hashedMessage, signature); } catch (final Throwable e) { throw new IllegalStateException(e); } } protected  ECDSAKey(final PrivateKey privateKey, final PublicKey publicKey,
      final ECDomainParameters ecParams); static ECDSAKey of(final PrivateKey privateKey, final PublicKey publicKey,
      final ECDomainParameters ecParams); ECDSASignature sign(final byte[] hashedMessage); boolean verify(final byte[] hashedMessage, final ECDSASignature signature); @Override String toString();  }
@Test public void testVerify() throws Exception { final ECDSAKey key = new ECDSAKeyGenerator().create(new BigInteger(1, Base58Utils.decode(PRIVATE_KEY))); final byte[] message = Base58Utils.decode(MESSAGE); final ECDSASignature signature = new ECDSASignature( new BigInteger( "112903116466171247254957852742074885675578841047850429300671823964741881940578"), new BigInteger( "48378612163565051950304976934001209911695304131357129876678389874012900275807")); assertTrue(key.verify(message, signature)); }