cardano-wasm:cardano-wasi-lib
Safe HaskellNone
LanguageHaskell2010

Cardano.Wasm.Api.Wallet

Synopsis

Documentation

data WalletObject Source #

Instances

Instances details
FromJSON WalletObject Source # 
Instance details

Defined in Cardano.Wasm.Api.Wallet

Methods

parseJSON :: Value -> Parser WalletObject #

parseJSONList :: Value -> Parser [WalletObject] #

omittedField :: Maybe WalletObject #

ToJSON WalletObject Source # 
Instance details

Defined in Cardano.Wasm.Api.Wallet

Methods

toJSON :: WalletObject -> Value #

toEncoding :: WalletObject -> Encoding #

toJSONList :: [WalletObject] -> Value #

toEncodingList :: [WalletObject] -> Encoding #

omitField :: WalletObject -> Bool #

Generic WalletObject Source # 
Instance details

Defined in Cardano.Wasm.Api.Wallet

Associated Types

type Rep WalletObject 
Instance details

Defined in Cardano.Wasm.Api.Wallet

type Rep WalletObject = D1 ('MetaData "WalletObject" "Cardano.Wasm.Api.Wallet" "cardano-wasm-10.0.0.0-inplace-cardano-wasi-lib" 'False) (C1 ('MetaCons "PaymentWallet" 'PrefixI 'True) (S1 ('MetaSel ('Just "paymentWalletNetworkId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 NetworkId) :*: S1 ('MetaSel ('Just "paymentWalletPaymentSigningKey") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (SigningKey PaymentKey))) :+: C1 ('MetaCons "StakeWallet" 'PrefixI 'True) (S1 ('MetaSel ('Just "stakeWalletNetworkId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 NetworkId) :*: (S1 ('MetaSel ('Just "stakeWalletPaymentSigningKey") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (SigningKey PaymentKey)) :*: S1 ('MetaSel ('Just "stakeWalletStakeSigningKey") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (SigningKey StakeKey)))))
Show WalletObject Source # 
Instance details

Defined in Cardano.Wasm.Api.Wallet

type Rep WalletObject Source # 
Instance details

Defined in Cardano.Wasm.Api.Wallet

type Rep WalletObject = D1 ('MetaData "WalletObject" "Cardano.Wasm.Api.Wallet" "cardano-wasm-10.0.0.0-inplace-cardano-wasi-lib" 'False) (C1 ('MetaCons "PaymentWallet" 'PrefixI 'True) (S1 ('MetaSel ('Just "paymentWalletNetworkId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 NetworkId) :*: S1 ('MetaSel ('Just "paymentWalletPaymentSigningKey") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (SigningKey PaymentKey))) :+: C1 ('MetaCons "StakeWallet" 'PrefixI 'True) (S1 ('MetaSel ('Just "stakeWalletNetworkId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 NetworkId) :*: (S1 ('MetaSel ('Just "stakeWalletPaymentSigningKey") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (SigningKey PaymentKey)) :*: S1 ('MetaSel ('Just "stakeWalletStakeSigningKey") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (SigningKey StakeKey)))))

generatePaymentWalletImpl :: IO WalletObject Source #

Generate a simple payment wallet for mainnet.

generateStakeWalletImpl :: IO WalletObject Source #

Generate a stake wallet for mainnet.

restorePaymentWalletFromSigningKeyBech32Impl :: String -> IO WalletObject Source #

Restore a mainnet payment wallet from a Bech32 encoded signing key.

restoreStakeWalletFromSigningKeyBech32Impl :: String -> String -> IO WalletObject Source #

Restore a mainnet stake wallet from Bech32 encoded signing keys.

generateTestnetPaymentWalletImpl :: Int -> IO WalletObject Source #

Generate a simple payment wallet for testnet, given the testnet's network magic.

generateTestnetStakeWalletImpl :: Int -> IO WalletObject Source #

Generate a stake wallet for testnet, given the testnet's network magic.

restoreTestnetPaymentWalletFromSigningKeyBech32Impl :: Int -> String -> IO WalletObject Source #

Restore a testnet payment wallet from a Bech32 encoded signing key.

restoreTestnetStakeWalletFromSigningKeyBech32Impl :: Int -> String -> String -> IO WalletObject Source #

Restore a testnet stake wallet from Bech32 encoded signing keys.

getAddressBech32Impl :: WalletObject -> String Source #

Get the Bech32 representation of the address. (Can be shared for receiving funds.)

getBech32ForPaymentVerificationKeyImpl :: WalletObject -> String Source #

Get the Bech32 representation of the verification key of the wallet. (Can be shared for verification.)

getBech32ForPaymentSigningKeyImpl :: WalletObject -> String Source #

Get the Bech32 representation of the signing key of the wallet, if any. (Must be kept secret.)

getBech32ForStakeVerificationKeyImpl :: WalletObject -> String Source #

Get the Bech32 representation of the stake verification key of the wallet. (Can be shared for verification.)

getBech32ForStakeSigningKeyImpl :: WalletObject -> String Source #

Get the Bech32 representation of the stake signing key of the wallet, if any. (Must be kept secret.)

getBase16ForPaymentVerificationKeyHashImpl :: WalletObject -> String Source #

Get the base16 representation of the hash of the verification key of the wallet.

getBase16ForStakeVerificationKeyHashImpl :: WalletObject -> String Source #

Get the base16 representation of the hash of the stake verification key of the wallet.