plutus-ledger-api-1.39.0.0: Interface to the Plutus ledger for the Cardano ledger.
Safe HaskellSafe-Inferred
LanguageHaskell2010

PlutusLedgerApi.V1.Data.Credential

Description

Address and staking address credentials for outputs.

Synopsis

Documentation

data StakingCredential Source #

Staking credential used to assign rewards.

The staking hash constructor is the Credential required to unlock a transaction output. Either a public key credential (PubKeyHash) or a script credential (ScriptHash). Both are hashed with BLAKE2b-244. 28 byte.

The StakingPtr constructor is the certificate pointer, constructed by the given slot number, transaction and certificate indices. NB: The fields should really be all Word64, as they are implemented in Word64, but Integer is our only integral type so we need to use it instead.

Instances

Instances details
Generic StakingCredential Source # 
Instance details

Defined in PlutusLedgerApi.V1.Data.Credential

Associated Types

type Rep StakingCredentialTypeType Source #

Show StakingCredential Source # 
Instance details

Defined in PlutusLedgerApi.V1.Data.Credential

NFData StakingCredential Source # 
Instance details

Defined in PlutusLedgerApi.V1.Data.Credential

Methods

rnfStakingCredential → () Source #

Eq StakingCredential Source # 
Instance details

Defined in PlutusLedgerApi.V1.Data.Credential

Ord StakingCredential Source # 
Instance details

Defined in PlutusLedgerApi.V1.Data.Credential

HasBlueprintDefinition StakingCredential Source # 
Instance details

Defined in PlutusLedgerApi.V1.Data.Credential

Associated Types

type Unroll StakingCredential ∷ [Type] Source #

Eq StakingCredential Source # 
Instance details

Defined in PlutusLedgerApi.V1.Data.Credential

FromData StakingCredential Source # 
Instance details

Defined in PlutusLedgerApi.V1.Data.Credential

ToData StakingCredential Source # 
Instance details

Defined in PlutusLedgerApi.V1.Data.Credential

UnsafeFromData StakingCredential Source # 
Instance details

Defined in PlutusLedgerApi.V1.Data.Credential

Show StakingCredential Source # 
Instance details

Defined in PlutusLedgerApi.V1.Data.Credential

Pretty StakingCredential Source # 
Instance details

Defined in PlutusLedgerApi.V1.Data.Credential

Lift DefaultUni StakingCredential Source # 
Instance details

Defined in PlutusLedgerApi.V1.Data.Credential

Typeable DefaultUni StakingCredential Source # 
Instance details

Defined in PlutusLedgerApi.V1.Data.Credential

type Rep StakingCredential Source # 
Instance details

Defined in PlutusLedgerApi.V1.Data.Credential

type Rep StakingCredential = D1 ('MetaData "StakingCredential" "PlutusLedgerApi.V1.Data.Credential" "plutus-ledger-api-1.39.0.0-inplace" 'True) (C1 ('MetaCons "StakingCredential_6989586621679830670" 'PrefixI 'False) (S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 BuiltinData)))
type Unroll StakingCredential Source # 
Instance details

Defined in PlutusLedgerApi.V1.Data.Credential

data Credential Source #

Credentials required to unlock a transaction output.

The PubKeyCredential constructor represents the transaction that spends this output and must be signed by the private key. See PubKeyHash.

The ScriptCredential constructor represents the transaction that spends this output must include the validator script and be accepted by the validator. See ScriptHash.

Instances

Instances details
Generic Credential Source # 
Instance details

Defined in PlutusLedgerApi.V1.Data.Credential

Associated Types

type Rep CredentialTypeType Source #

Show Credential Source # 
Instance details

Defined in PlutusLedgerApi.V1.Data.Credential

NFData Credential Source # 
Instance details

Defined in PlutusLedgerApi.V1.Data.Credential

Methods

rnfCredential → () Source #

Eq Credential Source # 
Instance details

Defined in PlutusLedgerApi.V1.Data.Credential

Ord Credential Source # 
Instance details

Defined in PlutusLedgerApi.V1.Data.Credential

HasBlueprintDefinition Credential Source # 
Instance details

Defined in PlutusLedgerApi.V1.Data.Credential

Associated Types

type Unroll Credential ∷ [Type] Source #

Eq Credential Source # 
Instance details

Defined in PlutusLedgerApi.V1.Data.Credential

Methods

(==)CredentialCredentialBool Source #

FromData Credential Source # 
Instance details

Defined in PlutusLedgerApi.V1.Data.Credential

ToData Credential Source # 
Instance details

Defined in PlutusLedgerApi.V1.Data.Credential

UnsafeFromData Credential Source # 
Instance details

Defined in PlutusLedgerApi.V1.Data.Credential

Show Credential Source # 
Instance details

Defined in PlutusLedgerApi.V1.Data.Credential

Pretty Credential Source # 
Instance details

Defined in PlutusLedgerApi.V1.Data.Credential

Methods

prettyCredentialDoc ann Source #

prettyList ∷ [Credential] → Doc ann Source #

Lift DefaultUni Credential Source # 
Instance details

Defined in PlutusLedgerApi.V1.Data.Credential

Typeable DefaultUni Credential Source # 
Instance details

Defined in PlutusLedgerApi.V1.Data.Credential

type Rep Credential Source # 
Instance details

Defined in PlutusLedgerApi.V1.Data.Credential

type Rep Credential = D1 ('MetaData "Credential" "PlutusLedgerApi.V1.Data.Credential" "plutus-ledger-api-1.39.0.0-inplace" 'True) (C1 ('MetaCons "Credential_6989586621679829886" 'PrefixI 'False) (S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 BuiltinData)))
type Unroll Credential Source # 
Instance details

Defined in PlutusLedgerApi.V1.Data.Credential