-
Notifications
You must be signed in to change notification settings - Fork 978
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
masp: move to native VP #2051
masp: move to native VP #2051
Conversation
3510fcf
to
78cd5f0
Compare
@@ -466,94 +463,5 @@ fn vp_validator(c: &mut Criterion) { | |||
group.finish(); | |||
} | |||
|
|||
fn vp_masp(c: &mut Criterion) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should move this benchmark to benches/native_vps
_ => {} | ||
} | ||
// Verify the proofs. | ||
Ok(verify_shielded_tx(&shielded_tx)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be nice to benchmark this function (I think this is the most computationally expensive one) and charge some gas before calling it in here
namada/shared/src/vm/wasm/host_env.rs Line 132 in 3a0ecd8
I believe we don't need this host fn anymore |
sdk/src/signing.rs
Outdated
return Err(Error::from(TxError::InvalidAccount(owner.encode()))); | ||
Some(owner @ Address::Internal(internal)) => { | ||
match internal { | ||
// TODO use sentinel? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think we need a signature on the transaction at all if the source is the MASP cause no VP would check it anyway
9c08c70
to
bb70c02
Compare
bb70c02
to
b64a5c8
Compare
b64a5c8
to
2c9c095
Compare
2c9c095
to
09f1be0
Compare
09f1be0
to
2a12afe
Compare
* ray/native-masp: Changelog #2051 Updates masp test proofs Removes unused masp check from `vp_user` Updates benches with masp native vp Removes masp vp from genesis files Moves masp vp to native
* ray/native-masp: Changelog #2051 Updates masp test proofs Removes unused masp check from `vp_user` Updates benches with masp native vp Removes masp vp from genesis files Moves masp vp to native
* origin/ray/native-masp: Updates masp proofs for testing Updates alias for masp native vp Changelog #2051 Updates masp test proofs Removes unused masp check from `vp_user` Updates benches with masp native vp Removes masp vp from genesis files Moves masp vp to native
* origin/ray/native-masp: Updates masp proofs for testing Updates alias for masp native vp Changelog #2051 Updates masp test proofs Removes unused masp check from `vp_user` Updates benches with masp native vp Removes masp vp from genesis files Moves masp vp to native
* origin/ray/native-masp: Updates masp proofs for testing Updates alias for masp native vp Changelog #2051 Updates masp test proofs Removes unused masp check from `vp_user` Updates benches with masp native vp Removes masp vp from genesis files Moves masp vp to native
* origin/ray/native-masp: Updates masp proofs for testing Updates alias for masp native vp Changelog #2051 Updates masp test proofs Removes unused masp check from `vp_user` Updates benches with masp native vp Removes masp vp from genesis files Moves masp vp to native
Describe your changes
Closes #1924.
Moves the masp vp to native. Removes the now useless host env for masp validation and updates gas accounting and cost. Updated the masp vp benchmarks.
Indicate on which release or other PRs this topic is based on
commit 3a0ecd8 (v0.25.0)
Checklist before merging to
draft