HdKeyPair

scalus.cardano.wallet.hd.HdKeyPair
See theHdKeyPair companion class
object HdKeyPair

Attributes

Companion
class
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
HdKeyPair.type

Members list

Value members

Concrete methods

def fromExtendedKey(extendedKey: ExtendedKey)(using signer: Ed25519Signer): HdKeyPair

Create an HdKeyPair from a BIP32-Ed25519 extended key.

Create an HdKeyPair from a BIP32-Ed25519 extended key.

Derives the public key from the private key using Ed25519 base point multiplication.

Value parameters

extendedKey

the BIP32-Ed25519 extended key

Attributes

Returns

the HD key pair

def fromMnemonic(mnemonic: String, passphrase: String, path: String)(using Ed25519Signer): HdKeyPair

Create an HdKeyPair from a mnemonic at a given derivation path.

Create an HdKeyPair from a mnemonic at a given derivation path.

Uses BIP32-Ed25519 (Icarus-style) derivation which is compatible with standard Cardano wallets.

Value parameters

mnemonic

the BIP-39 mnemonic

passphrase

optional passphrase

path

the derivation path (e.g., "m/1852'/1815'/0'/0/0")

Attributes

Returns

the HD key pair

def fromMnemonic(mnemonic: String, path: String)(using Ed25519Signer): HdKeyPair

Create an HdKeyPair from a mnemonic at a given derivation path (no passphrase).

Create an HdKeyPair from a mnemonic at a given derivation path (no passphrase).

Value parameters

mnemonic

the BIP-39 mnemonic

path

the derivation path

Attributes

Returns

the HD key pair

def masterFromMnemonic(mnemonic: String, passphrase: String = ...)(using Ed25519Signer): HdKeyPair

Create a master HdKeyPair from a BIP-39 mnemonic.

Create a master HdKeyPair from a BIP-39 mnemonic.

Value parameters

mnemonic

the BIP-39 mnemonic

passphrase

optional passphrase

Attributes

Returns

the master HD key pair at path "m"