atlas-cardano-0.6.3: 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.Key

Description

 
Synopsis

Payment verification key

data GYPaymentVerificationKey #

>>> "0717bc56ed4897c3dde0690e3d9ce61e28a55f520fde454f6b5b61305b193605" :: GYPaymentVerificationKey
GYPaymentVerificationKey "0717bc56ed4897c3dde0690e3d9ce61e28a55f520fde454f6b5b61305b193605"

Instances

Instances details
FromJSON GYPaymentVerificationKey #
>>> Aeson.eitherDecode @GYPaymentVerificationKey "\"58200717bc56ed4897c3dde0690e3d9ce61e28a55f520fde454f6b5b61305b193605\""
Right (GYPaymentVerificationKey "0717bc56ed4897c3dde0690e3d9ce61e28a55f520fde454f6b5b61305b193605")
>>> Aeson.eitherDecode @GYPaymentVerificationKey "\"58200717bc56ed4897c3dde0690e3d9ce61e28a55f520fde454f6b5b61305b193zzz\""
Left "Error in $: invalid character at offset: 65"
Instance details

Defined in GeniusYield.Types.Key

ToJSON GYPaymentVerificationKey #
>>> LBS8.putStrLn $ Aeson.encode ("0717bc56ed4897c3dde0690e3d9ce61e28a55f520fde454f6b5b61305b193605" :: GYPaymentVerificationKey)
"58200717bc56ed4897c3dde0690e3d9ce61e28a55f520fde454f6b5b61305b193605"
Instance details

Defined in GeniusYield.Types.Key

IsString GYPaymentVerificationKey # 
Instance details

Defined in GeniusYield.Types.Key

Show GYPaymentVerificationKey # 
Instance details

Defined in GeniusYield.Types.Key

PrintfArg GYPaymentVerificationKey #
>>> Printf.printf "%s\n" ("0717bc56ed4897c3dde0690e3d9ce61e28a55f520fde454f6b5b61305b193605" :: GYPaymentVerificationKey)
0717bc56ed4897c3dde0690e3d9ce61e28a55f520fde454f6b5b61305b193605
Instance details

Defined in GeniusYield.Types.Key

Eq GYPaymentVerificationKey # 
Instance details

Defined in GeniusYield.Types.Key

paymentVerificationKeyFromApiVerificationKey PaymentKeyGYPaymentVerificationKey #

>>> paymentVerificationKeyFromApi "0717bc56ed4897c3dde0690e3d9ce61e28a55f520fde454f6b5b61305b193605"
GYPaymentVerificationKey "0717bc56ed4897c3dde0690e3d9ce61e28a55f520fde454f6b5b61305b193605"

paymentVerificationKeyToApiGYPaymentVerificationKeyVerificationKey PaymentKey #

>>> paymentVerificationKeyToApi "0717bc56ed4897c3dde0690e3d9ce61e28a55f520fde454f6b5b61305b193605"
"0717bc56ed4897c3dde0690e3d9ce61e28a55f520fde454f6b5b61305b193605"

Payment signing key

data GYPaymentSigningKey #

>>> "5ac75cb3435ef38c5bf15d11469b301b13729deb9595133a608fc0881fcec290" :: GYPaymentSigningKey
GYPaymentSigningKey "5ac75cb3435ef38c5bf15d11469b301b13729deb9595133a608fc0881fcec290"

Instances

Instances details
FromJSON GYPaymentSigningKey #
>>> Aeson.eitherDecode @GYPaymentSigningKey "\"58205ac75cb3435ef38c5bf15d11469b301b13729deb9595133a608fc0881fcec290\""
Right (GYPaymentSigningKey "5ac75cb3435ef38c5bf15d11469b301b13729deb9595133a608fc0881fcec290")
>>> Aeson.eitherDecode @GYPaymentSigningKey "\"58205ac75cb3435ef38c5bf15d11469b301b13729deb9595133a608fc0881fceczzz\""
Left "Error in $: invalid character at offset: 65"
Instance details

Defined in GeniusYield.Types.Key

ToJSON GYPaymentSigningKey #
>>> LBS8.putStrLn $ Aeson.encode ("5ac75cb3435ef38c5bf15d11469b301b13729deb9595133a608fc0881fcec290" :: GYPaymentSigningKey)
"58205ac75cb3435ef38c5bf15d11469b301b13729deb9595133a608fc0881fcec290"
Instance details

Defined in GeniusYield.Types.Key

ToShelleyWitnessSigningKey GYPaymentSigningKey # 
Instance details

Defined in GeniusYield.Types.Key

IsString GYPaymentSigningKey # 
Instance details

Defined in GeniusYield.Types.Key

Show GYPaymentSigningKey # 
Instance details

Defined in GeniusYield.Types.Key

PrintfArg GYPaymentSigningKey #
>>> Printf.printf "%s\n" ("5ac75cb3435ef38c5bf15d11469b301b13729deb9595133a608fc0881fcec290" :: GYPaymentSigningKey)
5ac75cb3435ef38c5bf15d11469b301b13729deb9595133a608fc0881fcec290
Instance details

Defined in GeniusYield.Types.Key

FromField GYPaymentSigningKey # 
Instance details

Defined in GeniusYield.Types.Key

ToField GYPaymentSigningKey # 
Instance details

Defined in GeniusYield.Types.Key

Eq GYPaymentSigningKey # 
Instance details

Defined in GeniusYield.Types.Key

Ord GYPaymentSigningKey # 
Instance details

Defined in GeniusYield.Types.Key

data GYExtendedPaymentSigningKey #

Instances

Instances details
ToShelleyWitnessSigningKey GYExtendedPaymentSigningKey # 
Instance details

Defined in GeniusYield.Types.Key

IsString GYExtendedPaymentSigningKey # 
Instance details

Defined in GeniusYield.Types.Key

Show GYExtendedPaymentSigningKey # 
Instance details

Defined in GeniusYield.Types.Key

Eq GYExtendedPaymentSigningKey # 
Instance details

Defined in GeniusYield.Types.Key

Ord GYExtendedPaymentSigningKey # 
Instance details

Defined in GeniusYield.Types.Key

paymentSigningKeyFromApiSigningKey PaymentKeyGYPaymentSigningKey #

>>> paymentSigningKeyFromApi "5ac75cb3435ef38c5bf15d11469b301b13729deb9595133a608fc0881fcec290"
GYPaymentSigningKey "5ac75cb3435ef38c5bf15d11469b301b13729deb9595133a608fc0881fcec290"

paymentSigningKeyToApiGYPaymentSigningKeySigningKey PaymentKey #

>>> paymentSigningKeyToApi "5ac75cb3435ef38c5bf15d11469b301b13729deb9595133a608fc0881fcec290"
"5ac75cb3435ef38c5bf15d11469b301b13729deb9595133a608fc0881fcec290"

readPaymentSigningKeyFilePathIO GYPaymentSigningKey #

Reads a payment signing key from a file.

readExtendedPaymentSigningKeyFilePathIO GYExtendedPaymentSigningKey #

Reads extended payment signing key from file

writePaymentSigningKeyFilePathGYPaymentSigningKeyIO () #

Writes a payment signing key to a file.

writeExtendedPaymentSigningKeyFilePathGYExtendedPaymentSigningKeyIO () #

Writes a extended payment signing key to a file.

paymentVerificationKeyGYPaymentSigningKeyGYPaymentVerificationKey #

>>> paymentVerificationKey "5ac75cb3435ef38c5bf15d11469b301b13729deb9595133a608fc0881fcec290"
GYPaymentVerificationKey "0717bc56ed4897c3dde0690e3d9ce61e28a55f520fde454f6b5b61305b193605"

