Eth2.0-specs: Remove implicit big-int requirement

Created on 31 Jan 2019  路  2Comments  路  Source: ethereum/eth2.0-specs

Issue

"ties broken by favoring lower shard_block_root values" requires big integer comparison. We intend to not have big integer requirement in the beacon chain.

enhancement

Most helpful comment

That could be handled with string comparison.... although the fact that we now use little endian makes this ambiguous forcing us to explicitly state that we are using string comparison and not integer comparison (gah I hate little endian more :laughing:). Most programming languages support string comparison so I don't see this being a problem.

All 2 comments

That could be handled with string comparison.... although the fact that we now use little endian makes this ambiguous forcing us to explicitly state that we are using string comparison and not integer comparison (gah I hate little endian more :laughing:). Most programming languages support string comparison so I don't see this being a problem.

string / lexicographical comparison of the byte sequence of the SSZ serialization of the hash seems like an easy and unambiguous way to do it?

fwiw, in statically typed languages we usually don't look at the hash as an integer at all - it's just a blob, so the bigint interpretation left things a bit open and would require going backwards through the serialization anyway, to actually implement it

Was this page helpful?
0 / 5 - 0 ratings

Related issues

paulhauner picture paulhauner  路  15Comments

JustinDrake picture JustinDrake  路  12Comments

JustinDrake picture JustinDrake  路  24Comments

JustinDrake picture JustinDrake  路  33Comments

hwwhww picture hwwhww  路  13Comments