ssbc / scuttlebutt-protocol-guide

Protocol documentation for Secure Scuttlebutt
https://ssbc.github.io/scuttlebutt-protocol-guide/
241 stars 31 forks source link

32 bit integer for milliseconds? #63

Open lexfrl opened 2 years ago

lexfrl commented 2 years ago

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..

arj03 commented 2 years ago

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

arj03 commented 2 years ago

PR welcome :)