The delegation map is now injective #292. We could be more explicit about this fact in our code by changing the type of the delegation map from Map VKeyGenesis VKey to Bimap VKeyGenesis VKey, where Bimap can be found here.
Another reason for wanting this is that the operation for finding which genesis key delegated to a given key becomes O (log n) instead of O (n).
The delegation map is now injective #292. We could be more explicit about this fact in our code by changing the type of the delegation map from
Map VKeyGenesis VKey
toBimap VKeyGenesis VKey
, whereBimap
can be found here.Another reason for wanting this is that the operation for finding which genesis key delegated to a given key becomes
O (log n)
instead ofO (n)
.