CompositeKey.checkValidity - corda

corda / net.corda.core.crypto / CompositeKey / checkValidity

# checkValidity

`fun checkValidity(): Unit`

This method will detect graph cycles in the full composite key structure to protect against infinite loops when traversing the graph and key duplicates in the each layer. It also checks if the threshold and weight constraint requirements are met, while it tests for aggregated-weight integer overflow. In practice, this method should be always invoked on the root CompositeKey, as it inherently validates the child nodes (all the way till the leaves).