Ensure key ownership proof is optimal (#4699)
Ensure that the key ownership proof doesn't contain duplicate or
unneeded nodes.
We already have these checks for the bridge messages proof. Just making
them more generic and performing them also for the key ownership proof.
---------
Co-authored-by: Adrian Catangiu <[email protected]>
Please register or sign in to comment