So a hint associated with pk1 has a position "0-0", pk4 - "0-2-1" .
Please note that "0" prefix is for a crypto tree. There are several kinds of trees during evaluation.
Initial mixed tree (ergoTree) would have another prefix.
positions
- positions from root (inclusive) in top-down order
Linear Supertypes
Serializable, Serializable, Product, Equals, AnyRef, Any
Data type which encodes position of a node in a tree.
Position is encoded like following (the example provided is for CTHRESHOLD(2, Seq(pk1, pk2, pk3 && pk4)) :
0 / | \ / | \ 0-0 0-1 0-2 /| / | / | / | 0-2-0 0-2-1
So a hint associated with pk1 has a position "0-0", pk4 - "0-2-1" .
Please note that "0" prefix is for a crypto tree. There are several kinds of trees during evaluation. Initial mixed tree (ergoTree) would have another prefix.
- positions from root (inclusive) in top-down order