Copyright | (c) 2023 GYELD GMBH |
---|---|
License | Apache 2.0 |
Maintainer | [email protected] |
Stability | develop |
Safe Haskell | Safe-Inferred |
Language | GHC2021 |
Documentation
data GYStakeKeyHash #
Instances
FromJSON GYStakeKeyHash # |
Invalid characters:
|
Defined in GeniusYield.Types.StakeKeyHash | |
ToJSON GYStakeKeyHash # |
|
Defined in GeniusYield.Types.StakeKeyHash toJSON ∷ GYStakeKeyHash → Value # toEncoding ∷ GYStakeKeyHash → Encoding # toJSONList ∷ [GYStakeKeyHash] → Value # toEncodingList ∷ [GYStakeKeyHash] → Encoding # omitField ∷ GYStakeKeyHash → Bool # | |
AsPubKeyHash GYStakeKeyHash # | |
CanSignTx GYStakeKeyHash # | |
Defined in GeniusYield.Types.StakeKeyHash | |
IsString GYStakeKeyHash # | |
Defined in GeniusYield.Types.StakeKeyHash | |
Show GYStakeKeyHash # | |
Defined in GeniusYield.Types.StakeKeyHash showsPrec ∷ Int → GYStakeKeyHash → ShowS # show ∷ GYStakeKeyHash → String # showList ∷ [GYStakeKeyHash] → ShowS # | |
PrintfArg GYStakeKeyHash # |
|
FromField GYStakeKeyHash # |
|
Defined in GeniusYield.Types.StakeKeyHash | |
ToField GYStakeKeyHash # |
|
Defined in GeniusYield.Types.StakeKeyHash toField ∷ GYStakeKeyHash → Field # | |
Eq GYStakeKeyHash # | |
Defined in GeniusYield.Types.StakeKeyHash (==) ∷ GYStakeKeyHash → GYStakeKeyHash → Bool # (/=) ∷ GYStakeKeyHash → GYStakeKeyHash → Bool # | |
Ord GYStakeKeyHash # | |
Defined in GeniusYield.Types.StakeKeyHash compare ∷ GYStakeKeyHash → GYStakeKeyHash → Ordering # (<) ∷ GYStakeKeyHash → GYStakeKeyHash → Bool # (<=) ∷ GYStakeKeyHash → GYStakeKeyHash → Bool # (>) ∷ GYStakeKeyHash → GYStakeKeyHash → Bool # (>=) ∷ GYStakeKeyHash → GYStakeKeyHash → Bool # | |
ToSchema GYStakeKeyHash # | |
stakeKeyHashToApi ∷ GYStakeKeyHash → Hash StakeKey #
>>>
let Just skh = Aeson.decode @GYStakeKeyHash "\"7a77d120b9e86addc7388dbbb1bd2350490b7d140ab234038632334d\""
>>>
stakeKeyHashToApi skh
"7a77d120b9e86addc7388dbbb1bd2350490b7d140ab234038632334d"
stakeKeyHashFromApi ∷ Hash StakeKey → GYStakeKeyHash #
>>>
stakeKeyHashFromApi "7a77d120b9e86addc7388dbbb1bd2350490b7d140ab234038632334d"
GYStakeKeyHash "7a77d120b9e86addc7388dbbb1bd2350490b7d140ab234038632334d"
stakeKeyHashToLedger ∷ GYStakeKeyHash → KeyHash Staking StandardCrypto #
Convert to corresponding ledger type.
stakeKeyHashFromLedger ∷ KeyHash Staking StandardCrypto → GYStakeKeyHash #
Convert from corresponding ledger type.