Package com.h2tcoin.takamakachain.wallet
Class InstanceWalletKeyStoreBCED25519
- java.lang.Object
-
- com.h2tcoin.takamakachain.wallet.InstanceWalletKeyStoreBCED25519
-
- All Implemented Interfaces:
InstanceWalletKeystoreInterface,Comparable<InstanceWalletKeystoreInterface>
public class InstanceWalletKeyStoreBCED25519 extends Object implements InstanceWalletKeystoreInterface
Current multithread implementation. Use this provider for signing.- Author:
- giovanni.antino@h2tcoin.com
-
-
Constructor Summary
Constructors Constructor Description InstanceWalletKeyStoreBCED25519(String walletName)Initialize the wallet by creating both the list of words and the seed.InstanceWalletKeyStoreBCED25519(String walletName, int nCharForSeed)Initialize the wallet by creating both the list of words and the seed.InstanceWalletKeyStoreBCED25519(String walletName, String password)Initialize the wallet by creating both the list of words and the seed.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(InstanceWalletKeystoreInterface t)StringgetCurrentWalletID()org.bouncycastle.crypto.AsymmetricCipherKeyPairgetKeyPairAtIndex(int i)byte[]getPublicKeyAtIndexByte(int i)StringgetPublicKeyAtIndexURL64(int i)KeyContexts.WalletCyphergetWalletCypher()
-
-
-
Constructor Detail
-
InstanceWalletKeyStoreBCED25519
public InstanceWalletKeyStoreBCED25519(String walletName) throws UnlockWalletException
Initialize the wallet by creating both the list of words and the seed. Words:SeedGenerator.generateWords()Seed:SeedGenerator.generateSeedPWH(java.util.List)- Parameters:
walletName-- Throws:
UnlockWalletException
-
InstanceWalletKeyStoreBCED25519
public InstanceWalletKeyStoreBCED25519(String walletName, String password) throws UnlockWalletException
Initialize the wallet by creating both the list of words and the seed. Words:SeedGenerator.generateWords()Seed:SeedGenerator.generateSeedPWH(java.util.List)- Parameters:
walletName-password-- Throws:
UnlockWalletException
-
InstanceWalletKeyStoreBCED25519
public InstanceWalletKeyStoreBCED25519(String walletName, int nCharForSeed) throws UnlockWalletException, WalletEmptySeedException, WalletBurnedException
Initialize the wallet by creating both the list of words and the seed. Words:SeedGenerator.generateWords()Seed:SeedGenerator.generateSeedPWH(java.util.List)- Parameters:
walletName-nCharForSeed-- Throws:
UnlockWalletExceptionWalletEmptySeedExceptionWalletBurnedException
-
-
Method Detail
-
getWalletCypher
public KeyContexts.WalletCypher getWalletCypher()
- Specified by:
getWalletCypherin interfaceInstanceWalletKeystoreInterface- Returns:
- the wallet cypher
-
getCurrentWalletID
public String getCurrentWalletID()
- Specified by:
getCurrentWalletIDin interfaceInstanceWalletKeystoreInterface- Returns:
- the current wallet ID
-
getKeyPairAtIndex
public org.bouncycastle.crypto.AsymmetricCipherKeyPair getKeyPairAtIndex(int i) throws InvalidWalletIndexException- Specified by:
getKeyPairAtIndexin 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:
getPublicKeyAtIndexURL64in interfaceInstanceWalletKeystoreInterface- Returns:
- the public key as URL64 image String
- Throws:
InvalidWalletIndexExceptionPublicKeySerializzationException
-
getPublicKeyAtIndexByte
public byte[] getPublicKeyAtIndexByte(int i) throws InvalidWalletIndexException, PublicKeySerializzationException- Specified by:
getPublicKeyAtIndexBytein interfaceInstanceWalletKeystoreInterface- Returns:
- the public key as byte array
- Throws:
InvalidWalletIndexExceptionPublicKeySerializzationException
-
compareTo
public int compareTo(InstanceWalletKeystoreInterface t)
- Specified by:
compareToin interfaceComparable<InstanceWalletKeystoreInterface>
-
-