chore: regenerate umbrella crate, fix feature propagation
This commit is contained in:
@@ -71,7 +71,11 @@ impl RuntimePublic for Public {
|
||||
proof_of_possession: &Self::ProofOfPossession,
|
||||
) -> bool {
|
||||
let proof_of_possession_statement = Pair::proof_of_possession_statement(owner);
|
||||
pezsp_io::crypto::ed25519_verify(&proof_of_possession, &proof_of_possession_statement, &self)
|
||||
pezsp_io::crypto::ed25519_verify(
|
||||
&proof_of_possession,
|
||||
&proof_of_possession_statement,
|
||||
&self,
|
||||
)
|
||||
}
|
||||
|
||||
fn to_raw_vec(&self) -> Vec<u8> {
|
||||
|
||||
@@ -68,7 +68,11 @@ impl RuntimePublic for Public {
|
||||
proof_of_possession: &Self::ProofOfPossession,
|
||||
) -> bool {
|
||||
let proof_of_possession_statement = Pair::proof_of_possession_statement(owner);
|
||||
pezsp_io::crypto::sr25519_verify(&proof_of_possession, &proof_of_possession_statement, &self)
|
||||
pezsp_io::crypto::sr25519_verify(
|
||||
&proof_of_possession,
|
||||
&proof_of_possession_statement,
|
||||
&self,
|
||||
)
|
||||
}
|
||||
|
||||
fn to_raw_vec(&self) -> Vec<u8> {
|
||||
|
||||
@@ -20,7 +20,9 @@ use scale_info::TypeInfo;
|
||||
|
||||
use alloc::vec::Vec;
|
||||
use core::fmt::Debug;
|
||||
use pezsp_core::crypto::{CryptoType, CryptoTypeId, IsWrappedBy, KeyTypeId, Pair, Public, Signature};
|
||||
use pezsp_core::crypto::{
|
||||
CryptoType, CryptoTypeId, IsWrappedBy, KeyTypeId, Pair, Public, Signature,
|
||||
};
|
||||
|
||||
/// Application-specific cryptographic object.
|
||||
///
|
||||
|
||||
@@ -17,6 +17,10 @@
|
||||
|
||||
//! Integration tests for bls12-381
|
||||
|
||||
use bizinikiwi_test_runtime_client::{
|
||||
runtime::{TestAPI, TEST_OWNER},
|
||||
DefaultTestClientBuilderExt, TestClientBuilder, TestClientBuilderExt,
|
||||
};
|
||||
use pezsp_api::{ApiExt, ProvideRuntimeApi};
|
||||
use pezsp_application_crypto::{bls381::AppPair, RuntimePublic};
|
||||
use pezsp_core::{
|
||||
@@ -28,10 +32,6 @@ use pezsp_core::{
|
||||
};
|
||||
use pezsp_keystore::{testing::MemoryKeystore, Keystore, KeystoreExt};
|
||||
use std::sync::Arc;
|
||||
use bizinikiwi_test_runtime_client::{
|
||||
runtime::{TestAPI, TEST_OWNER},
|
||||
DefaultTestClientBuilderExt, TestClientBuilder, TestClientBuilderExt,
|
||||
};
|
||||
|
||||
#[test]
|
||||
fn bls381_works_in_runtime() {
|
||||
|
||||
@@ -16,6 +16,10 @@
|
||||
// limitations under the License.
|
||||
|
||||
//! Integration tests for ecdsa
|
||||
use bizinikiwi_test_runtime_client::{
|
||||
runtime::{TestAPI, TEST_OWNER},
|
||||
DefaultTestClientBuilderExt, TestClientBuilder, TestClientBuilderExt,
|
||||
};
|
||||
use pezsp_api::{ApiExt, ProvideRuntimeApi};
|
||||
use pezsp_application_crypto::{ecdsa::AppPair, RuntimePublic};
|
||||
use pezsp_core::{
|
||||
@@ -26,10 +30,6 @@ use pezsp_core::{
|
||||
};
|
||||
use pezsp_keystore::{testing::MemoryKeystore, Keystore, KeystoreExt};
|
||||
use std::sync::Arc;
|
||||
use bizinikiwi_test_runtime_client::{
|
||||
runtime::{TestAPI, TEST_OWNER},
|
||||
DefaultTestClientBuilderExt, TestClientBuilder, TestClientBuilderExt,
|
||||
};
|
||||
|
||||
#[test]
|
||||
fn ecdsa_works_in_runtime() {
|
||||
|
||||
@@ -17,6 +17,10 @@
|
||||
|
||||
//! Integration tests for ecdsa-bls12-381
|
||||
|
||||
use bizinikiwi_test_runtime_client::{
|
||||
runtime::{TestAPI, TEST_OWNER},
|
||||
DefaultTestClientBuilderExt, TestClientBuilder, TestClientBuilderExt,
|
||||
};
|
||||
use pezsp_api::{ApiExt, ProvideRuntimeApi};
|
||||
use pezsp_application_crypto::{ecdsa_bls381::AppPair, RuntimePublic};
|
||||
use pezsp_core::{
|
||||
@@ -28,10 +32,6 @@ use pezsp_core::{
|
||||
};
|
||||
use pezsp_keystore::{testing::MemoryKeystore, Keystore, KeystoreExt};
|
||||
use std::sync::Arc;
|
||||
use bizinikiwi_test_runtime_client::{
|
||||
runtime::{TestAPI, TEST_OWNER},
|
||||
DefaultTestClientBuilderExt, TestClientBuilder, TestClientBuilderExt,
|
||||
};
|
||||
|
||||
#[test]
|
||||
fn ecdsa_bls381_works_in_runtime() {
|
||||
|
||||
@@ -17,6 +17,10 @@
|
||||
|
||||
//! Integration tests for ed25519
|
||||
|
||||
use bizinikiwi_test_runtime_client::{
|
||||
runtime::{TestAPI, TEST_OWNER},
|
||||
DefaultTestClientBuilderExt, TestClientBuilder, TestClientBuilderExt,
|
||||
};
|
||||
use pezsp_api::{ApiExt, ProvideRuntimeApi};
|
||||
use pezsp_application_crypto::{ed25519::AppPair, RuntimePublic};
|
||||
use pezsp_core::{
|
||||
@@ -27,10 +31,6 @@ use pezsp_core::{
|
||||
};
|
||||
use pezsp_keystore::{testing::MemoryKeystore, Keystore, KeystoreExt};
|
||||
use std::sync::Arc;
|
||||
use bizinikiwi_test_runtime_client::{
|
||||
runtime::{TestAPI, TEST_OWNER},
|
||||
DefaultTestClientBuilderExt, TestClientBuilder, TestClientBuilderExt,
|
||||
};
|
||||
|
||||
#[test]
|
||||
fn ed25519_works_in_runtime() {
|
||||
|
||||
@@ -17,6 +17,10 @@
|
||||
|
||||
//! Integration tests for sr25519
|
||||
|
||||
use bizinikiwi_test_runtime_client::{
|
||||
runtime::{TestAPI, TEST_OWNER},
|
||||
DefaultTestClientBuilderExt, TestClientBuilder, TestClientBuilderExt,
|
||||
};
|
||||
use pezsp_api::{ApiExt, ProvideRuntimeApi};
|
||||
use pezsp_application_crypto::{sr25519::AppPair, RuntimePublic};
|
||||
use pezsp_core::{
|
||||
@@ -27,10 +31,6 @@ use pezsp_core::{
|
||||
};
|
||||
use pezsp_keystore::{testing::MemoryKeystore, Keystore, KeystoreExt};
|
||||
use std::sync::Arc;
|
||||
use bizinikiwi_test_runtime_client::{
|
||||
runtime::{TestAPI, TEST_OWNER},
|
||||
DefaultTestClientBuilderExt, TestClientBuilder, TestClientBuilderExt,
|
||||
};
|
||||
|
||||
#[test]
|
||||
fn sr25519_works_in_runtime() {
|
||||
|
||||
Reference in New Issue
Block a user