jimouris / draft-mouris-cfrg-mastic

Specification of the Mastic Verifiable Distributed Aggregation Function (VDAF)
https://datatracker.ietf.org/doc/draft-mouris-cfrg-mastic/
Other
1 stars 1 forks source link

Reduce encoding bytes for level if total number of levels is less than 256 #23

Closed jimouris closed 1 month ago

jimouris commented 1 year ago

We're currently using 2 bytes to encode the level:

sha3.update(str(node).encode('ascii') + to_le_bytes(current_level, 2) + next_seed)

This can be abstracted out as a parameter and also detect if the level is less than 256 we can use just a single byte.

jimouris commented 1 month ago

I am closing this as non-important.