@Test public void testECSign() { String signature = EthereumSign.sign("imToken", privateKey); 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);  }