Package com.h2tcoin.takamakachain.wallet
Class InstanceWalletKeyStoreBCQTESLAPSSC1Round2
- java.lang.Object
-
- com.h2tcoin.takamakachain.wallet.InstanceWalletKeyStoreBCQTESLAPSSC1Round2
-
- All Implemented Interfaces:
InstanceWalletKeystoreInterface
,Comparable<InstanceWalletKeystoreInterface>
public class InstanceWalletKeyStoreBCQTESLAPSSC1Round2 extends Object implements InstanceWalletKeystoreInterface
- Author:
- giovanni.antino@h2tcoin.com
-
-
Constructor Summary
Constructors Constructor Description InstanceWalletKeyStoreBCQTESLAPSSC1Round2(String walletName)
InstanceWalletKeyStoreBCQTESLAPSSC1Round2(String walletName, int nCharSeed)
InstanceWalletKeyStoreBCQTESLAPSSC1Round2(String walletName, String password)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(InstanceWalletKeystoreInterface t)
String
getCurrentWalletID()
org.bouncycastle.crypto.AsymmetricCipherKeyPair
getKeyPairAtIndex(int i)
byte[]
getPublicKeyAtIndexByte(int i)
String
getPublicKeyAtIndexURL64(int i)
KeyContexts.WalletCypher
getWalletCypher()
-
-
-
Constructor Detail
-
InstanceWalletKeyStoreBCQTESLAPSSC1Round2
public InstanceWalletKeyStoreBCQTESLAPSSC1Round2(String walletName) throws UnlockWalletException
- Throws:
UnlockWalletException
-
InstanceWalletKeyStoreBCQTESLAPSSC1Round2
public InstanceWalletKeyStoreBCQTESLAPSSC1Round2(String walletName, String password) throws UnlockWalletException
- Throws:
UnlockWalletException
-
InstanceWalletKeyStoreBCQTESLAPSSC1Round2
public InstanceWalletKeyStoreBCQTESLAPSSC1Round2(String walletName, int nCharSeed) throws UnlockWalletException, WalletBurnedException, WalletEmptySeedException
-
-
Method Detail
-
getWalletCypher
public KeyContexts.WalletCypher getWalletCypher()
- Specified by:
getWalletCypher
in interfaceInstanceWalletKeystoreInterface
- Returns:
- the wallet cypher
-
getKeyPairAtIndex
public org.bouncycastle.crypto.AsymmetricCipherKeyPair getKeyPairAtIndex(int i) throws InvalidWalletIndexException
- Specified by:
getKeyPairAtIndex
in interfaceInstanceWalletKeystoreInterface
- Returns:
- the key pair public and private address related to the index
- Throws:
InvalidWalletIndexException
-
getPublicKeyAtIndexURL64
public String getPublicKeyAtIndexURL64(int i) throws InvalidWalletIndexException, PublicKeySerializzationException
- Specified by:
getPublicKeyAtIndexURL64
in interfaceInstanceWalletKeystoreInterface
- Returns:
- the public key as URL64 image String
- Throws:
InvalidWalletIndexException
PublicKeySerializzationException
-
getPublicKeyAtIndexByte
public byte[] getPublicKeyAtIndexByte(int i) throws InvalidWalletIndexException, PublicKeySerializzationException
- Specified by:
getPublicKeyAtIndexByte
in interfaceInstanceWalletKeystoreInterface
- Returns:
- the public key as byte array
- Throws:
InvalidWalletIndexException
PublicKeySerializzationException
-
getCurrentWalletID
public String getCurrentWalletID()
- Specified by:
getCurrentWalletID
in interfaceInstanceWalletKeystoreInterface
- Returns:
- the current wallet ID
-
compareTo
public int compareTo(InstanceWalletKeystoreInterface t)
- Specified by:
compareTo
in interfaceComparable<InstanceWalletKeystoreInterface>
-
-