Skip to content

Commit

Permalink
Switch from cryptonite to crypton
Browse files Browse the repository at this point in the history
The former is deprecated in favor of the latter which is is drop in
replacement. This change also requires a bump in the major version
of `cardano-crypto-class` and related packages from `2.1.*` to
`2.2.*`. No changes are required in Plutus for this change, but
`cardano-ledger` does not currently support `2.2.*`.
  • Loading branch information
erikd committed Nov 8, 2024
1 parent 038b7c8 commit a4c90d2
Show file tree
Hide file tree
Showing 7 changed files with 32 additions and 12 deletions.
28 changes: 21 additions & 7 deletions cabal.project
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ repository cardano-haskell-packages
-- update either of these.
index-state:
-- Bump both the following dates if you need newer packages from Hackage
, hackage.haskell.org 2024-10-16T00:00:00Z
, hackage.haskell.org 2024-10-20T22:07:04Z
-- Bump this if you need newer packages from CHaP
, cardano-haskell-packages 2024-10-16T00:00:00Z
, cardano-haskell-packages 2024-10-10T04:22:19Z

packages: cardano-constitution
plutus-benchmark
Expand Down Expand Up @@ -99,9 +99,23 @@ allow-newer:
-- allow-older: *:nothunks

-- -------------------------------------------------------------------------------------------------
-- Following currently required for building with ghc-9.10.
-- The following two SRPs do two things:
-- * switch from cryptonite package (deprecated) to crypton (drop in replacement)
-- * New major version of cardano-crypto-class which is incompatible with current
-- cardano-ledger@master

constraints:
-- The API has changed for version 2.2, ledger depends on the old version and ledger will not
-- be updated until after the Conway release.
, cardano-crypto-class ^>= 2.1
source-repository-package
type: git
location: https://github.com/IntersectMBO/cardano-crypto
tag: 790a3027a210ed3684ea9ffa1da504873d96b7de
--sha256: 1wlyvqgaf4gwzp80gpf334dwpcq2vbgywv2r31mk0iy469n1slbi

source-repository-package
type: git
location: https://github.com/IntersectMBO/cardano-base
tag: 9c48b9126f412a1a0c926e22769830170484c95e
--sha256: 0ssgg71ab2rdc3sp8fipbjipxhwg4195p2r5y5c6rv2jc9625mxc
subdir:
cardano-crypto-class
cardano-crypto-tests
cardano-mempool
2 changes: 1 addition & 1 deletion doc/notes/model/UTxO.hsproj/UTxO.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ executable UTxO
, bytestring
, containers
, cryptohash
, cryptonite
, crypton
, hashable
, memory
, template-haskell
Expand Down
2 changes: 1 addition & 1 deletion plutus-benchmark/plutus-benchmark.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,7 @@ library marlowe-internal
build-depends:
, base
, bytestring
, cardano-crypto-class >=2.1.5 && <2.3
, cardano-crypto-class
, directory
, filepath
, mtl
Expand Down
3 changes: 3 additions & 0 deletions plutus-core/changelog.d/20241023_153400_cryptonite.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
### Added

- Switch from `cryptonite` library to `crypton` (a drop in replacement).
4 changes: 2 additions & 2 deletions plutus-core/plutus-core.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -293,12 +293,12 @@ library
, bytestring
, bytestring-strict-builder
, cardano-crypto
, cardano-crypto-class ^>=2.1.5
, cardano-crypto-class ^>=2.2
, cassava
, cborg
, composition-prelude >=1.1.0.1
, containers
, cryptonite
, crypton
, data-default-class
, deepseq
, dependent-sum >=0.7.1.0
Expand Down
3 changes: 3 additions & 0 deletions plutus-metatheory/changelog.d/20241023_153400_cryptonite.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
### Added

- Switch from `cryptonite` library to `crypton` (a drop in replacement).
2 changes: 1 addition & 1 deletion plutus-metatheory/plutus-metatheory.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ library
, base
, bytestring
, composition-prelude
, cryptonite
, crypton
, extra
, filepath
, ghc-prim
Expand Down

0 comments on commit a4c90d2

Please sign in to comment.