Comments (4)
My gut feel is to make the chunks in shard blocks small, maybe 32 bytes. Any reason 256 bytes was chosen @vbuterin?
from consensus-specs.
There are three chunk sizes that could be considered "special":
- aligned with hash function block size - this helps make good use of the hash function itself in terms of entropy and avoiding arbitrary padding
- aligned with hash output size - this would help make all nodes in the tree have the same size, after chunking
- aligned with the largest
tree_hash_root
output - all inputs have to pass through this function, so using the same here makes it easier to avoid arbitrary-length buffers in the tree hashing code
from consensus-specs.
I'm ok with 32 bytes.
Sorry, I remembered that my original reason for wanting 256 bytes was erasure coding efficiency, but then I remembered that hash tree chunk size and erasure code chunk size do not need to be the same. So 32 byte shard chunks it is.
from consensus-specs.
closing via #344
from consensus-specs.
Related Issues (20)
- EIP-7251 open questions / tasks
- EIP-7251: update exit churn logic
- Rework phase0 aggregate step
- EIP-7594 (PeerDAS): interop preparation tests
- Consider refactoring `upgrade_to_electra`
- Electra: missing re-definition of `get_indexed_attestation`
- wrong consolidation operations test vector output
- `get_merkle_proof` returning too many values
- Consolidation operation reference tests on mainnet invalid for the wrong reasons HOT 1
- EIP-7594 - Shorten the new introduced ENR record key (`custody_subnet_count`). HOT 7
- Consider migrating `MIN_ACTIVATION_BALANCE` and `MAX_EFFECTIVE_BALANCE_ELECTRA` to config instead of preset HOT 2
- eth
- Electra spec testing HOT 2
- Nichebiche HOT 1
- EIP-7594: Ask for recommandation about sampling HOT 4
- Fix test helpers to not depend on leaked execution data
- Enable typecasts for EIP-7594 fork
- How the program pass the spec and state to test_one_basic_attestation function
- Introduce an ExecutionPayloadEnvelope to abstract away the fields needed in the EL but not the CL HOT 19
- PeerDAS devnet-3 targets HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from consensus-specs.