Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data MockWallet = MockWallet {
- mwWalletId :: Digest Blake2b_160
- mwPaymentKey :: MockPrivateKey
- mwStakeKey :: Maybe MockPrivateKey
- mwPrintAs :: Maybe String
- newtype WalletNumber = WalletNumber {}
- fromWalletNumber :: WalletNumber -> MockWallet
- toWalletNumber :: MockWallet -> WalletNumber
- knownMockWallets :: [MockWallet]
- knownMockWallet :: Integer -> MockWallet
- fromSeed :: ByteString -> Passphrase -> MockWallet
- fromSeed' :: ByteString -> MockWallet
- mockWalletAddress :: MockWallet -> CardanoAddress
- paymentPrivateKey :: MockWallet -> PaymentPrivateKey
- paymentPubKeyHash :: MockWallet -> PaymentPubKeyHash
- paymentPubKey :: MockWallet -> PaymentPubKey
- stakingCredential :: MockWallet -> Maybe StakingCredential
- stakePubKeyHash :: MockWallet -> Maybe StakePubKeyHash
- stakePubKey :: MockWallet -> Maybe StakePubKey
- knownAddresses :: [CardanoAddress]
- knownPaymentKeys :: Map PaymentPubKey PaymentPrivateKey
- knownPaymentPublicKeys :: [PaymentPubKey]
- knownPaymentPrivateKeys :: [PaymentPrivateKey]
Documentation
data MockWallet Source #
Emulated wallet with a key and a passphrase
MockWallet | |
|
Instances
Show MockWallet Source # | |
Defined in Ledger.CardanoWallet |
Enumerating wallets
newtype WalletNumber Source #
Wrapper for config files and APIs
Instances
knownMockWallets :: [MockWallet] Source #
The wallets used in mockchain simulations by default. There are ten wallets by default.
knownMockWallet :: Integer -> MockWallet Source #
Get a known wallet from an Integer
indexed from 1 to 10.
fromSeed :: ByteString -> Passphrase -> MockWallet Source #
fromSeed' :: ByteString -> MockWallet Source #
Keys
mockWalletAddress :: MockWallet -> CardanoAddress Source #
A mock cardano address for the testnet network.
paymentPrivateKey :: MockWallet -> PaymentPrivateKey Source #
Mock wallet's private key
paymentPubKeyHash :: MockWallet -> PaymentPubKeyHash Source #
The mock wallet's public key hash
paymentPubKey :: MockWallet -> PaymentPubKey Source #
The mock wallet's payment public key
stakingCredential :: MockWallet -> Maybe StakingCredential Source #
The mock wallet's staking credentials
stakePubKeyHash :: MockWallet -> Maybe StakePubKeyHash Source #
The mock wallet's stake public key hash
stakePubKey :: MockWallet -> Maybe StakePubKey Source #
The mock wallet's stake public key