Skip to content

Update to crypton == 1.1 and replace memory package with ram - #5999

Merged
koslambrou merged 3 commits into
masterfrom
erikd/ram
Sep 5, 2026
Merged

Update to crypton == 1.1 and replace memory package with ram#5999
koslambrou merged 3 commits into
masterfrom
erikd/ram

Conversation

@erikd

@erikd erikd commented Aug 12, 2026

Copy link
Copy Markdown
Contributor

Description

  • Depends on updated cardano-cls SRP.
  • Replace (unmaintained) memory package with ram.
  • Widen bounds on cardano-crypto-class dependency.

Will be using this as a SRP on a experimental branch of cardano-node.

Checklist

  • Commits in meaningful sequence and with useful messages.
  • Tests added or updated when needed.
  • CHANGELOG.md files updated for packages with externally visible changes.
    NOTE: New section is never added with the code changes. (See RELEASING.md).
  • Versions updated in .cabal and CHANGELOG.md files when necessary, according to the
    versioning process.
  • Version bounds in .cabal files updated when necessary.
    NOTE: If bounds change in a cabal file, that package itself must have a version increase. (See RELEASING.md).
  • Code formatted (use scripts/fourmolize.sh).
  • Cabal files formatted (use scripts/cabal-format.sh).
  • CDDL files are up to date (use cleret cabal run generate-cddl)
  • hie.yaml updated (use scripts/gen-hie.sh).
  • Self-reviewed the diff.

Copilot AI lite review requested due to automatic review settings August 12, 2026 07:20
@erikd
erikd requested a review from a team as a code owner August 12, 2026 07:20
@erikd
erikd marked this pull request as draft August 12, 2026 07:20

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Updates dependency bounds and build inputs across multiple ledger packages to support newer cardano-crypto-class and refresh crypto/build tooling. This aligns with the stated goal of moving to crypton 1.1-compatible tooling, replacing the unmaintained memory package with ram, and updating the cardano-cls SRP pin.

Changes:

  • Widen cardano-crypto-class upper bounds to <2.7 across several packages and record it in their changelogs.
  • Update cardano-crypto-wrapper to crypton ^>=1.1, replace memory with ram, and bump its version/changelog accordingly.
  • Refresh build pins (cabal.project index-state and cardano-cls SRP; Nix flake.lock inputs).

Reviewed changes

Copilot reviewed 15 out of 16 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
libs/cardano-protocol/CHANGELOG.md Notes widened cardano-crypto-class upper bound in release notes.
libs/cardano-protocol/cardano-protocol.cabal Widens cardano-crypto-class upper bound to <2.7.
libs/cardano-protocol-tpraos/CHANGELOG.md Notes widened cardano-crypto-class upper bound for the unreleased version.
libs/cardano-protocol-tpraos/cardano-protocol-tpraos.cabal Widens cardano-crypto-class upper bound to <2.7 (but needs version alignment with changelog).
libs/cardano-ledger-core/CHANGELOG.md Notes widened cardano-crypto-class upper bound in release notes.
libs/cardano-ledger-core/cardano-ledger-core.cabal Widens cardano-crypto-class upper bound to <2.7.
libs/cardano-ledger-binary/CHANGELOG.md Notes widened cardano-crypto-class upper bound for the unreleased version.
libs/cardano-ledger-binary/cardano-ledger-binary.cabal Widens cardano-crypto-class upper bound to <2.7 (but needs version alignment with changelog).
flake.lock Updates pinned Nix inputs (CHaP and hackage.nix).
eras/shelley/impl/CHANGELOG.md Notes widened cardano-crypto-class upper bound in release notes.
eras/shelley/impl/cardano-ledger-shelley.cabal Widens cardano-crypto-class upper bound to <2.7.
eras/mary/impl/CHANGELOG.md Notes widened cardano-crypto-class upper bound in release notes.
eras/mary/impl/cardano-ledger-mary.cabal Widens cardano-crypto-class upper bound to <2.7.
eras/byron/crypto/CHANGELOG.md Records crypton ^>=1.1 and memoryram change with a version bump.
eras/byron/crypto/cardano-crypto-wrapper.cabal Bumps version to 1.8.0.0, switches to crypton ^>=1.1, and replaces memory with ram.
cabal.project Updates index-state and cardano-cls SRP pin/subdir list.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread libs/cardano-protocol-tpraos/cardano-protocol-tpraos.cabal
Comment thread libs/cardano-ledger-binary/cardano-ledger-binary.cabal
@erikd
erikd force-pushed the erikd/ram branch 7 times, most recently from f543708 to ed356ed Compare August 18, 2026 22:20
@erikd
erikd force-pushed the erikd/ram branch 3 times, most recently from a45c5b8 to 6e6d164 Compare August 25, 2026 04:54
@erikd
erikd force-pushed the erikd/ram branch 5 times, most recently from e19a532 to 218d6c3 Compare September 3, 2026 08:03
@erikd
erikd marked this pull request as ready for review September 3, 2026 09:50
koslambrou
koslambrou previously approved these changes Sep 3, 2026
@koslambrou
koslambrou dismissed their stale review September 3, 2026 19:54

Should not be approved anymore. Found issue.

Comment thread cabal.project Outdated
@koslambrou
koslambrou force-pushed the erikd/ram branch 2 times, most recently from 825327e to e99ca2a Compare September 4, 2026 17:05
@koslambrou
koslambrou force-pushed the erikd/ram branch 3 times, most recently from 6908f44 to b7abdf4 Compare September 4, 2026 18:03
@github-actions

github-actions Bot commented Sep 4, 2026

Copy link
Copy Markdown

Test Failures

The updated version uses the crypton/ram dependency in place of
the crypton/memory dependency.
Unfortunately, this also requires a crypton >= 1.1 bound on
cardano-crypto-wrapper. We cannot make the dependency on a wider
range of crypton because earlier versions depend on memory and
crypton >= 1.1 depends on ram. The only way to support both
would be to add a cabal flag.
@koslambrou
koslambrou merged commit dae0697 into master Sep 5, 2026
52 checks passed
@koslambrou
koslambrou deleted the erikd/ram branch September 5, 2026 03:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants