Sign { public static ECPublicKey publicKeyFromPrivate(ECPrivateKey privKey) { return new ECPublicKey(publicPointFromPrivateKey(privKey)); }  static SignatureData signMessage(byte[] message, ECKeyPair keyPair); static SignatureData signMessage(byte[] message, ECKeyPair keyPair, boolean needToHash); static ECPublicKey recoverFromSignature(int recId, ECDSASignature sig, byte[] message); static ECPublicKey signedMessageToKey(
            byte[] message, SignatureData signatureData); static ECPublicKey publicKeyFromPrivate(ECPrivateKey privKey); static ECPoint publicPointFromPrivateKey(ECPrivateKey privKey); static String recoverSigningAddress(byte[] message, SignatureData signatureData);  }
@Test public void testPublicKeyFromPrivateKey() { assertThat(Sign.publicKeyFromPrivate(PRIVATE_KEY), equalTo(PUBLIC_KEY)); }