-
- All Implemented Interfaces:
public interface KeyPairFactoryA factory for creating a KeyPair object
-
-
Method Summary
Modifier and Type Method Description abstract KeyPairload(ByteArray seedOrPrivateKey)Loads seed to create a KeyPair KeyPairgenerate(Integer wordCount, String passphrase)Generates a KeyPair from a word count and a passphrase. KeyPairgenerate(Mnemonic mnemonic, String passphrase)Generates a KeyPair from a mnemonic and a passphrase KeyPairgenerate(String phrase, String passphrase)Generates a KeyPairfrom a seed phrase and a passphraseKeyPairgenerate(Sequence<String> words, String passphrase)Generates a KeyPair from seed phrase words and a passphrase abstract SeedFactorygetSeedFactory()-
-
Method Detail
-
load
abstract KeyPair load(ByteArray seedOrPrivateKey)
Loads seed to create a KeyPair
- Parameters:
seedOrPrivateKey- The seed data or private key which is used to generate aKeyPairobject
-
generate
KeyPair generate(Integer wordCount, String passphrase)
Generates a KeyPair from a word count and a passphrase.
-
generate
KeyPair generate(Mnemonic mnemonic, String passphrase)
Generates a KeyPair from a mnemonic and a passphrase
-
generate
KeyPair generate(String phrase, String passphrase)
Generates a
KeyPairfrom a seed phrase and a passphrase
-
generate
KeyPair generate(Sequence<String> words, String passphrase)
Generates a KeyPair from seed phrase words and a passphrase
-
getSeedFactory
abstract SeedFactory getSeedFactory()
-
-
-
-