@Test public void testShortTextECSignShouldReturnNormalSignature() { String shortText = "i"; String signature = EthereumSign.sign(shortText, privateKey); String expectedSignature = "b650888994cf54feafe3d8c26e235631fc4d300f0da79db822c1a6158d64393f1dd2c9ac2d62f41019204354357fd87bf68d614911c39d0d3dd6d05c0196ecb51b"; Assert.assertEquals(signature, expectedSignature); }
public static String sign(String data, byte[] prvKeyBytes) { return signMessage(dataToBytes(data), prvKeyBytes).toString(); }
EthereumSign { public static String sign(String data, byte[] prvKeyBytes) { return signMessage(dataToBytes(data), prvKeyBytes).toString(); } }
EthereumSign { public static String sign(String data, byte[] prvKeyBytes) { return signMessage(dataToBytes(data), prvKeyBytes).toString(); }  }
EthereumSign { public static String sign(String data, byte[] prvKeyBytes) { return signMessage(dataToBytes(data), prvKeyBytes).toString(); }  static String personalSign(String data, byte[] prvKeyBytes); static String sign(String data, byte[] prvKeyBytes); static BigInteger ecRecover(String data, String signature); static String recoverAddress(String data, String signature); static SignatureData signAsRecoverable(byte[] value, ECKey ecKey); }
EthereumSign { public static String sign(String data, byte[] prvKeyBytes) { return signMessage(dataToBytes(data), prvKeyBytes).toString(); }  static String personalSign(String data, byte[] prvKeyBytes); static String sign(String data, byte[] prvKeyBytes); static BigInteger ecRecover(String data, String signature); static String recoverAddress(String data, String signature); static SignatureData signAsRecoverable(byte[] value, ECKey ecKey);  }