ssbc / sips

Secure Scuttlebutt Implementation Protocols
22 stars 5 forks source link

BIPF.tinySSB max integer byte size #17

Open gpicron opened 1 year ago

gpicron commented 1 year ago

I don't any specification of the integer type is it int32 (max 4 bytes) or int64 (max 8 bytes)

I would propose int64, as it is used mainly in SSB for the timestamp encoding, we are subject to the 2038 Problem https://en.wikipedia.org/wiki/Year_2038_problem#:~:text=Consequently%2C%20if%20a%20signed%2032,on%20Tuesday%2C%2019%20January%202038.

Note: the 2038 problem exist for original SSB too.

ping at @tschudin