generatePaymentSigningKeyIO GYPaymentSigningKey #

Generates a new random payment signing key.

Stake verification key

data GYStakeVerificationKey #

>>> "0717bc56ed4897c3dde0690e3d9ce61e28a55f520fde454f6b5b61305b193605" :: GYStakeVerificationKey
GYStakeVerificationKey "0717bc56ed4897c3dde0690e3d9ce61e28a55f520fde454f6b5b61305b193605"

Instances

Instances details
FromJSON GYStakeVerificationKey #
>>> Aeson.eitherDecode @GYStakeVerificationKey "\"58200717bc56ed4897c3dde0690e3d9ce61e28a55f520fde454f6b5b61305b193605\""
Right (GYStakeVerificationKey "0717bc56ed4897c3dde0690e3d9ce61e28a55f520fde454f6b5b61305b193605")
>>> Aeson.eitherDecode @GYStakeVerificationKey "\"58200717bc56ed4897c3dde0690e3d9ce61e28a55f520fde454f6b5b61305b193zzz\""
Left "Error in $: invalid character at offset: 65"
Instance details

Defined in GeniusYield.Types.Key

ToJSON GYStakeVerificationKey #
>>> LBS8.putStrLn $ Aeson.encode ("0717bc56ed4897c3dde0690e3d9ce61e28a55f520fde454f6b5b61305b193605" :: GYStakeVerificationKey)
"58200717bc56ed4897c3dde0690e3d9ce61e28a55f520fde454f6b5b61305b193605"
Instance details

Defined in GeniusYield.Types.Key

IsString GYStakeVerificationKey # 
Instance details

Defined in GeniusYield.Types.Key

Show GYStakeVerificationKey # 
Instance details

Defined in GeniusYield.Types.Key

PrintfArg GYStakeVerificationKey #
>>> Printf.printf "%s\n" ("0717bc56ed4897c3dde0690e3d9ce61e28a55f520fde454f6b5b61305b193605" :: GYStakeVerificationKey)
0717bc56ed4897c3dde0690e3d9ce61e28a55f520fde454f6b5b61305b193605
Instance details

Defined in GeniusYield.Types.Key

Eq GYStakeVerificationKey # 
Instance details

Defined in GeniusYield.Types.Key

stakeVerificationKeyFromApiVerificationKey StakeKeyGYStakeVerificationKey #

>>> stakeVerificationKeyFromApi "0717bc56ed4897c3dde0690e3d9ce61e28a55f520fde454f6b5b61305b193605"
GYStakeVerificationKey "0717bc56ed4897c3dde0690e3d9ce61e28a55f520fde454f6b5b61305b193605"

stakeVerificationKeyToApiGYStakeVerificationKeyVerificationKey StakeKey #

>>> stakeVerificationKeyToApi "0717bc56ed4897c3dde0690e3d9ce61e28a55f520fde454f6b5b61305b193605"
"0717bc56ed4897c3dde0690e3d9ce61e28a55f520fde454f6b5b61305b193605"

Stake signing key

data GYStakeSigningKey #

>>> "5ac75cb3435ef38c5bf15d11469b301b13729deb9595133a608fc0881fcec290" :: GYStakeSigningKey
GYStakeSigningKey "5ac75cb3435ef38c5bf15d11469b301b13729deb9595133a608fc0881fcec290"

Instances

Instances details
FromJSON GYStakeSigningKey #
>>> Aeson.eitherDecode @GYStakeSigningKey "\"58205ac75cb3435ef38c5bf15d11469b301b13729deb9595133a608fc0881fcec290\""
Right (GYStakeSigningKey "5ac75cb3435ef38c5bf15d11469b301b13729deb9595133a608fc0881fcec290")
>>> Aeson.eitherDecode @GYStakeSigningKey "\"58205ac75cb3435ef38c5bf15d11469b301b13729deb9595133a608fc0881fceczzz\""
Left "Error in $: invalid character at offset: 65"
Instance details

