Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch from cryptonite to crypton #6575

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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-11-11T20:52:53Z
-- Bump this if you need newer packages from CHaP
, cardano-haskell-packages 2024-10-16T00:00:00Z
, cardano-haskell-packages 2024-11-05T09:09:23Z

packages: cardano-constitution
plutus-benchmark
Expand Down Expand Up @@ -93,9 +93,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
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This constraint here seems superfluous.

, 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
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Latest master version of cardano-base

, 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
Loading