public class Multisig extends Object
| Constructor and Description |
|---|
Multisig()
Initializes a new instance of the Multisig class.
|
Multisig(ICurl customCurl)
Initializes a new instance of the Multisig class.
|
| Modifier and Type | Method and Description |
|---|---|
String |
addAddressDigest(String digestTrytes,
String curlStateTrytes)
Initiates the generation of a new multisig address or adds the key digest to an existing one
|
Bundle |
addSignature(Bundle bundleToSign,
String inputAddress,
String keyTrytes)
Adds the cosigner signatures to the corresponding bundle transaction
|
String |
finalizeAddress(String curlStateTrytes)
Generates a new address
|
String |
getDigest(String seed,
int security,
int index) |
String |
getKey(String seed,
int index,
int security)
Gets the key value of a seed
|
boolean |
validateAddress(String multisigAddress,
int[][] digests)
Validates a generated multisig address
|
public Multisig(ICurl customCurl)
public Multisig()
public String getDigest(String seed, int security, int index) throws ArgumentException
seed - Tryte-encoded seed. It should be noted that this seed is not transferred.security - Secuirty level of private key / seed.index - Key index to start search from. If the index is provided, the generation of the address is not deterministic.ArgumentException - is thrown when the specified security level is not valid.public String addAddressDigest(String digestTrytes, String curlStateTrytes)
digestTrytes - curlStateTrytes - public String getKey(String seed, int index, int security) throws ArgumentException
seed - Tryte-encoded seed. It should be noted that this seed is not transferredindex - Key index to start search from. If the index is provided, the generation of the address is not deterministic.ArgumentException - is thrown when the specified security level is not valid.public String finalizeAddress(String curlStateTrytes)
curlStateTrytes - public boolean validateAddress(String multisigAddress, int[][] digests)
multisigAddress - digests - Copyright © 2019. All rights reserved.