atlas-cardano-0.9.0: Application backend for Plutus smart contracts on Cardano
Copyright(c) 2023 GYELD GMBH
LicenseApache 2.0
Maintainer[email protected]
Stabilitydevelop
Safe HaskellSafe-Inferred
LanguageGHC2021

GeniusYield.Types.Credential

Description

 
Synopsis

Credential.

data GYCredential (kr ∷ GYKeyRole) #

Credential.

Instances

Instances details
SingGYKeyRoleI kr ⇒ Show (GYCredential kr) # 
Instance details

Defined in GeniusYield.Types.Credential

Methods

showsPrecIntGYCredential kr → ShowS #

showGYCredential kr → String #

showList ∷ [GYCredential kr] → ShowS #

SingGYKeyRoleI kr ⇒ PrintfArg (GYCredential kr) #
>>> Printf.printf "%s\n" $ pcred
Key credential (GYKeyRolePayment): ec91ac77b581ba928db86cd91d11e64032450677c6b80748ce0b9a81
Instance details

Defined in GeniusYield.Types.Credential

Eq (GYCredential kr) # 
Instance details

Defined in GeniusYield.Types.Credential

Methods

(==)GYCredential kr → GYCredential kr → Bool #

(/=)GYCredential kr → GYCredential kr → Bool #

Ord (GYCredential kr) # 
Instance details

Defined in GeniusYield.Types.Credential

Methods

compareGYCredential kr → GYCredential kr → Ordering #

(<)GYCredential kr → GYCredential kr → Bool #

(<=)GYCredential kr → GYCredential kr → Bool #

(>)GYCredential kr → GYCredential kr → Bool #

(>=)GYCredential kr → GYCredential kr → Bool #

maxGYCredential kr → GYCredential kr → GYCredential kr #

minGYCredential kr → GYCredential kr → GYCredential kr #

Hashable (GYCredential kr) # 
Instance details

Defined in GeniusYield.Types.Credential

Methods

hashWithSaltIntGYCredential kr → Int #

hashGYCredential kr → Int #

credentialToHexTextGYCredential kr → Text #

Get hexadecimal value of credential.

>>> credentialToHexText pcred
"ec91ac77b581ba928db86cd91d11e64032450677c6b80748ce0b9a81"
>>> credentialToHexText scred
"464eeee89f05aff787d40045af2a40a83fd96c513197d32fbc54ff02"

Payment credential.

type GYPaymentCredential = GYCredential 'GYKeyRolePayment #

Payment credential. type GYPaymentCredential = GYCredential 'GYKeyRolePayment

paymentCredentialToApiGYPaymentCredentialPaymentCredential #

Convert GY type to corresponding type in cardano-node library.

paymentCredentialFromApiPaymentCredentialGYPaymentCredential #

Get GY type from corresponding type in cardano-node library.

paymentCredentialToLedgerGYPaymentCredentialCredential Payment StandardCrypto #

Convert to corresponding ledger representation.

paymentCredentialToPlutusGYPaymentCredentialCredential #

Convert GY type to corresponding type in plutus library.

paymentCredentialToHexTextGYPaymentCredentialText #

Get hexadecimal value of payment credential.

paymentCredentialToBech32GYPaymentCredentialText #

Get the bech32 encoding for the given credential.

Stake credential.

type GYStakeCredential = GYCredential 'GYKeyRoleStaking #

Stake credential. type GYStakeCredential = GYCredential 'GYKeyRoleStaking

stakeCredentialToApiGYStakeCredentialStakeCredential #

Convert GY type to corresponding type in cardano-api library.

stakeCredentialFromApiStakeCredentialGYStakeCredential #

Get GY type from corresponding type in cardano-api library.

stakeCredentialToLedgerGYStakeCredentialCredential Staking StandardCrypto #

Convert to corresponding ledger type.

stakeCredentialFromLedgerCredential Staking StandardCryptoGYStakeCredential #

Convert from corresponding ledger type.

stakeCredentialToPlutusGYStakeCredentialCredential #

Convert GY type to corresponding type in plutus library.

stakeCredentialToHexTextGYStakeCredentialText #

Get hexadecimal value of stake credential.