atlas-0.1.0.0: Application backend for Plutus smart contracts on Cardano
Copyright(c) 2023 GYELD GMBH
LicenseApache 2.0
Maintainersupport@geniusyield.co
Stabilitydevelop
Safe HaskellNone
LanguageHaskell2010

GeniusYield.Types.Key

Description

 
Synopsis

Payment verification key

data GYPaymentVerificationKey #

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

Instances

Instances details
Eq GYPaymentVerificationKey # 
Instance details

Defined in GeniusYield.Types.Key

Show GYPaymentVerificationKey # 
Instance details

Defined in GeniusYield.Types.Key

IsString GYPaymentVerificationKey # 
Instance details

Defined in GeniusYield.Types.Key

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

Defined in GeniusYield.Types.Key

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

Methods

parseJSON ∷ Value → Parser GYPaymentVerificationKey #

parseJSONList ∷ Value → Parser [GYPaymentVerificationKey] #

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

Defined in GeniusYield.Types.Key

paymentVerificationKeyFromApi ∷ VerificationKey PaymentKey → GYPaymentVerificationKey #

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

paymentVerificationKeyToApi ∷ GYPaymentVerificationKey → VerificationKey PaymentKey #

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

Payment signing key

data GYPaymentSigningKey #

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

Instances

Instances details
Eq GYPaymentSigningKey # 
Instance details

Defined in GeniusYield.Types.Key

Ord GYPaymentSigningKey # 
Instance details

Defined in GeniusYield.Types.Key

Show GYPaymentSigningKey # 
Instance details

Defined in GeniusYield.Types.Key

IsString GYPaymentSigningKey # 
Instance details

Defined in GeniusYield.Types.Key

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

Defined in GeniusYield.Types.Key

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

Methods

parseJSON ∷ Value → Parser GYPaymentSigningKey #

parseJSONList ∷ Value → Parser [GYPaymentSigningKey] #

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

Defined in GeniusYield.Types.Key

Methods

toJSON ∷ GYPaymentSigningKey → Value #

toEncoding ∷ GYPaymentSigningKey → Encoding #

toJSONList ∷ [GYPaymentSigningKey] → Value #

toEncodingList ∷ [GYPaymentSigningKey] → Encoding #

ToField GYPaymentSigningKey # 
Instance details

Defined in GeniusYield.Types.Key

Methods

toField ∷ GYPaymentSigningKey → Field

FromField GYPaymentSigningKey # 
Instance details

Defined in GeniusYield.Types.Key

Methods

parseField ∷ Field → Parser GYPaymentSigningKey

ToShelleyWitnessSigningKey GYPaymentSigningKey # 
Instance details

Defined in GeniusYield.Types.Key

Methods

toShelleyWitnessSigningKey ∷ GYPaymentSigningKey → ShelleyWitnessSigningKey #

data GYExtendedPaymentSigningKey #

Instances

Instances details
Eq GYExtendedPaymentSigningKey # 
Instance details

Defined in GeniusYield.Types.Key

Ord GYExtendedPaymentSigningKey # 
Instance details

Defined in GeniusYield.Types.Key

Show GYExtendedPaymentSigningKey # 
Instance details

Defined in GeniusYield.Types.Key

IsString GYExtendedPaymentSigningKey # 
Instance details

Defined in GeniusYield.Types.Key

ToShelleyWitnessSigningKey GYExtendedPaymentSigningKey # 
Instance details

Defined in GeniusYield.Types.Key

Methods

toShelleyWitnessSigningKey ∷ GYExtendedPaymentSigningKey → ShelleyWitnessSigningKey #

paymentSigningKeyFromApi ∷ SigningKey PaymentKey → GYPaymentSigningKey #

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

extendedPaymentSigningKeyFromApi ∷ SigningKey PaymentExtendedKey → GYExtendedPaymentSigningKey #

paymentSigningKeyToApi ∷ GYPaymentSigningKey → SigningKey PaymentKey #

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

paymentSigningKeyToLedger ∷ GYPaymentSigningKey → SignKeyDSIGN StandardCrypto #

paymentSigningKeyToLedgerKeyPair ∷ GYPaymentSigningKey → KeyPair r StandardCrypto #

readPaymentSigningKey ∷ FilePath → IO GYPaymentSigningKey #

Reads a payment signing key from a file.

readExtendedPaymentSigningKey ∷ FilePath → IO GYExtendedPaymentSigningKey #

Reads extended payment signing key from file

writePaymentSigningKey ∷ FilePath → GYPaymentSigningKey → IO () #

Writes a payment signing key to a file.

paymentVerificationKey ∷ GYPaymentSigningKey → GYPaymentVerificationKey #

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

generatePaymentSigningKey ∷ IO GYPaymentSigningKey #

Generates a new random payment signing key.