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