Module

Contract.Wallet.Key

KeyWallet type and its utility functions.

#publicKeyFromPrivateKey

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

Re-exports from Cardano.Wallet.Key

#KeyWallet

newtype KeyWallet

An interface that wraps PrivateKeys. Used in CTL. Technically, can be implemented with remote calls, e.g. over HTTP, to provide signing services without revealing the private key.

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