I am trying to use the function new_with_hash from secp256k1::ecdh::SharedSecret in Rust
but I am getting this error
no function or associated item named `new_with_hash` found for struct `SharedSecret` in the current scope
It seems like the function does not exist anymore. Is there a direct replacement for this method in the new version?
Based on this PR it was changed to a free function:
This new function is: shared_secret_point:
You can read the PR comments for more about the motivation for the change.