Copyright | (c) 2023 GYELD GMBH |
---|---|
License | Apache 2.0 |
Maintainer | [email protected] |
Stability | develop |
Safe Haskell | Safe-Inferred |
Language | GHC2021 |
Synopsis
- data GYPaymentVerificationKey
- paymentVerificationKeyFromApi ∷ VerificationKey PaymentKey → GYPaymentVerificationKey
- paymentVerificationKeyToApi ∷ GYPaymentVerificationKey → VerificationKey PaymentKey
- paymentVerificationKeyToLedger ∷ GYPaymentVerificationKey → VKey r StandardCrypto
- paymentVerificationKeyRawBytes ∷ GYPaymentVerificationKey → ByteString
- pubKeyHash ∷ GYPaymentVerificationKey → GYPubKeyHash
- paymentKeyHash ∷ GYPaymentVerificationKey → GYPaymentKeyHash
- data GYPaymentSigningKey
- data GYExtendedPaymentSigningKey
- paymentSigningKeyFromApi ∷ SigningKey PaymentKey → GYPaymentSigningKey
- extendedPaymentSigningKeyFromApi ∷ SigningKey PaymentExtendedKey → GYExtendedPaymentSigningKey
- paymentSigningKeyToApi ∷ GYPaymentSigningKey → SigningKey PaymentKey
- extendedPaymentSigningKeyToApi ∷ GYExtendedPaymentSigningKey → SigningKey PaymentExtendedKey
- paymentSigningKeyToLedger ∷ GYPaymentSigningKey → SignKeyDSIGN StandardCrypto
- paymentSigningKeyToLedgerKeyPair ∷ GYPaymentSigningKey → KeyPair r StandardCrypto
- paymentSigningKeyFromLedgerKeyPair ∷ KeyPair r StandardCrypto → GYPaymentSigningKey
- readPaymentSigningKey ∷ FilePath → IO GYPaymentSigningKey
- readExtendedPaymentSigningKey ∷ FilePath → IO GYExtendedPaymentSigningKey
- writePaymentSigningKey ∷ FilePath → GYPaymentSigningKey → IO ()
- writeExtendedPaymentSigningKey ∷ FilePath → GYExtendedPaymentSigningKey → IO ()
- paymentVerificationKey ∷ GYPaymentSigningKey → GYPaymentVerificationKey
- generatePaymentSigningKey ∷ IO GYPaymentSigningKey
- data GYStakeVerificationKey
- stakeVerificationKeyFromApi ∷ VerificationKey StakeKey → GYStakeVerificationKey
- stakeVerificationKeyToApi ∷ GYStakeVerificationKey → VerificationKey StakeKey
- stakeKeyHash ∷ GYStakeVerificationKey → GYStakeKeyHash
- stakeVerificationKeyToLedger ∷ GYStakeVerificationKey → VKey r StandardCrypto
- data GYStakeSigningKey
- data GYExtendedStakeSigningKey
- stakeSigningKeyFromApi ∷ SigningKey StakeKey → GYStakeSigningKey
- extendedStakeSigningKeyFromApi ∷ SigningKey StakeExtendedKey → GYExtendedStakeSigningKey
- stakeSigningKeyToApi ∷ GYStakeSigningKey → SigningKey StakeKey
- extendedStakeSigningKeyToApi ∷ GYExtendedStakeSigningKey → SigningKey StakeExtendedKey
- stakeSigningKeyToLedger ∷ GYStakeSigningKey → SignKeyDSIGN StandardCrypto
- stakeSigningKeyToLedgerKeyPair ∷ GYStakeSigningKey → KeyPair r StandardCrypto
- stakeSigningKeyFromLedgerKeyPair ∷ KeyPair r StandardCrypto → GYStakeSigningKey
- readStakeSigningKey ∷ FilePath → IO GYStakeSigningKey
- readExtendedStakeSigningKey ∷ FilePath → IO GYExtendedStakeSigningKey
- writeStakeSigningKey ∷ FilePath → GYStakeSigningKey → IO ()
- writeExtendedStakeSigningKey ∷ FilePath → GYExtendedStakeSigningKey → IO ()
- stakeVerificationKey ∷ GYStakeSigningKey → GYStakeVerificationKey
- generateStakeSigningKey ∷ IO GYStakeSigningKey
- data GYSomeSigningKey = ∀ a.(ToShelleyWitnessSigningKey a, Show a) ⇒ GYSomeSigningKey a
- readSomeSigningKey ∷ FilePath → IO GYSomeSigningKey
- data GYSomePaymentSigningKey
- readSomePaymentSigningKey ∷ FilePath → IO GYSomePaymentSigningKey
- somePaymentSigningKeyToSomeSigningKey ∷ GYSomePaymentSigningKey → GYSomeSigningKey
Payment verification key
data GYPaymentVerificationKey #
>>>
"0717bc56ed4897c3dde0690e3d9ce61e28a55f520fde454f6b5b61305b193605" :: GYPaymentVerificationKey
GYPaymentVerificationKey "0717bc56ed4897c3dde0690e3d9ce61e28a55f520fde454f6b5b61305b193605"
Instances
FromJSON GYPaymentVerificationKey # |
|
ToJSON GYPaymentVerificationKey # |
|
IsString GYPaymentVerificationKey # | |
Defined in GeniusYield.Types.Key | |
Show GYPaymentVerificationKey # | |
Defined in GeniusYield.Types.Key | |
PrintfArg GYPaymentVerificationKey # |
|
Eq GYPaymentVerificationKey # | |
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
FromJSON GYPaymentSigningKey # |
|
ToJSON GYPaymentSigningKey # |
|
Defined in GeniusYield.Types.Key | |
ToShelleyWitnessSigningKey GYPaymentSigningKey # | |
IsString GYPaymentSigningKey # | |
Defined in GeniusYield.Types.Key | |
Show GYPaymentSigningKey # | |
Defined in GeniusYield.Types.Key showsPrec ∷ Int → GYPaymentSigningKey → ShowS # show ∷ GYPaymentSigningKey → String # showList ∷ [GYPaymentSigningKey] → ShowS # | |
PrintfArg GYPaymentSigningKey # |
|
FromField GYPaymentSigningKey # | |
Defined in GeniusYield.Types.Key | |
ToField GYPaymentSigningKey # | |
Defined in GeniusYield.Types.Key | |
Eq GYPaymentSigningKey # | |
Defined in GeniusYield.Types.Key | |
Ord GYPaymentSigningKey # | |
Defined in GeniusYield.Types.Key compare ∷ GYPaymentSigningKey → GYPaymentSigningKey → Ordering # (<) ∷ GYPaymentSigningKey → GYPaymentSigningKey → Bool # (<=) ∷ GYPaymentSigningKey → GYPaymentSigningKey → Bool # (>) ∷ GYPaymentSigningKey → GYPaymentSigningKey → Bool # (>=) ∷ GYPaymentSigningKey → GYPaymentSigningKey → Bool # max ∷ GYPaymentSigningKey → GYPaymentSigningKey → GYPaymentSigningKey # min ∷ GYPaymentSigningKey → GYPaymentSigningKey → GYPaymentSigningKey # |
data GYExtendedPaymentSigningKey #
Instances
paymentSigningKeyFromApi ∷ SigningKey PaymentKey → GYPaymentSigningKey #
>>>
paymentSigningKeyFromApi "5ac75cb3435ef38c5bf15d11469b301b13729deb9595133a608fc0881fcec290"
GYPaymentSigningKey "5ac75cb3435ef38c5bf15d11469b301b13729deb9595133a608fc0881fcec290"
paymentSigningKeyToApi ∷ GYPaymentSigningKey → SigningKey PaymentKey #
>>>
paymentSigningKeyToApi "5ac75cb3435ef38c5bf15d11469b301b13729deb9595133a608fc0881fcec290"
"5ac75cb3435ef38c5bf15d11469b301b13729deb9595133a608fc0881fcec290"
paymentSigningKeyToLedgerKeyPair ∷ GYPaymentSigningKey → KeyPair r StandardCrypto #
paymentSigningKeyFromLedgerKeyPair ∷ KeyPair r StandardCrypto → GYPaymentSigningKey #
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.
writeExtendedPaymentSigningKey ∷ FilePath → GYExtendedPaymentSigningKey → IO () #
Writes a extended payment signing key to a file.
paymentVerificationKey ∷ GYPaymentSigningKey → GYPaymentVerificationKey #
>>>
paymentVerificationKey "5ac75cb3435ef38c5bf15d11469b301b13729deb9595133a608fc0881fcec290"
GYPaymentVerificationKey "0717bc56ed4897c3dde0690e3d9ce61e28a55f520fde454f6b5b61305b193605"
generatePaymentSigningKey ∷ IO GYPaymentSigningKey #
Generates a new random payment signing key.
Stake verification key
data GYStakeVerificationKey #
>>>
"0717bc56ed4897c3dde0690e3d9ce61e28a55f520fde454f6b5b61305b193605" :: GYStakeVerificationKey
GYStakeVerificationKey "0717bc56ed4897c3dde0690e3d9ce61e28a55f520fde454f6b5b61305b193605"
Instances
FromJSON GYStakeVerificationKey # |
|
ToJSON GYStakeVerificationKey # |
|
IsString GYStakeVerificationKey # | |
Defined in GeniusYield.Types.Key | |
Show GYStakeVerificationKey # | |
Defined in GeniusYield.Types.Key | |
PrintfArg GYStakeVerificationKey # |
|
Eq GYStakeVerificationKey # | |
Defined in GeniusYield.Types.Key |
stakeVerificationKeyFromApi ∷ VerificationKey StakeKey → GYStakeVerificationKey #
>>>
stakeVerificationKeyFromApi "0717bc56ed4897c3dde0690e3d9ce61e28a55f520fde454f6b5b61305b193605"
GYStakeVerificationKey "0717bc56ed4897c3dde0690e3d9ce61e28a55f520fde454f6b5b61305b193605"
stakeVerificationKeyToApi ∷ GYStakeVerificationKey → VerificationKey StakeKey #
>>>
stakeVerificationKeyToApi "0717bc56ed4897c3dde0690e3d9ce61e28a55f520fde454f6b5b61305b193605"
"0717bc56ed4897c3dde0690e3d9ce61e28a55f520fde454f6b5b61305b193605"
Stake signing key
data GYStakeSigningKey #
>>>
"5ac75cb3435ef38c5bf15d11469b301b13729deb9595133a608fc0881fcec290" :: GYStakeSigningKey
GYStakeSigningKey "5ac75cb3435ef38c5bf15d11469b301b13729deb9595133a608fc0881fcec290"
Instances
FromJSON GYStakeSigningKey # |
|
Defined in GeniusYield.Types.Key | |
ToJSON GYStakeSigningKey # |
|
Defined in GeniusYield.Types.Key | |
ToShelleyWitnessSigningKey GYStakeSigningKey # | |
IsString GYStakeSigningKey # | |
Defined in GeniusYield.Types.Key | |
Show GYStakeSigningKey # | |
Defined in GeniusYield.Types.Key showsPrec ∷ Int → GYStakeSigningKey → ShowS # show ∷ GYStakeSigningKey → String # showList ∷ [GYStakeSigningKey] → ShowS # | |
PrintfArg GYStakeSigningKey # |
|
FromField GYStakeSigningKey # | |
Defined in GeniusYield.Types.Key | |
ToField GYStakeSigningKey # | |
Defined in GeniusYield.Types.Key | |
Eq GYStakeSigningKey # | |
Defined in GeniusYield.Types.Key | |
Ord GYStakeSigningKey # | |
Defined in GeniusYield.Types.Key compare ∷ GYStakeSigningKey → GYStakeSigningKey → Ordering # (<) ∷ GYStakeSigningKey → GYStakeSigningKey → Bool # (<=) ∷ GYStakeSigningKey → GYStakeSigningKey → Bool # (>) ∷ GYStakeSigningKey → GYStakeSigningKey → Bool # (>=) ∷ GYStakeSigningKey → GYStakeSigningKey → Bool # max ∷ GYStakeSigningKey → GYStakeSigningKey → GYStakeSigningKey # min ∷ GYStakeSigningKey → GYStakeSigningKey → GYStakeSigningKey # |
data GYExtendedStakeSigningKey #
Instances
stakeSigningKeyFromApi ∷ SigningKey StakeKey → GYStakeSigningKey #
>>>
stakeSigningKeyFromApi "5ac75cb3435ef38c5bf15d11469b301b13729deb9595133a608fc0881fcec290"
GYStakeSigningKey "5ac75cb3435ef38c5bf15d11469b301b13729deb9595133a608fc0881fcec290"
stakeSigningKeyToApi ∷ GYStakeSigningKey → SigningKey StakeKey #
>>>
stakeSigningKeyToApi "5ac75cb3435ef38c5bf15d11469b301b13729deb9595133a608fc0881fcec290"
"5ac75cb3435ef38c5bf15d11469b301b13729deb9595133a608fc0881fcec290"
stakeSigningKeyToLedgerKeyPair ∷ GYStakeSigningKey → KeyPair r StandardCrypto #
stakeSigningKeyFromLedgerKeyPair ∷ KeyPair r StandardCrypto → GYStakeSigningKey #
readStakeSigningKey ∷ FilePath → IO GYStakeSigningKey #
Reads a stake signing key from a file.
readExtendedStakeSigningKey ∷ FilePath → IO GYExtendedStakeSigningKey #
Reads extended stake signing key from file
writeStakeSigningKey ∷ FilePath → GYStakeSigningKey → IO () #
Writes a stake signing key to a file.
writeExtendedStakeSigningKey ∷ FilePath → GYExtendedStakeSigningKey → IO () #
Writes a extended stake signing key to a file.
stakeVerificationKey ∷ GYStakeSigningKey → GYStakeVerificationKey #
>>>
stakeVerificationKey "5ac75cb3435ef38c5bf15d11469b301b13729deb9595133a608fc0881fcec290"
GYStakeVerificationKey "0717bc56ed4897c3dde0690e3d9ce61e28a55f520fde454f6b5b61305b193605"
generateStakeSigningKey ∷ IO GYStakeSigningKey #
Generates a new random stake signing key.
data GYSomeSigningKey #
∀ a.(ToShelleyWitnessSigningKey a, Show a) ⇒ GYSomeSigningKey a |
data GYSomePaymentSigningKey #