case class KeyPair(pk: EdDSAPublicKey, sk: EdDSAPrivateKey) extends PublicKeyOps with Product with Serializable
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- KeyPair
- Serializable
- Product
- Equals
- PublicKeyOps
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Instance Constructors
- new KeyPair(pk: EdDSAPublicKey, sk: EdDSAPrivateKey)
Value Members
- def accountId: String
- returns
the human readable account ID
- Definition Classes
- PublicKeyOps
- def asPublicKey: PublicKey
This key pair or verifying key without the private key.
This key pair or verifying key without the private key.
- Definition Classes
- PublicKeyOps
- def encode: LazyList[Byte]
- Definition Classes
- PublicKeyOps
- def hint: Array[Byte]
A four-byte code that provides a hint to the identity of this public key
A four-byte code that provides a hint to the identity of this public key
- Definition Classes
- PublicKeyOps
- val pk: EdDSAPublicKey
- Definition Classes
- KeyPair → PublicKeyOps
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- def publicKey: Array[Byte]
- Definition Classes
- PublicKeyOps
- def secretSeed: Seq[Char]
Returns the human readable secret seed encoded in strkey.
- def sign(data: Array[Byte]): Signature
Sign the provided data with the private key.
Sign the provided data with the private key.
- data
The data to sign.
- returns
signed bytes.
- val sk: EdDSAPrivateKey
- def toAccountId: AccountId
- Definition Classes
- PublicKeyOps
- def toString(): String
- Definition Classes
- KeyPair → AnyRef → Any
- def verify(data: Array[Byte], signature: Array[Byte]): Boolean
Verify the provided data and signature match.
Verify the provided data and signature match.
- data
The data that was signed.
- signature
The signature.
- returns
True if they match, false otherwise.
- Definition Classes
- PublicKeyOps
- def xdr: org.stellar.xdr.PublicKey
- Definition Classes
- PublicKeyOps