Skip to content

Commit 6edd909

Browse files
authored
Merge pull request #4800 from IntersectMBO/lehins/move-crypto-class
Move Crypto class to `cardano-protocol-tpraos`
2 parents c66a1f6 + a71de40 commit 6edd909

File tree

261 files changed

+896
-1217
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

261 files changed

+896
-1217
lines changed

RELEASING.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -317,6 +317,8 @@ list of such packages as of today:
317317
* `libs/cardano-ledger-test`
318318
* `libs/plutus-preprocessor`
319319
* `libs/ledger-state`
320+
* `libs/cardano-ledger-conformance`
321+
* `libs/cardano-ledger-repl-environment`
320322

321323
Above list is likely to change in the future.
322324

eras/allegra/impl/cardano-ledger-allegra.cabal

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ library
6868
bytestring,
6969
cardano-ledger-binary >=1.4,
7070
cardano-ledger-core >=1.17 && <1.18,
71-
cardano-ledger-shelley ^>=1.15,
71+
cardano-ledger-shelley ^>=1.16,
7272
cardano-slotting,
7373
cardano-strict-containers,
7474
cborg,

eras/allegra/impl/src/Cardano/Ledger/Allegra/Rules/Utxo.hs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ import Cardano.Ledger.Binary.Coders
4242
import Cardano.Ledger.CertState (certDState, dsGenDelegs)
4343
import Cardano.Ledger.Coin (Coin)
4444
import Cardano.Ledger.Rules.ValidationMode (Test, runTest)
45-
import Cardano.Ledger.SafeHash (SafeHash, hashAnnotated)
4645
import qualified Cardano.Ledger.Shelley.LedgerState as Shelley
4746
import Cardano.Ledger.Shelley.PParams (Update)
4847
import Cardano.Ledger.Shelley.Rules (

eras/allegra/impl/src/Cardano/Ledger/Allegra/Scripts.hs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,6 @@ import Cardano.Ledger.Binary.Coders (
7070
(<*!),
7171
)
7272
import Cardano.Ledger.Core
73-
import Cardano.Ledger.Keys (KeyHash (..), KeyRole (Witness))
7473
import Cardano.Ledger.MemoBytes (
7574
EqRaw (..),
7675
Mem,
@@ -80,7 +79,6 @@ import Cardano.Ledger.MemoBytes (
8079
mkMemoBytes,
8180
mkMemoized,
8281
)
83-
import Cardano.Ledger.SafeHash (SafeToHash)
8482
import Cardano.Ledger.Shelley.Scripts (
8583
ShelleyEraScript (..),
8684
nativeMultiSigTag,

eras/allegra/impl/src/Cardano/Ledger/Allegra/TxAuxData.hs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,6 @@ import Cardano.Ledger.Binary (
4040
peekTokenType,
4141
)
4242
import Cardano.Ledger.Binary.Coders
43-
import Cardano.Ledger.Core (
44-
Era (..),
45-
EraTxAuxData (..),
46-
)
47-
import Cardano.Ledger.Hashes (EraIndependentTxAuxData)
4843
import Cardano.Ledger.MemoBytes (
4944
EqRaw,
5045
Mem,
@@ -56,7 +51,7 @@ import Cardano.Ledger.MemoBytes (
5651
lensMemoRawType,
5752
mkMemoized,
5853
)
59-
import Cardano.Ledger.SafeHash (HashAnnotated, SafeToHash, hashAnnotated)
54+
import Cardano.Ledger.Shelley.Core
6055
import Cardano.Ledger.Shelley.TxAuxData (Metadatum, ShelleyTxAuxData (..), validMetadatum)
6156
import Codec.CBOR.Decoding (
6257
TokenType (

eras/allegra/impl/src/Cardano/Ledger/Allegra/TxBody/Internal.hs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,6 @@ import Cardano.Ledger.MemoBytes (
8181
lensMemoRawType,
8282
mkMemoized,
8383
)
84-
import Cardano.Ledger.SafeHash (HashAnnotated (..), SafeToHash)
8584
import Cardano.Ledger.Shelley.Core
8685
import Cardano.Ledger.Shelley.PParams (Update (..), upgradeUpdate)
8786
import Cardano.Ledger.Shelley.TxBody (getShelleyGenesisKeyHashCountTxBody)

eras/allegra/impl/testlib/Test/Cardano/Ledger/Allegra/ImpTest.hs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ import Cardano.Ledger.Allegra.Scripts (
2020
pattern RequireTimeExpire,
2121
pattern RequireTimeStart,
2222
)
23-
import Cardano.Ledger.Keys (KeyHash, KeyRole (..))
2423
import Cardano.Ledger.Shelley.Scripts (
2524
pattern RequireAllOf,
2625
pattern RequireAnyOf,

eras/alonzo/impl/cardano-ledger-alonzo.cabal

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ library
8383
cardano-ledger-binary ^>=1.6,
8484
cardano-ledger-core ^>=1.17,
8585
cardano-ledger-mary ^>=1.8,
86-
cardano-ledger-shelley ^>=1.15,
86+
cardano-ledger-shelley ^>=1.16,
8787
cardano-slotting,
8888
cardano-strict-containers,
8989
containers,

eras/alonzo/impl/src/Cardano/Ledger/Alonzo.hs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ import Cardano.Ledger.Alonzo.TxBody (AlonzoTxBody, AlonzoTxOut)
3131
import Cardano.Ledger.Alonzo.TxWits ()
3232
import Cardano.Ledger.Alonzo.UTxO ()
3333
import Cardano.Ledger.Core
34-
import Cardano.Ledger.Keys (DSignable)
3534
import Cardano.Ledger.Mary.Value (MaryValue)
3635
import Cardano.Ledger.Plutus.Data ()
3736
import Cardano.Ledger.Rules.ValidationMode (applySTSNonStatic)
@@ -63,7 +62,7 @@ reapplyAlonzoTx globals env state vtx =
6362
$ TRC (env, state, extractTx vtx)
6463
in liftEither . left ApplyTxError $ res
6564

66-
instance DSignable (Hash EraIndependentTxBody) => ApplyTx AlonzoEra where
65+
instance ApplyTx AlonzoEra where
6766
reapplyTx = reapplyAlonzoTx
6867

69-
instance DSignable (Hash EraIndependentTxBody) => ApplyBlock AlonzoEra
68+
instance ApplyBlock AlonzoEra

eras/alonzo/impl/src/Cardano/Ledger/Alonzo/Plutus/TxInfo.hs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@ import Cardano.Ledger.Binary.Coders (
6262
(<!),
6363
)
6464
import Cardano.Ledger.Coin (Coin (..))
65-
import Cardano.Ledger.Keys (unVRFVerKeyHash)
6665
import Cardano.Ledger.Mary.Value (
6766
AssetName (..),
6867
MaryValue (..),
@@ -74,7 +73,6 @@ import Cardano.Ledger.Plutus.Language (Language (..), LegacyPlutusArgs (..), Plu
7473
import Cardano.Ledger.Plutus.TxInfo
7574
import Cardano.Ledger.PoolParams (PoolParams (..))
7675
import Cardano.Ledger.Rules.ValidationMode (Inject (..))
77-
import Cardano.Ledger.SafeHash (hashAnnotated)
7876
import qualified Cardano.Ledger.Shelley.HardForks as HardForks
7977
import Cardano.Ledger.TxIn (TxIn (..), txInToText)
8078
import Cardano.Ledger.UTxO (UTxO (..))

0 commit comments

Comments
 (0)