Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Commit

Permalink
runtime: add bls verify test
Browse files Browse the repository at this point in the history
  • Loading branch information
ashWhiteHat committed Jul 29, 2023
1 parent 71e8764 commit f805691
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion primitives/runtime/src/traits.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2299,6 +2299,8 @@ pub trait BlockNumberProvider {
mod tests {
use super::*;
use crate::codec::{Decode, Encode, Input};
#[cfg(feature = "bls-experimental")]
use sp_core::{bls377, bls381};
use sp_core::{
crypto::{Pair, UncheckedFrom},
ecdsa, ed25519, sr25519,
Expand Down Expand Up @@ -2428,9 +2430,27 @@ mod tests {
}

#[test]
fn signature_verify_works() {
fn ed25519_verify_works() {
signature_verify_test!(ed25519);
}

#[test]
fn sr25519_verify_works() {
signature_verify_test!(sr25519);
}

#[test]
fn ecdsa_verify_works() {
signature_verify_test!(ecdsa);
}

#[cfg(feature = "bls-experimental")]
fn bls377_verify_works() {
signature_verify_test!(bls377)
}

#[cfg(feature = "bls-experimental")]
fn bls381_verify_works() {
signature_verify_test!(bls381)
}
}

0 comments on commit f805691

Please sign in to comment.