plutus-ledger-0.1.0.0: Wallet API
Safe HaskellNone
LanguageHaskell2010

Ledger.CardanoWallet

Synopsis

Documentation

data MockWallet Source #

Emulated wallet with a key and a passphrase

Constructors

MockWallet 

Fields

Instances

Instances details
Show MockWallet Source # 
Instance details

Defined in Ledger.CardanoWallet

Enumerating wallets

newtype WalletNumber Source #

Wrapper for config files and APIs

Constructors

WalletNumber 

Fields

Instances

Instances details
Eq WalletNumber Source # 
Instance details

Defined in Ledger.CardanoWallet

Ord WalletNumber Source # 
Instance details

Defined in Ledger.CardanoWallet

Show WalletNumber Source # 
Instance details

Defined in Ledger.CardanoWallet

Generic WalletNumber Source # 
Instance details

Defined in Ledger.CardanoWallet

Associated Types

type Rep WalletNumber :: Type -> Type Source #

ToJSON WalletNumber Source # 
Instance details

Defined in Ledger.CardanoWallet

FromJSON WalletNumber Source # 
Instance details

Defined in Ledger.CardanoWallet

ToHttpApiData WalletNumber Source # 
Instance details

Defined in Ledger.CardanoWallet

FromHttpApiData WalletNumber Source # 
Instance details

Defined in Ledger.CardanoWallet

type Rep WalletNumber Source # 
Instance details

Defined in Ledger.CardanoWallet

type Rep WalletNumber = D1 ('MetaData "WalletNumber" "Ledger.CardanoWallet" "plutus-ledger-0.1.0.0-BAhdPNOPbMF52ZvZJtxBkz" 'True) (C1 ('MetaCons "WalletNumber" 'PrefixI 'True) (S1 ('MetaSel ('Just "getWallet") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Integer)))

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.

Keys

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