Copyright | (c) 2023 GYELD GMBH |
---|---|
License | Apache 2.0 |
Maintainer | [email protected] |
Stability | develop |
Safe Haskell | Safe-Inferred |
Language | GHC2021 |
Synopsis
- data GYCredential (kr ∷ GYKeyRole)
- credentialToHexText ∷ GYCredential kr → Text
- credentialToLedger ∷ GYCredential kr → Credential (GYKeyRoleToLedger kr) StandardCrypto
- credentialFromLedger ∷ Credential (GYKeyRoleToLedger kr) StandardCrypto → GYCredential kr
- credentialToPlutus ∷ GYCredential kr → Credential
- type GYPaymentCredential = GYCredential 'GYKeyRolePayment
- pattern GYPaymentCredentialByKey ∷ GYKeyHash 'GYKeyRolePayment → GYPaymentCredential
- pattern GYPaymentCredentialByScript ∷ GYScriptHash → GYPaymentCredential
- paymentCredentialToApi ∷ GYPaymentCredential → PaymentCredential
- paymentCredentialFromApi ∷ PaymentCredential → GYPaymentCredential
- paymentCredentialToLedger ∷ GYPaymentCredential → Credential Payment StandardCrypto
- paymentCredentialFromLedger ∷ Credential Payment StandardCrypto → GYPaymentCredential
- paymentCredentialToPlutus ∷ GYPaymentCredential → Credential
- paymentCredentialToHexText ∷ GYPaymentCredential → Text
- paymentCredentialToBech32 ∷ GYPaymentCredential → Text
- type GYStakeCredential = GYCredential 'GYKeyRoleStaking
- pattern GYStakeCredentialByKey ∷ GYStakeKeyHash → GYStakeCredential
- pattern GYStakeCredentialByScript ∷ GYScriptHash → GYStakeCredential
- stakeCredentialToApi ∷ GYStakeCredential → StakeCredential
- stakeCredentialFromApi ∷ StakeCredential → GYStakeCredential
- stakeCredentialToLedger ∷ GYStakeCredential → Credential Staking StandardCrypto
- stakeCredentialFromLedger ∷ Credential Staking StandardCrypto → GYStakeCredential
- stakeCredentialToPlutus ∷ GYStakeCredential → Credential
- stakeCredentialToHexText ∷ GYStakeCredential → Text
Credential.
data GYCredential (kr ∷ GYKeyRole) #
Credential.
Instances
credentialToHexText ∷ GYCredential 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
pattern GYPaymentCredentialByScript ∷ GYScriptHash → GYPaymentCredential #
paymentCredentialToApi ∷ GYPaymentCredential → PaymentCredential #
Convert GY
type to corresponding type in cardano-node
library.
paymentCredentialFromApi ∷ PaymentCredential → GYPaymentCredential #
Get GY
type from corresponding type in cardano-node
library.
paymentCredentialToLedger ∷ GYPaymentCredential → Credential Payment StandardCrypto #
Convert to corresponding ledger representation.
paymentCredentialToPlutus ∷ GYPaymentCredential → Credential #
Convert GY
type to corresponding type in plutus
library.
paymentCredentialToHexText ∷ GYPaymentCredential → Text #
Get hexadecimal value of payment credential.
paymentCredentialToBech32 ∷ GYPaymentCredential → Text #
Get the bech32 encoding for the given credential.
Stake credential.
type GYStakeCredential = GYCredential 'GYKeyRoleStaking #
Stake credential.
type GYStakeCredential = GYCredential 'GYKeyRoleStaking
pattern GYStakeCredentialByKey ∷ GYStakeKeyHash → GYStakeCredential #
pattern GYStakeCredentialByScript ∷ GYScriptHash → GYStakeCredential #
stakeCredentialToApi ∷ GYStakeCredential → StakeCredential #
Convert GY
type to corresponding type in cardano-api
library.
stakeCredentialFromApi ∷ StakeCredential → GYStakeCredential #
Get GY
type from corresponding type in cardano-api
library.
stakeCredentialToLedger ∷ GYStakeCredential → Credential Staking StandardCrypto #
Convert to corresponding ledger type.
stakeCredentialFromLedger ∷ Credential Staking StandardCrypto → GYStakeCredential #
Convert from corresponding ledger type.
stakeCredentialToPlutus ∷ GYStakeCredential → Credential #
Convert GY
type to corresponding type in plutus
library.
stakeCredentialToHexText ∷ GYStakeCredential → Text #
Get hexadecimal value of stake credential.