public class IotaAPIUtils extends Object
Constructor and Description |
---|
IotaAPIUtils() |
Modifier and Type | Method and Description |
---|---|
static String |
newAddress(String seed,
int security,
int index,
boolean checksum,
ICurl curl)
Generates a new address
|
static List<String> |
signInputsAndReturn(String seed,
List<Input> inputs,
Bundle bundle,
List<String> signatureFragments,
ICurl curl)
Finalizes and signs the bundle transactions.
|
public static String newAddress(String seed, int security, int index, boolean checksum, ICurl curl) throws ArgumentException
seed
- The tryte-encoded seed. It should be noted that this seed is not transferred.security
- The secuirty level of private key / seed.index
- The index to start search from. If the index is provided, the generation of the address is not deterministic.checksum
- The adds 9-tryte address checksumcurl
- The curl instance.ArgumentException
- is thrown when the specified input is not valid.public static List<String> signInputsAndReturn(String seed, List<Input> inputs, Bundle bundle, List<String> signatureFragments, ICurl curl) throws ArgumentException
seed
- The tryte-encoded seed. It should be noted that this seed is not transferred.inputs
- bundle
- The bundlesignatureFragments
- curl
- The curl instance.ArgumentException
- When the seed is invalidCopyright © 2018. All rights reserved.