mirror of
https://github.com/gosticks/iota.lib.java.git
synced 2026-08-31 05:10:25 +00:00
updated tests (#8)
This commit is contained in:
committed by
Gianluigi Davassi
parent
d0dbff07fe
commit
9173bb9fb6
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user