Poseidon252
Poseidon252 copied to clipboard
Let `finalize` return the hash directly and not wrapped into a `Result`
Summary
Change finalize
in both Hash
and HashGadget
to return the hash directly. We can do this since we start and finish the Safe
instance in the same method and hence have direct control over the correctness of the io-pattern (which is the only way the method would error), i.e. an error is in fact not possible.