object KeyPair extends Serializable
- Alphabetic
- By Inheritance
- KeyPair
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- def decodeXdr(pk: org.stellar.xdr.PublicKey): PublicKey
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def fromAccountId(accountId: String): PublicKey
Creates a new Stellar PublicKey from a strkey encoded Stellar account ID.
Creates a new Stellar PublicKey from a strkey encoded Stellar account ID.
- accountId
The strkey encoded Stellar account ID.
- returns
{ @link PublicKey}
- def fromAddress(address: String)(implicit ec: ExecutionContext): Future[PublicKey]
Returns the public key associated with the federated address.
Returns the public key associated with the federated address.
- address
formatted as
name*domain
, as per https://www.stellar.org/developers/guides/concepts/federation.html#stellar-addresses- returns
Future[{ @link PublicKey }]
- def fromMnemonic(mnemonic: Mnemonic, passphrase: ByteString = new ByteString(Array.empty[Byte]), wordList: WordList = EnglishWords, index: Int = 0): KeyPair
Creates a new Stellar keypair from a BIP-39 mnemonic phrase.
Creates a new Stellar keypair from a BIP-39 mnemonic phrase.
- mnemonic
the mnemonic phrase.
- passphrase
used when encoding the mnemonic. Defaults to empty String.
- wordList
the list of words to decode with. Defaults to English.
- index
of the deterministic wallet address. Defaults to zero.
- returns
( @link KeyPair }
- def fromMnemonicPhrase(phrase: String, passphrase: ByteString = new ByteString(Array.empty[Byte]), wordList: WordList = EnglishWords, index: Int = 0): KeyPair
Creates a new Stellar keypair from a BIP-39 mnemonic phrase.
Creates a new Stellar keypair from a BIP-39 mnemonic phrase.
- phrase
the mnemonic phrase.
- passphrase
used when encoding the mnemonic. Defaults to empty String.
- wordList
the list of words to decode with. Defaults to English.
- index
of the deterministic wallet address. Defaults to zero.
- returns
( @link KeyPair }
- def fromPassphrase(passphrase: String): KeyPair
Creates a new Stellar keypair from a passphrase.
Creates a new Stellar keypair from a passphrase.
- passphrase
the secret passphrase.
- returns
( @link KeyPair }
- def fromPublicKey(publicKey: Seq[Byte]): PublicKey
- def fromPublicKey(publicKey: Array[Byte]): PublicKey
Creates a new Stellar verifying key from a 32 byte address.
Creates a new Stellar verifying key from a 32 byte address.
- publicKey
The 32 byte public key.
- returns
{ @link PublicKey }
- def fromSecretSeed(seed: Array[Byte]): KeyPair
Creates a new Stellar keypair from a raw 32 byte secret seed.
Creates a new Stellar keypair from a raw 32 byte secret seed.
- seed
The 32 byte secret seed.
- returns
{ @link KeyPair}
- def fromSecretSeed(seed: ByteString): KeyPair
Creates a new Stellar keypair from a raw 32 byte secret seed.
Creates a new Stellar keypair from a raw 32 byte secret seed.
- seed
The 32 byte secret seed.
- returns
{ @link KeyPair}
- def fromSecretSeed(seed: String): KeyPair
Insecure Creates a new Stellar KeyPair from a strkey encoded Stellar secret seed.
Insecure Creates a new Stellar KeyPair from a strkey encoded Stellar secret seed. This method is <u>insecure</u>. Use only if you are aware of security implications.
- seed
The strkey encoded Stellar secret seed.
- returns
{ @link KeyPair}
- See also
- def fromSecretSeed(seed: Seq[Char]): KeyPair
Creates a new Stellar KeyPair from a strkey encoded Stellar secret seed.
Creates a new Stellar KeyPair from a strkey encoded Stellar secret seed.
- seed
Char array containing strkey encoded Stellar secret seed.
- returns
{ @link KeyPair}
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def random: KeyPair
Generates a random Stellar keypair.
Generates a random Stellar keypair.
- returns
a random Stellar keypair.
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated