KeyPair

scalus.cardano.wallet.KeyPair
trait KeyPair

A key pair for Ed25519 signing operations.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Members list

Type members

Types

type Underlying

Value members

Abstract methods

def sign(message: ByteString): Signature

Sign a message and return the signature.

Sign a message and return the signature.

Value parameters

message

the message to sign

Attributes

Returns

64-byte Ed25519 signature

The verification (public) key - 32 bytes.

The verification (public) key - 32 bytes.

Attributes

def verify(message: ByteString, signature: Signature): Boolean

Verify a signature.

Verify a signature.

Value parameters

message

the message that was signed

signature

the signature to verify

Attributes

Returns

true if the signature is valid

Deprecated methods

def privateKeyBytes: Array[Byte]

Attributes

Deprecated
[Since version 0.13.0] Use the signing key directly
def publicKeyBytes: Array[Byte]

Attributes

Deprecated
[Since version 0.13.0] Use verificationKey.bytes instead
def sign(message: Array[Byte]): Array[Byte]

Attributes

Deprecated
[Since version 0.13.0] Use sign(ByteString) instead
def toTuple: (Array[Byte], Array[Byte])

Attributes

Deprecated
[Since version 0.13.0] Use verificationKey and signing key directly
def verify(message: Array[Byte], signature: Array[Byte]): Boolean

Attributes

Deprecated
[Since version 0.13.0] Use verify(ByteString, Signature) instead