chore: regenerate umbrella crate, fix feature propagation

This commit is contained in:
2025-12-16 11:28:32 +03:00
parent dd6d48f528
commit 620b0e3aa0
1358 changed files with 9464 additions and 7656 deletions
@@ -464,7 +464,8 @@ mod benches {
let temp_key = new_member_from::<T>(u32::MAX, SEED).1;
let new_person = pezpallet::Pezpallet::<T>::reserve_new_id();
pezpallet::Pezpallet::<T>::recognize_personhood(new_person, Some(temp_key.clone())).unwrap();
pezpallet::Pezpallet::<T>::recognize_personhood(new_person, Some(temp_key.clone()))
.unwrap();
let new_key = new_member_from::<T>(u32::MAX - 1, SEED).1;
@@ -595,7 +596,8 @@ mod benches {
let max_ring_size = T::MaxRingSize::get();
recognize_people::<T>(&members);
assert_ok!(pezpallet::Pezpallet::<T>::onboard_people());
let to_include = pezpallet::Pezpallet::<T>::should_build_ring(RI_ZERO, max_ring_size).unwrap();
let to_include =
pezpallet::Pezpallet::<T>::should_build_ring(RI_ZERO, max_ring_size).unwrap();
assert_ok!(pezpallet::Pezpallet::<T>::build_ring(RI_ZERO, to_include));
// Suspend all people in the ring
@@ -698,7 +700,9 @@ mod benches {
#[block]
{
assert_ok!(pezpallet::Pezpallet::<T>::migrate_keys_single_included_key(first_id, first_key));
assert_ok!(pezpallet::Pezpallet::<T>::migrate_keys_single_included_key(
first_id, first_key
));
}
// Pending suspensions are reflected in the ring status.
+1 -1
View File
@@ -25,13 +25,13 @@ use pezframe_support::{
CloneNoBound, DefaultNoBound, EqNoBound, PartialEqNoBound,
};
use pezframe_system::{CheckNonce, ValidNonceInfo};
use scale_info::TypeInfo;
use pezsp_core::twox_64;
use pezsp_runtime::{
traits::{DispatchInfoOf, TransactionExtension, ValidateResult},
transaction_validity::{InvalidTransaction, TransactionValidityError, ValidTransaction},
Saturating,
};
use scale_info::TypeInfo;
/// Information required to transform an origin into a personal alias or personal identity.
#[derive(
+15 -14
View File
@@ -24,10 +24,10 @@
//! The People pezpallet stores and manages identifiers of individuals who have proven their
//! personhood. It tracks their personal IDs, organizes their cryptographic keys into rings, and
//! allows them to use contextual aliases through authentication in extensions. When transactions
//! include cryptographic proofs of belonging to the people set, the pezpallet's transaction extension
//! verifies these proofs before allowing the transaction to proceed. This enables other pallets to
//! check if actions come from unique persons while preserving privacy through the ring-based
//! structure.
//! include cryptographic proofs of belonging to the people set, the pezpallet's transaction
//! extension verifies these proofs before allowing the transaction to proceed. This enables other
//! pallets to check if actions come from unique persons while preserving privacy through the
//! ring-based structure.
//!
//! The pezpallet accepts new persons after they prove their uniqueness elsewhere, stores their
//! information, and supports removing persons via suspensions. While other systems (e.g., wallets)
@@ -152,11 +152,11 @@ use pezframe_support::{
transactional,
weights::WeightMeter,
};
use scale_info::TypeInfo;
use pezsp_runtime::{
traits::{BadOrigin, Dispatchable},
ArithmeticError, RuntimeDebug, SaturatedConversion, Saturating,
};
use scale_info::TypeInfo;
use verifiable::{Alias, GenerateVerifiable};
#[cfg(feature = "runtime-benchmarks")]
@@ -200,7 +200,8 @@ pub mod pezpallet {
/// The runtime event type.
#[allow(deprecated)]
type RuntimeEvent: From<Event<Self>> + IsType<<Self as pezframe_system::Config>::RuntimeEvent>;
type RuntimeEvent: From<Event<Self>>
+ IsType<<Self as pezframe_system::Config>::RuntimeEvent>;
/// Trait allowing cryptographic proof of membership without exposing the underlying member.
/// Normally a Ring-VRF.
@@ -337,8 +338,8 @@ pub mod pezpallet {
#[pezpallet::storage]
pub type NextPersonalId<T> = StorageValue<_, PersonalId, ValueQuery>;
/// The state of the pezpallet regarding the actions that are currently allowed to be performed on
/// all existing rings.
/// The state of the pezpallet regarding the actions that are currently allowed to be performed
/// on all existing rings.
#[pezpallet::storage]
pub type RingsState<T> = StorageValue<_, RingMembersState, ValueQuery>;
@@ -653,9 +654,9 @@ pub mod pezpallet {
impl<T: Config> Pezpallet<T> {
/// Build a ring root by including registered people.
///
/// This task is performed automatically by the pezpallet through the `on_idle` hook whenever
/// there is leftover weight in a block. This call is meant to be a backup in case of
/// extreme congestion and should be submitted by signed origins.
/// This task is performed automatically by the pezpallet through the `on_idle` hook
/// whenever there is leftover weight in a block. This call is meant to be a backup in
/// case of extreme congestion and should be submitted by signed origins.
#[pezpallet::weight(
T::WeightInfo::should_build_ring(
limit.unwrap_or_else(T::MaxRingSize::get)
@@ -715,9 +716,9 @@ pub mod pezpallet {
/// registering them into the ring. This does not compute the root, that is done using
/// `build_ring`.
///
/// This task is performed automatically by the pezpallet through the `on_idle` hook whenever
/// there is leftover weight in a block. This call is meant to be a backup in case of
/// extreme congestion and should be submitted by signed origins.
/// This task is performed automatically by the pezpallet through the `on_idle` hook
/// whenever there is leftover weight in a block. This call is meant to be a backup in
/// case of extreme congestion and should be submitted by signed origins.
#[pezpallet::weight(T::WeightInfo::onboard_people())]
#[pezpallet::call_index(101)]
pub fn onboard_people_manual(origin: OriginFor<T>) -> DispatchResultWithPostInfo {
+2 -1
View File
@@ -377,7 +377,8 @@ pub fn setup_alias_account(
});
let other_tx_ext = (pezframe_system::CheckNonce::<Test>::from(0),);
// Here we simply ignore implicit as they are null.
let msg = (&EXTENSION_VERSION, &call, &other_tx_ext).using_encoded(pezsp_io::hashing::blake2_256);
let msg =
(&EXTENSION_VERSION, &call, &other_tx_ext).using_encoded(pezsp_io::hashing::blake2_256);
let (proof, _alias) =
Simple::create(commitment, secret, &context, &msg).expect("proof creation failed");
let tx_ext = (
+2 -1
View File
@@ -2750,7 +2750,8 @@ fn test_under_alias_revision_check() {
setup_alias_account(&pk, &sk, MOCK_CONTEXT, alias_account);
// The account can now use `under_alias` successfully
let dummy_call = Box::new(RuntimeCall::from(pezframe_system::Call::remark { remark: vec![] }));
let dummy_call =
Box::new(RuntimeCall::from(pezframe_system::Call::remark { remark: vec![] }));
assert_ok!(PeoplePallet::under_alias(
RuntimeOrigin::signed(alias_account),
dummy_call.clone()