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

Address deserialization #2750

Merged
merged 2 commits into from
Apr 27, 2022
Merged

Address deserialization #2750

merged 2 commits into from
Apr 27, 2022

Conversation

lehins
Copy link
Collaborator

@lehins lehins commented Apr 24, 2022

This PR improves performance of Address and RewardAcnt types, but most importantly it makes deserialization more stringent starting with Babbage. Fixes #2729

Requires IntersectMBO/cardano-base#274

@lehins lehins force-pushed the lehins/address-serialization branch from 1fbf81f to cd5c7d0 Compare April 25, 2022 08:29
Copy link
Contributor

@JaredCorduan JaredCorduan left a comment

Choose a reason for hiding this comment

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

The bulk of the review was done in a call, thanks for all the context @lehins. looks good to me!

shell.nix Outdated Show resolved Hide resolved
nc6
nc6 previously requested changes Apr 26, 2022
Copy link
Contributor

@nc6 nc6 left a comment

Choose a reason for hiding this comment

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

Just the hls thing!

shell.nix Outdated Show resolved Hide resolved
@lehins lehins force-pushed the lehins/address-serialization branch from 32bb206 to 4d311a0 Compare April 27, 2022 16:19
* Implement new more stringent deserialization for `Addr` and `RewardAcnt`

* Add property tests for new decompacting method

* Make Babbage `TxBody` use new deserialization, while keeping fromCBOR
  backwards compatible everywhere else

* Update `cardano-base` and use newer `iohk-nix` sources

* Add benchmarks for compacting/uncompacting of addresses

* Add a benchmark that verifies lazy access to address fields
@lehins lehins force-pushed the lehins/address-serialization branch from 4d311a0 to d020487 Compare April 27, 2022 18:31
@lehins lehins requested a review from nc6 April 27, 2022 19:47
@lehins lehins dismissed nc6’s stale review April 27, 2022 19:48

Addressed Nicks feedback. Do not need to wait for rereview. Permission got from Jared.

@lehins lehins merged commit 3e9ed95 into master Apr 27, 2022
@iohk-bors iohk-bors bot deleted the lehins/address-serialization branch April 27, 2022 20:58
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.

Handling of broken Alonzo address missing from the spec
3 participants