plutus-use-cases-0.1.0.0: Collection of smart contracts to develop the plutus/wallet interface
Safe HaskellNone
LanguageHaskell2010

Plutus.Contracts.PubKey

Description

A "pay-to-pubkey" transaction output implemented as a Plutus contract. This is useful if you need something that behaves like a pay-to-pubkey output, but is not (easily) identified by wallets as one.

Synopsis

Documentation

pubKeyContract :: forall w s e. AsPubKeyError e => PaymentPubKeyHash -> Value -> Contract w s e (TxOutRef, Maybe ChainIndexTxOut, TypedValidator PubKeyContract) Source #

Lock some funds in a PayToPubKey contract, returning the output's address and a TxIn transaction input that can spend it.

data PubKeyError Source #

Instances

Instances details
Eq PubKeyError Source # 
Instance details

Defined in Plutus.Contracts.PubKey

Show PubKeyError Source # 
Instance details

Defined in Plutus.Contracts.PubKey

Generic PubKeyError Source # 
Instance details

Defined in Plutus.Contracts.PubKey

Associated Types

type Rep PubKeyError :: Type -> Type Source #

ToJSON PubKeyError Source # 
Instance details

Defined in Plutus.Contracts.PubKey

FromJSON PubKeyError Source # 
Instance details

Defined in Plutus.Contracts.PubKey

AsContractError PubKeyError Source # 
Instance details

Defined in Plutus.Contracts.PubKey

AsPubKeyError PubKeyError Source # 
Instance details

Defined in Plutus.Contracts.PubKey

type Rep PubKeyError Source # 
Instance details

Defined in Plutus.Contracts.PubKey

type Rep PubKeyError = D1 ('MetaData "PubKeyError" "Plutus.Contracts.PubKey" "plutus-use-cases-0.1.0.0-sCb7ThsvWbFT6VPXrOzPF" 'False) (C1 ('MetaCons "ScriptOutputMissing" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 PaymentPubKeyHash)) :+: (C1 ('MetaCons "MultipleScriptOutputs" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 PaymentPubKeyHash)) :+: C1 ('MetaCons "PKContractError" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ContractError))))