Skip to content

Enable Dijkstra Twiddling tests, relax some decoders in PV12#5862

Draft
Soupstraw wants to merge 17 commits into
masterfrom
jj/dijkstra-twiddling
Draft

Enable Dijkstra Twiddling tests, relax some decoders in PV12#5862
Soupstraw wants to merge 17 commits into
masterfrom
jj/dijkstra-twiddling

Conversation

@Soupstraw

@Soupstraw Soupstraw commented May 27, 2026

Copy link
Copy Markdown
Contributor

Description

Blocked on:
input-output-hk/cuddle#204
input-output-hk/cuddle#203
IntersectMBO/cardano-base#665

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 scripts/gen-cddl.sh)
  • hie.yaml updated (use scripts/gen-hie.sh).
  • Self-reviewed the diff.

@Soupstraw Soupstraw changed the title Jj/dijkstra twiddling Enable Dijkstra Twiddling tests, relax some decoders in PV12 May 28, 2026
@Soupstraw Soupstraw force-pushed the jj/dijkstra-twiddling branch 2 times, most recently from 99a8140 to 13391db Compare May 28, 2026 11:26
Comment thread libs/cardano-ledger-binary/src/Cardano/Ledger/Binary/Decoding/DecCBOR.hs Outdated
Comment thread libs/cardano-ledger-binary/src/Cardano/Ledger/Binary/Decoding/DecCBOR.hs Outdated
Comment thread libs/cardano-ledger-binary/src/Cardano/Ledger/Binary/Decoding/DecCBOR.hs Outdated
Comment thread libs/cardano-ledger-binary/src/Cardano/Ledger/Binary/Decoding/Decoder.hs Outdated
Comment thread libs/cardano-ledger-binary/src/Cardano/Ledger/Binary/Decoding/Decoder.hs Outdated
Comment thread libs/cardano-ledger-binary/src/Cardano/Ledger/Binary/Decoding/Decoder.hs Outdated
Comment thread libs/cardano-ledger-binary/src/Cardano/Ledger/Binary/Decoding/Decoder.hs Outdated
Comment thread libs/cardano-ledger-binary/src/Cardano/Ledger/Binary/Decoding/Decoder.hs Outdated
Comment thread libs/cardano-ledger-binary/src/Cardano/Ledger/Binary/Decoding/Decoder.hs Outdated
Comment thread libs/cardano-ledger-binary/src/Cardano/Ledger/Binary/Decoding/Decoder.hs Outdated
@Soupstraw Soupstraw force-pushed the jj/dijkstra-twiddling branch 12 times, most recently from 5b706a6 to 4d865f8 Compare May 29, 2026 12:29
@Soupstraw Soupstraw force-pushed the jj/dijkstra-twiddling branch from 13dde78 to 1093b1c Compare June 16, 2026 12:12
neilmayhew
neilmayhew previously approved these changes Jun 17, 2026

decodeIPv4 :: Decoder s IPv4
decodeIPv4 =
toIPv4w <$> binaryGetDecoder "decodeIPv4" getWord32le

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.

I assume Cardano has done this all along, but it looks weird to me to see IP addresses using little-endian encoding, since the TCP/IP standard has always been big-endian ("network byte order") 😁

Comment on lines +65 to +68
class (Typeable a, KnownNat (Size a)) => FixedSizeBytes a where
type Size a :: Nat
rawEncode :: a -> C.Encoding
rawDeserialise :: BS.ByteString -> Maybe a

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.

Will this be removed after IntersectMBO/cardano-base#665 is merged?

Maybe you could test it with an srp for base.

@Soupstraw Soupstraw force-pushed the jj/dijkstra-twiddling branch from 1093b1c to 14c5238 Compare June 17, 2026 13:27
@Soupstraw Soupstraw force-pushed the jj/dijkstra-twiddling branch from 9edcad0 to 5ada1eb Compare June 17, 2026 13:53
@neilmayhew neilmayhew dismissed their stale review June 17, 2026 14:24

I intended to comment, not approve

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