Skip to content

Commit

Permalink
fixup! cardano-ledger upgrade: use VRFVerKeyHash type and KeyRoleVRF …
Browse files Browse the repository at this point in the history
…subtype
  • Loading branch information
neilmayhew committed Nov 21, 2024
1 parent e6c7d52 commit 07d57f1
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions cardano-api/internal/Cardano/Api/Certificate.hs
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ import Data.Text (Text)
import qualified Data.Text as Text
import qualified Data.Text.Encoding as Text
import Data.Typeable
import GHC.Exts (IsList (..), coerce, fromString)
import GHC.Exts (IsList (..), fromString)
import Network.Socket (PortNumber)

-- ----------------------------------------------------------------------------
Expand Down Expand Up @@ -366,7 +366,7 @@ data GenesisKeyDelegationRequirements ere where
:: ShelleyToBabbageEra era
-> Hash GenesisKey
-> Hash GenesisDelegateKey
-> Hash VrfKey
-> Ledger.VRFVerKeyHash Ledger.GenDelegVRF StandardCrypto
-> GenesisKeyDelegationRequirements era

makeGenesisKeyDelegationCertificate :: GenesisKeyDelegationRequirements era -> Certificate era
Expand All @@ -375,14 +375,12 @@ makeGenesisKeyDelegationCertificate
atMostEra
(GenesisKeyHash hGenKey)
(GenesisDelegateKeyHash hGenDelegKey)
(VrfKeyHash hVrfKey)
hVrfKey
) =
ShelleyRelatedCertificate atMostEra $
shelleyToBabbageEraConstraints atMostEra $
Ledger.ShelleyTxCertGenesisDeleg $
Ledger.GenesisDelegCert hGenKey hGenDelegKey $
-- Cast key role from StakePoolVRF to GenDelegVRF - FIXME
coerce hVrfKey
Ledger.GenesisDelegCert hGenKey hGenDelegKey hVrfKey

data MirCertificateRequirements era where
MirCertificateRequirements
Expand Down

0 comments on commit 07d57f1

Please sign in to comment.