Skip to content

Commit d319772

Browse files
committed
wip
1 parent 440ee1d commit d319772

File tree

4 files changed

+7
-4
lines changed

4 files changed

+7
-4
lines changed

cardano-db-sync/cardano-db-sync.cabal

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,7 @@ library
154154
, cardano-client
155155
, cardano-crypto
156156
, cardano-crypto-class
157+
, cardano-crypto-praos
157158
, cardano-crypto-wrapper
158159
, cardano-data
159160
, cardano-db

cardano-db-sync/src/Cardano/DbSync/Config/Cardano.hs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ import Ouroboros.Consensus.Cardano.Node
3737
import Ouroboros.Consensus.Config (TopLevelConfig (..), emptyCheckpointsMap)
3838
import Ouroboros.Consensus.Ledger.Basics (LedgerConfig)
3939
import Ouroboros.Consensus.Node.ProtocolInfo (ProtocolInfo)
40+
import Ouroboros.Consensus.Cardano.Block (StandardCrypto)
4041
import qualified Ouroboros.Consensus.Node.ProtocolInfo as Consensus
4142
import Ouroboros.Consensus.Shelley.Node (ShelleyGenesis (..))
4243

@@ -85,7 +86,7 @@ mkTopLevelConfig cfg = Consensus.pInfoConfig $ fst $ mkProtocolInfoCardano cfg [
8586
-- mkProtocolCardano :: GenesisConfig -> Protocol m CardanoBlock CardanoProtocol
8687
mkProtocolInfoCardano ::
8788
GenesisConfig ->
88-
[Consensus.ShelleyLeaderCredentials c] -> -- this is not empty only in tests
89+
[Consensus.ShelleyLeaderCredentials StandardCrypto] -> -- this is not empty only in tests
8990
(ProtocolInfo CardanoBlock, IO [BlockForging IO CardanoBlock])
9091
mkProtocolInfoCardano genesisConfig shelleyCred =
9192
protocolInfoCardano $

cardano-db-sync/src/Cardano/DbSync/Config/Types.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,8 +140,8 @@ data SyncNodeConfig = SyncNodeConfig
140140
, dncConwayGenesisFile :: !(Maybe GenesisFile)
141141
, dncConwayGenesisHash :: !(Maybe GenesisHashConway)
142142
, dncByronProtocolVersion :: !Byron.ProtocolVersion
143-
, dncShelleyHardFork :: !(CardanoHardForkTrigger (ShelleyBlock (Praos StandardCrypto) ShelleyEra))
144-
, dncAllegraHardFork :: !(CardanoHardForkTrigger (ShelleyBlock (Praos StandardCrypto) AllegraEra))
143+
, dncShelleyHardFork :: !(CardanoHardForkTrigger (ShelleyBlock (TPraos StandardCrypto) ShelleyEra))
144+
, dncAllegraHardFork :: !(CardanoHardForkTrigger (ShelleyBlock (TPraos StandardCrypto) AllegraEra))
145145
, dncMaryHardFork :: !(CardanoHardForkTrigger (ShelleyBlock (TPraos StandardCrypto) MaryEra))
146146
, dncAlonzoHardFork :: !(CardanoHardForkTrigger (ShelleyBlock (TPraos StandardCrypto) AlonzoEra))
147147
, dncBabbageHardFork :: !(CardanoHardForkTrigger (ShelleyBlock (Praos StandardCrypto) BabbageEra))

cardano-db-sync/src/Cardano/DbSync/Util/Bech32.hs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ module Cardano.DbSync.Util.Bech32 (
1616
import Cardano.Crypto.Hash.Class (hashFromBytes, hashToBytes)
1717
import Cardano.Crypto.VRF.Class (rawDeserialiseVerKeyVRF, rawSerialiseVerKeyVRF)
1818
import Cardano.Ledger.Crypto (VRF (..), StandardCrypto ())
19+
import Cardano.Crypto.VRF.Praos (PraosVRF)
1920
import Cardano.Ledger.Keys (KeyHash (..), KeyRole (..), VerKeyVRF ())
2021
import Cardano.Prelude
2122
import Codec.Binary.Bech32
@@ -52,7 +53,7 @@ deserialiseFromBech32 s = decodeLenient' s >>= dataPartToBytes'
5253

5354

5455
-- | Serialise a Verification Key to bech32 address
55-
serialiseVerKeyVrfToBech32 :: VerKeyVRF (VRF StandardCrypto) -> Text
56+
serialiseVerKeyVrfToBech32 :: VerKeyVRF (VRF PraosVRF) -> Text
5657
serialiseVerKeyVrfToBech32 =
5758
serialiseToBech32 "vrf_vk" . rawSerialiseVerKeyVRF
5859

0 commit comments

Comments
 (0)