Implemented `seal_ecdsa_recovery` function in the contract pallet (#9686)
* Implemented `seal_ecdsa_recovery` function in the contract pallet. Added benchmark and unit test. * Run `cargo fmt` * Skip fmt for slices * Changes according comments in pull request. * Fix build without `unstable-interface` feature * Applied suggestion from the review * Apply suggestions from code review Co-authored-by:Alexander Theißen <alex.theissen@me.com> * Apply suggestions from code review Co-authored-by:
Alexander Theißen <alex.theissen@me.com> * Changed RecoveryFailed to EcdsaRecoverFailed * Manually updated weights.rs * Apply suggestions from code review Co-authored-by:
Michael Müller <mich@elmueller.net> Co-authored-by:
Alexander Theißen <alex.theissen@me.com> Co-authored-by:
Michael Müller <mich@elmueller.net>
Showing
- substrate/Cargo.lock 32 additions, 13 deletionssubstrate/Cargo.lock
- substrate/frame/contracts/COMPLEXITY.md 17 additions, 0 deletionssubstrate/frame/contracts/COMPLEXITY.md
- substrate/frame/contracts/Cargo.toml 5 additions, 2 deletionssubstrate/frame/contracts/Cargo.toml
- substrate/frame/contracts/fixtures/ecdsa_recover.wat 55 additions, 0 deletionssubstrate/frame/contracts/fixtures/ecdsa_recover.wat
- substrate/frame/contracts/src/benchmarking/code.rs 7 additions, 7 deletionssubstrate/frame/contracts/src/benchmarking/code.rs
- substrate/frame/contracts/src/benchmarking/mod.rs 54 additions, 0 deletionssubstrate/frame/contracts/src/benchmarking/mod.rs
- substrate/frame/contracts/src/exec.rs 8 additions, 0 deletionssubstrate/frame/contracts/src/exec.rs
- substrate/frame/contracts/src/schedule.rs 4 additions, 0 deletionssubstrate/frame/contracts/src/schedule.rs
- substrate/frame/contracts/src/tests.rs 50 additions, 0 deletionssubstrate/frame/contracts/src/tests.rs
- substrate/frame/contracts/src/wasm/mod.rs 56 additions, 0 deletionssubstrate/frame/contracts/src/wasm/mod.rs
- substrate/frame/contracts/src/wasm/runtime.rs 48 additions, 0 deletionssubstrate/frame/contracts/src/wasm/runtime.rs
- substrate/frame/contracts/src/weights.rs 604 additions, 587 deletionssubstrate/frame/contracts/src/weights.rs
- substrate/primitives/core/src/testing.rs 1 addition, 1 deletionsubstrate/primitives/core/src/testing.rs
Please register or sign in to comment