Add the function to verify a generated proof against the root hash.
Add the function to verify a generated proof against the root hash.