Defined in GeniusYield.Types.Key

ToJSON GYStakeSigningKey #
>>> LBS8.putStrLn $ Aeson.encode ("5ac75cb3435ef38c5bf15d11469b301b13729deb9595133a608fc0881fcec290" :: GYStakeSigningKey)
"58205ac75cb3435ef38c5bf15d11469b301b13729deb9595133a608fc0881fcec290"
Instance details

Defined in GeniusYield.Types.Key

ToShelleyWitnessSigningKey GYStakeSigningKey # 
Instance details

Defined in GeniusYield.Types.Key

IsString GYStakeSigningKey # 
Instance details

Defined in GeniusYield.Types.Key

Show GYStakeSigningKey # 
Instance details

Defined in GeniusYield.Types.Key

PrintfArg GYStakeSigningKey #
>>> Printf.printf "%s\n" ("5ac75cb3435ef38c5bf15d11469b301b13729deb9595133a608fc0881fcec290" :: GYStakeSigningKey)
5ac75cb3435ef38c5bf15d11469b301b13729deb9595133a608fc0881fcec290
Instance details

Defined in GeniusYield.Types.Key

FromField GYStakeSigningKey # 
Instance details

Defined in GeniusYield.Types.Key

ToField GYStakeSigningKey # 
Instance details

Defined in GeniusYield.Types.Key

Eq GYStakeSigningKey # 
Instance details

Defined in GeniusYield.Types.Key

Ord GYStakeSigningKey # 
Instance details

Defined in GeniusYield.Types.Key

data GYExtendedStakeSigningKey #

Instances

Instances details
ToShelleyWitnessSigningKey GYExtendedStakeSigningKey # 
Instance details

Defined in GeniusYield.Types.Key

IsString GYExtendedStakeSigningKey # 
Instance details

Defined in GeniusYield.Types.Key

Show GYExtendedStakeSigningKey # 
Instance details

Defined in GeniusYield.Types.Key

Eq GYExtendedStakeSigningKey # 
Instance details

Defined in GeniusYield.Types.Key

Ord GYExtendedStakeSigningKey # 
Instance details

Defined in GeniusYield.Types.Key

stakeSigningKeyFromApiSigningKey StakeKeyGYStakeSigningKey #

>>> stakeSigningKeyFromApi "5ac75cb3435ef38c5bf15d11469b301b13729deb9595133a608fc0881fcec290"
GYStakeSigningKey "5ac75cb3435ef38c5bf15d11469b301b13729deb9595133a608fc0881fcec290"

stakeSigningKeyToApiGYStakeSigningKeySigningKey StakeKey #

>>> stakeSigningKeyToApi "5ac75cb3435ef38c5bf15d11469b301b13729deb9595133a608fc0881fcec290"
"5ac75cb3435ef38c5bf15d11469b301b13729deb9595133a608fc0881fcec290"

readStakeSigningKeyFilePathIO GYStakeSigningKey #

Reads a stake signing key from a file.

readExtendedStakeSigningKeyFilePathIO GYExtendedStakeSigningKey #

Reads extended stake signing key from file

writeStakeSigningKeyFilePathGYStakeSigningKeyIO () #

Writes a stake signing key to a file.

writeExtendedStakeSigningKeyFilePathGYExtendedStakeSigningKeyIO () #

Writes a extended stake signing key to a file.

stakeVerificationKeyGYStakeSigningKeyGYStakeVerificationKey #

>>> stakeVerificationKey "5ac75cb3435ef38c5bf15d11469b301b13729deb9595133a608fc0881fcec290"
GYStakeVerificationKey "0717bc56ed4897c3dde0690e3d9ce61e28a55f520fde454f6b5b61305b193605"

generateStakeSigningKeyIO GYStakeSigningKey #

Generates a new random stake signing key.