| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Mantra.Wallet
Contents
Description
Key management.
Synopsis
- type SomePaymentVerificationKey = Either (VerificationKey PaymentKey) (VerificationKey PaymentExtendedKey)
- readVerificationKey :: MonadIO m => FilePath -> MantraM m SomePaymentVerificationKey
- type SomePaymentSigningKey = Either (SigningKey PaymentKey) (SigningKey PaymentExtendedKey)
- readSigningKey :: MonadIO m => FilePath -> MantraM m SomePaymentSigningKey
- makeVerificationKeyHash :: SomePaymentVerificationKey -> Hash PaymentKey
- readAddress :: Monad m => String -> MantraM m AddressAny
- showAddress :: AddressAny -> String
- showAddressInEra :: IsCardanoEra era => AddressInEra era -> String
- stakeReference :: AddressAny -> StakeAddressReference
- stakeReferenceInEra :: IsShelleyBasedEra era => AddressInEra era -> StakeAddressReference
Keys
type SomePaymentVerificationKey = Either (VerificationKey PaymentKey) (VerificationKey PaymentExtendedKey) Source #
A payment verification key.
Arguments
| :: MonadIO m | |
| => FilePath | Path to the key. |
| -> MantraM m SomePaymentVerificationKey | Action to read the key. |
Read a payment verification key.
type SomePaymentSigningKey = Either (SigningKey PaymentKey) (SigningKey PaymentExtendedKey) Source #
A payment signing key.
Arguments
| :: MonadIO m | |
| => FilePath | Path to the key. |
| -> MantraM m SomePaymentSigningKey | Action to read the key. |
Read a signing key.
makeVerificationKeyHash Source #
Arguments
| :: SomePaymentVerificationKey | The key. |
| -> Hash PaymentKey | The hash. |
Compute a verification hash.
Addresses
Arguments
| :: Monad m | |
| => String | The string representation. |
| -> MantraM m AddressAny | Action to parse the address. |
Parse an address.
Arguments
| :: AddressAny | The address. |
| -> String | The string representation. |
Show an address.
Arguments
| :: IsCardanoEra era | |
| => AddressInEra era | The address. |
| -> String | The string representation. |
Show a era-based address.
Stake addresses
Arguments
| :: AddressAny | The payment address. |
| -> StakeAddressReference | The stake address. |
Extract a stake address from a payment address.
Arguments
| :: IsShelleyBasedEra era | |
| => AddressInEra era | The payment address. |
| -> StakeAddressReference | The stake address. |
Extract a stake address from a payment address.