Batch signature verification (#5023)
* create parallel tasks extension * make type system happy * basic externalities * test for dynamic extensions * batching test * remove premature verify_batch * shnschnorrkel batch * alter test * shnschnorrkel test * executive batching * some docs * also multi/any signatgures * error propagation * styling * make verification extension optional * experimental ed25519 parallelization * some merge fallout * utilize task executor * merge fallout * utilize task executor more * another merge fallout * feature-gate sp-io * arrange toml * fix no-std * sr25519 batching and refactoring * add docs * fix name * add newline * fix block import test * long sr25519 test * blocking instead of parking * move everything in crypto * return batch_verify to check :) * use condvars * use multi-threaded executor for benches * don't call via host interface * try no spawning * add true * cleanup * straighten batching * remove signature check from this test (?) * remove now pointless test * remove another now useless test * fix warnings * Revert "remove another now useless test" This reverts commit bbdec24bb67ed4373072daef7c863e1a8825bd8b. * rethink the sp-io-part * Revert "remove now pointless test" This reverts commit 4d553066322e65782264caa6053d4cd5538df977. * fix wording * add wording * add todo and fix * return check and fix * add logging in sp-io * Update primitives/io/src/batch_verifier.rs Co-Authored-By:cheme <emericchevalier.pro@gmail.com> * address review and use std condvar * account for early exit * address reivew * address review * more suggestions * add docs for batch verification * remove unused * more review suggestions * move to sp-runtime * add expects * remove blocks * use entry * Update primitives/io/src/batch_verifier.rs Co-Authored-By:
Bastian Köcher <bkchr@users.noreply.github.com> * Update primitives/externalities/src/extensions.rs Co-Authored-By:
Bastian Köcher <bkchr@users.noreply.github.com> * update overlooked note * remove stupid return * Update primitives/io/src/lib.rs Co-Authored-By:
Bastian Köcher <bkchr@users.noreply.github.com> * Update primitives/io/src/lib.rs Co-Authored-By:
Bastian Köcher <bkchr@users.noreply.github.com> * fix wording * bump spec_version Co-authored-by:
cheme <emericchevalier.pro@gmail.com> Co-authored-by:
Bastian Köcher <bkchr@users.noreply.github.com>
Showing
- substrate/Cargo.lock 5 additions, 0 deletionssubstrate/Cargo.lock
- substrate/bin/node/runtime/src/lib.rs 1 addition, 1 deletionsubstrate/bin/node/runtime/src/lib.rs
- substrate/bin/node/testing/Cargo.toml 1 addition, 0 deletionssubstrate/bin/node/testing/Cargo.toml
- substrate/bin/node/testing/src/bench.rs 35 additions, 4 deletionssubstrate/bin/node/testing/src/bench.rs
- substrate/client/transaction-pool/src/testing/pool.rs 2 additions, 3 deletionssubstrate/client/transaction-pool/src/testing/pool.rs
- substrate/frame/executive/Cargo.toml 1 addition, 0 deletionssubstrate/frame/executive/Cargo.toml
- substrate/frame/executive/src/lib.rs 4 additions, 0 deletionssubstrate/frame/executive/src/lib.rs
- substrate/primitives/core/Cargo.toml 3 additions, 1 deletionsubstrate/primitives/core/Cargo.toml
- substrate/primitives/core/src/sr25519.rs 39 additions, 0 deletionssubstrate/primitives/core/src/sr25519.rs
- substrate/primitives/externalities/src/extensions.rs 31 additions, 1 deletionsubstrate/primitives/externalities/src/extensions.rs
- substrate/primitives/externalities/src/lib.rs 30 additions, 0 deletionssubstrate/primitives/externalities/src/lib.rs
- substrate/primitives/io/Cargo.toml 4 additions, 0 deletionssubstrate/primitives/io/Cargo.toml
- substrate/primitives/io/src/batch_verifier.rs 163 additions, 0 deletionssubstrate/primitives/io/src/batch_verifier.rs
- substrate/primitives/io/src/lib.rs 229 additions, 14 deletionssubstrate/primitives/io/src/lib.rs
- substrate/primitives/runtime/Cargo.toml 1 addition, 0 deletionssubstrate/primitives/runtime/Cargo.toml
- substrate/primitives/runtime/src/generic/unchecked_extrinsic.rs 3 additions, 4 deletions...ate/primitives/runtime/src/generic/unchecked_extrinsic.rs
- substrate/primitives/runtime/src/lib.rs 50 additions, 3 deletionssubstrate/primitives/runtime/src/lib.rs
- substrate/primitives/runtime/src/traits.rs 5 additions, 1 deletionsubstrate/primitives/runtime/src/traits.rs
- substrate/primitives/state-machine/src/basic.rs 56 additions, 13 deletionssubstrate/primitives/state-machine/src/basic.rs
- substrate/primitives/state-machine/src/ext.rs 24 additions, 1 deletionsubstrate/primitives/state-machine/src/ext.rs
Please register or sign in to comment