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

256-bit custody atoms for better alignment with rest of the spec and greater efficiency #1705

Merged
merged 53 commits into from
Jun 16, 2020

Conversation

dankrad
Copy link
Contributor

@dankrad dankrad commented Apr 5, 2020

We previously chose 48 byte custody atoms because of the sizes of field elements in BLS signatures. However, this misalignment is not pretty when compared to the rest of the spec, and will also cause significant overhead as 48 byte integers are more expensive to handle than 32 bytes.

In comparison, the switch to 32 bytes will only require one secret re-sharing (from one prime to another prime) every nine days, so it will add only very minor overhead for MPC validators.

specs/phase1/beacon-chain.md Outdated Show resolved Hide resolved
specs/phase1/custody-game.md Outdated Show resolved Hide resolved
@dankrad
Copy link
Contributor Author

dankrad commented Apr 30, 2020

This should be ready for review, though I will probably go through the old tests again to make sure I haven't missed anything.

@hwwhww
Copy link
Contributor

hwwhww commented May 5, 2020

@dankrad FYI I fixed the conflicts from #1703

@djrtwo djrtwo force-pushed the dankrad-custody-256bit branch from 77fc50e to de03ebb Compare May 19, 2020 15:58
@hwwhww hwwhww force-pushed the dankrad-custody-256bit branch from bda206b to 8697b30 Compare June 15, 2020 07:30
tests/core/pyspec/eth2spec/test/helpers/custody.py Outdated Show resolved Hide resolved
specs/phase1/beacon-chain.md Show resolved Hide resolved
specs/phase1/custody-game.md Outdated Show resolved Hide resolved
specs/phase1/custody-game.md Outdated Show resolved Hide resolved
specs/phase1/custody-game.md Outdated Show resolved Hide resolved
@hwwhww hwwhww mentioned this pull request Jun 15, 2020
23 tasks
Copy link
Contributor

@hwwhww hwwhww left a comment

Choose a reason for hiding this comment

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

Great work and great test coverage!
Good to merge soon as it's blocking other pending PRs. :shipit:

@dankrad dankrad merged commit 6b750df into dev Jun 16, 2020
@djrtwo djrtwo deleted the dankrad-custody-256bit branch June 16, 2020 18:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants