updated tests (#8)

This commit is contained in:
Oliver Nitzschke
2016-12-07 15:19:24 +01:00
committed by Gianluigi Davassi
parent d0dbff07fe
commit 9173bb9fb6
3 changed files with 13 additions and 42 deletions
+2 -8
View File
@@ -1,11 +1,10 @@
package jota.utils;
import jota.dto.response.GetBundleResponse;
import org.apache.commons.lang3.NotImplementedException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import jota.dto.response.GetBundleResponse;
/**
* Client Side computation service
*
@@ -26,14 +25,9 @@ public class IotaAPIUtils {
public static String newAddress(String seed, int index, boolean checksum) {
final int[] key = Signing.key(Converter.trits(seed), index, 2);
log.debug("key Length = {}", key.length );
final int[] digests = Signing.digests(key);
log.debug("digests Length = {}", digests.length );
final int[] addressTrits = Signing.address(digests);
log.debug("addressTrits Length = {}", addressTrits.length );
String address = Converter.trytes(addressTrits);
if (checksum) {