Copyright | (c) 2023 GYELD GMBH |
---|---|
License | Apache 2.0 |
Maintainer | [email protected] |
Stability | develop |
Safe Haskell | Safe-Inferred |
Language | GHC2021 |
Synopsis
- data WalletKeys
- type Mnemonic = [Text]
- walletKeysFromMnemonic ∷ Mnemonic → Either String WalletKeys
- walletKeysFromMnemonicWithAccIndex ∷ Mnemonic → Word32 → Either String WalletKeys
- walletKeysFromMnemonicIndexed ∷ Mnemonic → Word32 → Word32 → Either String WalletKeys
- walletKeysToExtendedPaymentSigningKey ∷ WalletKeys → GYExtendedPaymentSigningKey
- walletKeysToExtendedStakeSigningKey ∷ WalletKeys → GYExtendedStakeSigningKey
- writeExtendedPaymentSigningKeyTextEnvelope ∷ Mnemonic → FilePath → IO ()
- writeStakeSigningKeyTextEnvelope ∷ Mnemonic → FilePath → IO ()
- walletKeysToAddress ∷ WalletKeys → GYNetworkId → GYAddress
Documentation
data WalletKeys #
Opaque type to represent keys of wallet.
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.