public interface IWallet
Modifier and Type | Method and Description |
---|---|
java.util.List<java.lang.String> |
generate(int num)
Generates key data to manage in wallet.
|
boolean |
isExisted(java.lang.String address)
Check whether there is a key data corresponding to the address passed as a parameter in the wallet.
|
boolean |
remove(java.lang.String address)
Deletes the key data that associates with the given address from wallet.
|
AbstractTransaction |
sign(java.lang.String address,
AbstractTransaction transaction)
Signs the transaction using all keys in the key data corresponding to the address.
|
AbstractFeeDelegatedTransaction |
signAsFeePayer(java.lang.String address,
AbstractFeeDelegatedTransaction transaction)
Signs the FeeDelegatedTransaction using all keys in the key data corresponding to the address.
|
java.util.List<java.lang.String> generate(int num) throws java.lang.Exception
num
- The number of key data to create.java.lang.Exception
boolean isExisted(java.lang.String address) throws java.lang.Exception
address
- An address to find key data in wallet.java.lang.Exception
boolean remove(java.lang.String address) throws java.lang.Exception
address
- An address of the key data to be deleted in wallet.java.lang.Exception
AbstractTransaction sign(java.lang.String address, AbstractTransaction transaction) throws java.io.IOException
address
- An address of key data in wallet.transaction
- An AbstractTransaction instance to signjava.io.IOException
AbstractFeeDelegatedTransaction signAsFeePayer(java.lang.String address, AbstractFeeDelegatedTransaction transaction) throws java.io.IOException
address
- An address of key data in wallet.transaction
- An AbstractFeeDelegatedTransaction instance to sign.java.io.IOException