2 unstable releases

0.2.0 Jan 13, 2025
0.0.0 Oct 18, 2024

#21 in #verify-signature

Download history 107/week @ 2024-10-16 8/week @ 2024-10-23 1/week @ 2024-10-30 2/week @ 2024-11-06 1/week @ 2024-12-04 2/week @ 2024-12-11 86/week @ 2025-01-08 31/week @ 2025-01-15

117 downloads per month

Apache-2.0

3MB
48K SLoC

Verify Signature Module

A module that provides a TransactionExtension that validates a signature against a payload and authorizes the origin.

Overview

This module serves two purposes:

  • VerifySignature: A TransactionExtension that checks the provided signature against a payload constructed through hashing the inherited implication with blake2b_256. If the signature is valid, then the extension authorizes the origin as signed. The extension can be disabled, or passthrough, allowing users to use other extensions to authorize different origins other than the traditionally signed origin.
  • Benchmarking: The extension is bound within a pallet to leverage the benchmarking functionality in FRAME. The Signature and Signer types are specified in the pallet configuration and a benchmark helper trait is used to create a signature which is then validated in the benchmark.

License: Apache-2.0

Release

Polkadot SDK Stable 2412


lib.rs:

Transaction extension which validates a signature against a payload constructed from a call and the rest of the transaction extension pipeline.

Dependencies

~18–32MB
~536K SLoC