Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Primitive wallet
Synopsis
- newtype Wallet = Wallet {}
- paymentCredential ∷ Wallet → PaymentCredential
- verificationKeyHash ∷ Wallet → Hash PaymentKey
- shelleyPaymentCredential ∷ Wallet → PaymentCredential StandardCrypto
- address ∷ NetworkId → Wallet → Address ShelleyAddr
- addressInEra ∷ IsShelleyBasedEra era ⇒ NetworkId → Wallet → AddressInEra era
- privateKey ∷ Wallet → Text
- generateWallet ∷ IO Wallet
- parse ∷ Text → Either Bech32DecodeError Wallet
- signTx ∷ IsShelleyBasedEra era ⇒ Wallet → Tx era → Tx era
- addSignature ∷ IsShelleyBasedEra era ⇒ SigningKey PaymentKey → Tx era → Tx era
- addSignatureExtended ∷ IsShelleyBasedEra era ⇒ SigningKey PaymentExtendedKey → Tx era → Tx era
- selectAdaInputsCovering ∷ UtxoSet ctx a → Lovelace → Maybe (Lovelace, [TxIn])
- selectAnyInputsCovering ∷ UtxoSet ctx a → Lovelace → Maybe (Lovelace, [TxIn])
- selectMixedInputsCovering ∷ UtxoSet ctx a → [(PolicyId, AssetName, Quantity)] → Maybe (Value, [TxIn])
Documentation
paymentCredential ∷ Wallet → PaymentCredential Source #
The wallet's payment credential (public key)
verificationKeyHash ∷ Wallet → Hash PaymentKey Source #
Verification key hash of the wallet
addressInEra ∷ IsShelleyBasedEra era ⇒ NetworkId → Wallet → AddressInEra era Source #
privateKey ∷ Wallet → Text Source #
The wallet's private key (serialised)
signTx ∷ IsShelleyBasedEra era ⇒ Wallet → Tx era → Tx era Source #
Add the wallet's signature to the signatures of the transaction
addSignature ∷ IsShelleyBasedEra era ⇒ SigningKey PaymentKey → Tx era → Tx era Source #
Sign the transaction body with the signing key and attach the signature to the transaction
addSignatureExtended ∷ IsShelleyBasedEra era ⇒ SigningKey PaymentExtendedKey → Tx era → Tx era Source #
Sign the transaction body with the extended signing key and attach the signature to the transaction
UTxOs and coin selection
selectAdaInputsCovering ∷ UtxoSet ctx a → Lovelace → Maybe (Lovelace, [TxIn]) Source #
Select Ada-only inputs that cover the given amount of lovelace