@Test
public void testSignMessageAsHex() throws Exception {
SigningKey key = new SigningKey();
String signedMessage = key.sign(SIGN_MESSAGE, HEX);
VerifyKey verifyKey = new VerifyKey(key.getPublicKey());
Boolean isValid = verifyKey.verify(SIGN_MESSAGE, signedMessage, HEX);
assertTrue("Message sign has failed", isValid);
}
@Test(expected = RuntimeException.class)
public void testVerifyCorruptedSignature() throws Exception {