@Test
public void testECKey() {

    ECKey key = new ECKey();
    assertTrue(key.isPubKeyCanonical());
    assertNotNull(key.getPubKey());
    assertNotNull(key.getPrivKeyBytes());
    log.debug(Hex.toHexString(key.getPrivKeyBytes()) + " :Generated privkey");
    log.debug(Hex.toHexString(key.getPubKey()) + " :Generated pubkey");
}