mirror of
https://github.com/serai-dex/serai.git
synced 2025-12-09 04:39:24 +00:00
serai-node which compiles and produces/finalizes blocks with --dev
This commit is contained in:
@@ -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")?;
|
||||
|
||||
Reference in New Issue
Block a user