Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
56 commits
Select commit Hold shift + click to select a range
2e942c8
[substrate-apply] bioauth-keys: Keystore overhaul (#13615)
dmitrylavrenov Dec 26, 2023
91226d8
[substrate-apply] bioauth-keys: Keystore overhaul (final) #13683
dmitrylavrenov Dec 28, 2023
949f856
[substrate-apply] precompile-currency-swap Deprecate Currency; introd…
dmitrylavrenov Dec 28, 2023
7f5eaef
[substrate-apply] precompile-native-currency Deprecate Currency; intr…
dmitrylavrenov Dec 28, 2023
5fbc8cb
[substrate-apply] pallet-currency-swap Deprecate Currency; introduce …
dmitrylavrenov Dec 28, 2023
0001ff7
[substrate-apply] humanode-runtime: Keystore overhaul (final) (#13683)
dmitrylavrenov Dec 28, 2023
f21e283
[substrate-apply] humanode-runtime: Metadata V15: Expose API to fetch…
dmitrylavrenov Dec 28, 2023
1c0fcde
Derive TypeInfo for EvaluationError at pallet-vesting
dmitrylavrenov Dec 28, 2023
a36da7d
[substrate-apply] humanode-runtime:weights:pallet_balances Deprecate …
dmitrylavrenov Dec 28, 2023
5dd6b32
Draft addition of fungible related traits for currency type at pallet…
dmitrylavrenov Dec 29, 2023
a760c7c
[substrate-apply] humanode-rpc: Keystore overhaul (#13615)
dmitrylavrenov Jan 8, 2024
6847379
[substrate-apply] humanode-rpc: babe: replace usage of SharedEpochCha…
dmitrylavrenov Jan 8, 2024
425f36d
[substrate-apply] humanode-peer: Keystore overhaul (#13615)
dmitrylavrenov Jan 8, 2024
6c6df1a
[substrate-apply] humanode-peer: babe: replace usage of SharedEpochCh…
dmitrylavrenov Jan 8, 2024
4aab7cf
[substrate-apply]: humanode-peer: refactor(sc-executor): use wasm exe…
dmitrylavrenov Jan 8, 2024
2e5c5a2
[substrate-apply] humanode-peer: Keystore overhaul (final) (#13683)
dmitrylavrenov Jan 8, 2024
af2fde7
Rename FungibleAsset back to Currency at pallet-pot
dmitrylavrenov Jan 17, 2024
a2bbda8
Remove redundant trait deps at pallet-pot
dmitrylavrenov Jan 17, 2024
3176d0b
Fix partial index for extracting frontier backend
dmitrylavrenov Jan 17, 2024
b31811c
Properly handle resolve operation
dmitrylavrenov Jan 17, 2024
733d176
Add docs for OnUnbalancedOverCredit at pallet-pot
dmitrylavrenov Jan 17, 2024
4bbc61c
Mark unused variable
dmitrylavrenov Jan 17, 2024
0920dd9
Fix mock and test at pallet-currency-swap
dmitrylavrenov Feb 7, 2024
0dc8a28
Fix tests at precompile-currency-swap
dmitrylavrenov Feb 7, 2024
103e57f
Fix mock at pallet-balanced-currency-swap-bridges-initializer
dmitrylavrenov Feb 7, 2024
a9cf1c0
Fix mock and tests at pallet-erc20-support
dmitrylavrenov Feb 7, 2024
7dbd94f
Fix mock at pallet-dummy-precompiles-code
dmitrylavrenov Feb 7, 2024
43cb79c
Precompile-native-currency
dmitrylavrenov Feb 7, 2024
2b213d3
Fix mock at pallet-token-claims and pallet-vesting
dmitrylavrenov Feb 7, 2024
a6579e5
[substrate-apply] precompile-bioauth:mock,pallet-bioauth:testing Cryp…
dmitrylavrenov Feb 7, 2024
e6633f0
Fix tests at claims_and_vesting as usable_balance behaviour has been …
dmitrylavrenov Feb 9, 2024
f19e91e
Update WEIGHT_TO_FEE value
dmitrylavrenov Feb 9, 2024
8db1e13
Fix benchmarking tests
dmitrylavrenov Feb 9, 2024
9f7f42d
Fix tests at pallet-vesting
dmitrylavrenov Feb 9, 2024
3eb66b5
Remove unused dependency
dmitrylavrenov Feb 9, 2024
dadf7f0
Fix clippy
dmitrylavrenov Feb 9, 2024
41b7610
Unpack partial.other
dmitrylavrenov Feb 12, 2024
0f707b1
[substrate-apply] pallet-*: FRAME: inherited call weight syntax (#13932)
dmitrylavrenov Feb 12, 2024
6f6869c
Update weights
dmitrylavrenov Feb 15, 2024
492d00f
Update WEIGHT_TO_FEE constant
dmitrylavrenov Feb 15, 2024
f97810a
Improve handling unbalanced funds
dmitrylavrenov Apr 16, 2024
014e446
Fix clippy
dmitrylavrenov Apr 17, 2024
8871304
Rerun benchmark-all
dmitrylavrenov Apr 17, 2024
62b0fbd
Use block_in_place for keystore operations
dmitrylavrenov Apr 17, 2024
38df4d6
Fix help stdout fixtures
dmitrylavrenov Jun 6, 2024
9a7bffe
Fix typos
dmitrylavrenov Jun 6, 2024
1227906
Fix clippy
dmitrylavrenov Aug 21, 2024
a2ec0c2
Reset claims and vesting tests at runtime
MOZGIII Sep 10, 2024
361c4fc
Fixed tests
MOZGIII Sep 10, 2024
7b25e5d
Reformat runtime API traits
MOZGIII Sep 10, 2024
aa7ff58
Cleanup comment at crates/humanode-runtime/src/lib.rs
MOZGIII Sep 11, 2024
f9b0604
Use locked/polkadot-v0.9.42-2024-09-12 substrate and frontier forks
dmitrylavrenov Sep 12, 2024
79e51c8
Update fixtures for help-output
dmitrylavrenov Sep 12, 2024
16ead2c
Remove duplicated definitions
dmitrylavrenov Sep 23, 2024
b64beb5
Update features snapshot
dmitrylavrenov Sep 23, 2024
d5bf1c8
RuntimeEvent to be first at pallet_balances::Config
dmitrylavrenov Sep 23, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
[substrate-apply] humanode-peer: Keystore overhaul (final) (#13683)
  • Loading branch information
dmitrylavrenov committed Oct 2, 2024
commit 2e5c5a216622c1eee4125c1a35d0d23ab745e63d
22 changes: 8 additions & 14 deletions crates/humanode-peer/src/validator_key.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
use std::{fmt::Display, sync::Arc};

use bioauth_flow_rpc::Signer;
use sp_application_crypto::{AppPublic, CryptoTypePublicPair};
use sp_application_crypto::AppPublic;
use sp_keystore::Keystore;

/// The validator public key implementation using the app crypto public key.
Expand Down Expand Up @@ -53,7 +53,7 @@ where
let data = data.as_ref();
let outcome = self
.keystore
.sign_with(PK::ID, &self.public_key.0.to_public_crypto_pair(), data)
.sign_with(PK::ID, PK::CRYPTO_ID, self.public_key.0.as_slice(), data)
.map_err(SignerError::Keystore)?;

outcome.ok_or(SignerError::NoSignature)
Expand All @@ -78,18 +78,12 @@ where
keystore: &dyn Keystore,
) -> Result<impl Iterator<Item = Self>, sp_keystore::Error> {
let crypto_type_public_pairs = keystore.keys(T::ID)?;
let filtered = crypto_type_public_pairs.into_iter().filter_map(
|CryptoTypePublicPair(crypto_type, public_key)| {
if crypto_type == T::CRYPTO_ID {
match T::from_slice(&public_key) {
Ok(id) => Some(Self(id)),
Err(_) => None,
}
} else {
None
}
},
);
let filtered = crypto_type_public_pairs
.into_iter()
.filter_map(|public_key| match T::from_slice(&public_key) {
Ok(id) => Some(Self(id)),
Err(_) => None,
});
Ok(filtered)
}
}
Expand Down