You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, only TAI64N timestamps are supported, which represent time as 96 bits (64 for seconds and 32 for nanoseconds). The specs erroneously define timestamps as using the TAI64 format.
There should be support for TAI64 in addition to TAI64N. The former uses only 64 bits to represent time at a resolution of seconds, and is 33% smaller than TAI64N (in other words, TAI64N is 50% larger than TAI64). This is more than sufficient for almost all blockchains, which do not have an external clock and have blocktimes much longer than a single second.
The text was updated successfully, but these errors were encountered:
The specs erroneously define timestamps as using the TAI64 format.
It goes a bit beyond that. The current Rust implementation encodes the components of a TAI timestamp using vint64. This addresses your comments about the serialized size, however it is worth noting that the actual wire format being explored right now is a TAI64N-like encoding for TAI using vint64 for on-the-wire serialization (i.e. it's not technically a 96-bit "TAI64N" timestamp).
This means that if the nanosecond component is omitted, it costs only a single additional byte over having a secondary TAI64-like format.
I strongly agree the spec should be updated to clarify all of this.
Currently, only TAI64N timestamps are supported, which represent time as 96 bits (64 for seconds and 32 for nanoseconds). The specs erroneously define timestamps as using the TAI64 format.
There should be support for TAI64 in addition to TAI64N. The former uses only 64 bits to represent time at a resolution of seconds, and is 33% smaller than TAI64N (in other words, TAI64N is 50% larger than TAI64). This is more than sufficient for almost all blockchains, which do not have an external clock and have blocktimes much longer than a single second.
The text was updated successfully, but these errors were encountered: