Skip to content

Instantly share code, notes, and snippets.

View arnetheduck's full-sized avatar

Jacek Sieka arnetheduck

View GitHub Profile
@arnetheduck
arnetheduck / beacon_clock.nim
Created March 21, 2019 13:40
starting point, beacon clock
import
chronos,
spec/[datatypes]
type
ChronosTime* = uint64
## Unix epoch timestamp in millisecond resolution
# TODO fetch from chronos and make distinct
ChronosClock* = object
@arnetheduck
arnetheduck / datatypes.fbs
Last active March 15, 2019 21:10
beacon block, flatbuffers style
struct Bytes8 {
v0: ubyte;
v1: ubyte;
v2: ubyte;
v3: ubyte;
v4: ubyte;
v5: ubyte;
v6: ubyte;
v7: ubyte;
v8: ubyte;