File tree 4 files changed +7
-4
lines changed 4 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -154,6 +154,7 @@ library
154
154
, cardano-client
155
155
, cardano-crypto
156
156
, cardano-crypto-class
157
+ , cardano-crypto-praos
157
158
, cardano-crypto-wrapper
158
159
, cardano-data
159
160
, cardano-db
Original file line number Diff line number Diff line change @@ -37,6 +37,7 @@ import Ouroboros.Consensus.Cardano.Node
37
37
import Ouroboros.Consensus.Config (TopLevelConfig (.. ), emptyCheckpointsMap )
38
38
import Ouroboros.Consensus.Ledger.Basics (LedgerConfig )
39
39
import Ouroboros.Consensus.Node.ProtocolInfo (ProtocolInfo )
40
+ import Ouroboros.Consensus.Cardano.Block (StandardCrypto )
40
41
import qualified Ouroboros.Consensus.Node.ProtocolInfo as Consensus
41
42
import Ouroboros.Consensus.Shelley.Node (ShelleyGenesis (.. ))
42
43
@@ -85,7 +86,7 @@ mkTopLevelConfig cfg = Consensus.pInfoConfig $ fst $ mkProtocolInfoCardano cfg [
85
86
-- mkProtocolCardano :: GenesisConfig -> Protocol m CardanoBlock CardanoProtocol
86
87
mkProtocolInfoCardano ::
87
88
GenesisConfig ->
88
- [Consensus. ShelleyLeaderCredentials c ] -> -- this is not empty only in tests
89
+ [Consensus. ShelleyLeaderCredentials StandardCrypto ] -> -- this is not empty only in tests
89
90
(ProtocolInfo CardanoBlock , IO [BlockForging IO CardanoBlock ])
90
91
mkProtocolInfoCardano genesisConfig shelleyCred =
91
92
protocolInfoCardano $
Original file line number Diff line number Diff line change @@ -140,8 +140,8 @@ data SyncNodeConfig = SyncNodeConfig
140
140
, dncConwayGenesisFile :: ! (Maybe GenesisFile )
141
141
, dncConwayGenesisHash :: ! (Maybe GenesisHashConway )
142
142
, 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 ))
145
145
, dncMaryHardFork :: ! (CardanoHardForkTrigger (ShelleyBlock (TPraos StandardCrypto ) MaryEra ))
146
146
, dncAlonzoHardFork :: ! (CardanoHardForkTrigger (ShelleyBlock (TPraos StandardCrypto ) AlonzoEra ))
147
147
, dncBabbageHardFork :: ! (CardanoHardForkTrigger (ShelleyBlock (Praos StandardCrypto ) BabbageEra ))
Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ module Cardano.DbSync.Util.Bech32 (
16
16
import Cardano.Crypto.Hash.Class (hashFromBytes , hashToBytes )
17
17
import Cardano.Crypto.VRF.Class (rawDeserialiseVerKeyVRF , rawSerialiseVerKeyVRF )
18
18
import Cardano.Ledger.Crypto (VRF (.. ), StandardCrypto ())
19
+ import Cardano.Crypto.VRF.Praos (PraosVRF )
19
20
import Cardano.Ledger.Keys (KeyHash (.. ), KeyRole (.. ), VerKeyVRF ())
20
21
import Cardano.Prelude
21
22
import Codec.Binary.Bech32
@@ -52,7 +53,7 @@ deserialiseFromBech32 s = decodeLenient' s >>= dataPartToBytes'
52
53
53
54
54
55
-- | Serialise a Verification Key to bech32 address
55
- serialiseVerKeyVrfToBech32 :: VerKeyVRF (VRF StandardCrypto ) -> Text
56
+ serialiseVerKeyVrfToBech32 :: VerKeyVRF (VRF PraosVRF ) -> Text
56
57
serialiseVerKeyVrfToBech32 =
57
58
serialiseToBech32 " vrf_vk" . rawSerialiseVerKeyVRF
58
59
You can’t perform that action at this time.
0 commit comments