Fundamentals of Hive's layer 2