serai-node which compiles and produces/finalizes blocks with --dev

This commit is contained in:
Luke Parker
2025-11-05 18:20:23 -05:00
parent 012b8fddae
commit 31874ceeae
7 changed files with 232 additions and 53 deletions

View File

@@ -5,6 +5,12 @@ use sp_keystore::*;
pub struct Keystore(sr25519::Pair);
impl From<sr25519::Pair> for Keystore {
fn from(keypair: sr25519::Pair) -> Self {
Self(keypair)
}
}
impl Keystore {
pub fn from_env() -> Option<Self> {
let mut key_hex = serai_env::var("KEY")?;