getLayer

fun getLayer(idx: Int): Int

Layer that flat node idx falls into, with the root as layer 0. From merkle_get_layer.