atlas-cardano
Copyright(c) 2023 GYELD GMBH
LicenseApache 2.0
Maintainer[email protected]
Stabilitydevelop
Safe HaskellNone
LanguageGHC2021

GeniusYield.Types.Wallet

Description

 
Synopsis

Documentation

data WalletKeys #

Opaque type to represent keys of wallet.

type Mnemonic = [Text] #

walletKeysFromMnemonic :: Mnemonic -> Either String WalletKeys #

Derives WalletKeys from mnemonic with first account index, using derivation path 1852H1815H0H20 for stake key and derivation path 1852H1815H0H00 for payment key.

walletKeysFromMnemonicWithAccIndex :: Mnemonic -> Word32 -> Either String WalletKeys #

Derives WalletKeys from mnemonic for the given account index, using derivation path `1852H1815HiH20` for stake key and derivation path 1852H1815HiH00 for payment key where i denotes account index.

walletKeysFromMnemonicIndexed :: Mnemonic -> Word32 -> Word32 -> Either String WalletKeys #

Derives WalletKeys from mnemonic with the given account index and payment address index, thus using derivation path 1852H1815HiH20 for stake key and derivation path 1852H1815HiH0p for payment key where i denotes the account index and p denotes the given payment address index.

writeExtendedPaymentSigningKeyTextEnvelope :: Mnemonic -> FilePath -> IO () #

Deprecated: Use combination of walletKeysFromMnemonic, walletKeysToExtendedPaymentSigningKey and writeExtendedPaymentSigningKey.

Writes TextEnvelope with type PaymentExtendedSigningKeyShelley_ed25519_bip32 from mnemonic.

writeStakeSigningKeyTextEnvelope :: Mnemonic -> FilePath -> IO () #

Deprecated: Use combination of walletKeysFromMnemonic, walletKeysToExtendedStakeSigningKey and writeExtendedStakeSigningKey.

Writes TextEnvelope with type StakeExtendedSigningKeyShelley_ed25519_bip32 from mnemonic.

walletKeysToAddress :: WalletKeys -> GYNetworkId -> GYAddress #

Gives the delegation address made using extended payment and stake keys.