mantra-0.4.0.0
Safe HaskellNone
LanguageHaskell2010

Mantra.Wallet

Description

Key management.

Synopsis

Keys

type SomePaymentVerificationKey = Either (VerificationKey PaymentKey) (VerificationKey PaymentExtendedKey) Source #

A payment verification key.

readVerificationKey Source #

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.

readSigningKey Source #

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

readAddress Source #

Arguments

:: Monad m 
=> String

The string representation.

-> MantraM m AddressAny

Action to parse the address.

Parse an address.

showAddress Source #

Arguments

:: AddressAny

The address.

-> String

The string representation.

Show an address.

showAddressInEra Source #

Arguments

:: IsCardanoEra era 
=> AddressInEra era

The address.

-> String

The string representation.

Show a era-based address.

Stake addresses

stakeReference Source #

Arguments

:: AddressAny

The payment address.

-> StakeAddressReference

The stake address.

Extract a stake address from a payment address.

stakeReferenceInEra Source #

Arguments

:: IsShelleyBasedEra era 
=> AddressInEra era

The payment address.

-> StakeAddressReference

The stake address.

Extract a stake address from a payment address.