You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It is currently not possible to compute the SIGHASH only once because the transparent data verification is done over FFI, and the FFI API doesn't allow passing a precomputed SIGHASH. Once we have the new transparent script engine implemented in Rust, it would be beneficial to be able to pass a precomputed SIGHASH to it, and refactor Zebra's code so that the SIGHASH is computed only once.
The text was updated successfully, but these errors were encountered:
It is currently not possible to compute the SIGHASH only once because the transparent data verification is done over FFI, and the FFI API doesn't allow passing a precomputed SIGHASH.
It does! After the last refactoring, zcash_script takes the same sighash context that we use in Rust, because the sighash is computed by the caller via a callback. I noticed that too but forgot to create an issue about it.
The tx SIGHASH is currently computed twice per tx verification:
It is currently not possible to compute the SIGHASH only once because the transparent data verification is done over FFI, and the FFI API doesn't allow passing a precomputed SIGHASH. Once we have the new transparent script engine implemented in Rust, it would be beneficial to be able to pass a precomputed SIGHASH to it, and refactor Zebra's code so that the SIGHASH is computed only once.
The text was updated successfully, but these errors were encountered: