Module

Cardano.Wallet.Cip95.TypeSafe

#TxSignError

type TxSignError = { code :: TxSignErrorTag, info :: String }

#enable

enable :: WalletName -> Aff (Variant (apiError :: APIError, success :: Api))

Enables wallet and reads CIP-95 API if the wallet is available.

#getPubDrepKey

getPubDrepKey :: Api -> Aff (Variant (apiError :: APIError, success :: PubDrepKey))

Get the public DRep key associated with the connected wallet.

#getRegisteredPubStakeKeys

getRegisteredPubStakeKeys :: Api -> Aff (Variant (apiError :: APIError, success :: Array PubStakeKey))

Get the registered public stake keys associated with the connected wallet.

#getUnregisteredPubStakeKeys

getUnregisteredPubStakeKeys :: Api -> Aff (Variant (apiError :: APIError, success :: Array PubStakeKey))

Get the unregistered public stake keys associated with the connected wallet.

#signTx

signTx :: Api -> Cbor -> Boolean -> Aff (Variant (apiError :: APIError, success :: Cbor, txSignError :: TxSignError))

Request the wallet to inspect and provide appropriate witnesses for the supplied transaction.

#signData

signData :: Api -> String -> Bytes -> Aff (Variant (apiError :: APIError, dataSignError :: DataSignError, success :: DataSignature))

Request the wallet to inspect and provide a cryptographic signature for the supplied data.

Re-exports from Cardano.Wallet.Cip30.TypeSafe

#DataSignError

type DataSignError = { code :: DataSignErrorTag, info :: String }

#APIError

type APIError = { code :: APIErrorTag, info :: String }

#_txSignError

_txSignError :: Proxy "txSignError"

#_success

_success :: Proxy "success"

#_dataSignError

_dataSignError :: Proxy "dataSignError"

#_apiError

_apiError :: Proxy "apiError"

Re-exports from Cardano.Wallet.Cip95

#WalletName

#PubStakeKey

type PubStakeKey = String

A hex-encoded string representing 32-byte Ed25519 public key used as a staking credential.

#PubDrepKey

type PubDrepKey = String

A hex-encoded string representing 32-byte Ed25519 DRep public key, as described in CIP-0105.

Modules