scuttlebutt-protocol-guide icon indicating copy to clipboard operation
scuttlebutt-protocol-guide copied to clipboard

32 bit integer for milliseconds?

Open lexfrl opened this issue 3 years ago • 2 comments

From the guide:

A Bendy Butt Message is a Bencoded list containing a collection with the following five elements, in this specific order.

32-bit integer representing the time the message was created. Number of milliseconds since 1 January 1970 00:00 UTC, also known as UNIX epoch.

Is it correct? It's possible to hold only up to ~1.5 mouthes of milliseconds in a 32-bit integer number..

lexfrl avatar Apr 02 '22 10:04 lexfrl

That is an error. The bendy butt spec specifies this as a bencode integer.

arj03 avatar Apr 04 '22 18:04 arj03

PR welcome :)

arj03 avatar Apr 04 '22 18:04 arj03