Module

Contract.Wallet.Key

KeyWallet type and its utility functions.

#publicKeyFromPrivateKey

publicKeyFromPrivateKey :: Warn (Text "Deprecated: use Cardano.Types.PrivateKey.toPublicKey") => PrivateKey -> PublicKey

Re-exports from Ctl.Internal.Wallet.Key

#KeyWallet

newtype KeyWallet

A wrapper over PrivateKey that provides an interface for CTL

Constructors

Instances

Re-exports from Ctl.Internal.Wallet.Spec

#Cip1852DerivationPath

type Cip1852DerivationPath = { accountIndex :: UInt, addressIndex :: UInt }

Contains non-constant parameters for a CIP-1852 derivation path. See https://cips.cardano.org/cips/cip1852/ and doc/key-management.md.

#mkKeyWalletFromMnemonic

mkKeyWalletFromMnemonic :: String -> Cip1852DerivationPath -> StakeKeyPresence -> Either String KeyWallet

Create a wallet given a mnemonic phrase, account index, address index and stake key presence flag. See doc/key-management.md for more info.

Modules