pub fn from_legacy_string(s: &str, password_override: Option<&str>) -> Pair {
		Self::from_string(s, password_override).unwrap_or_else(|_| {
			let mut padded_seed: Seed = [' ' as u8; 32];
			let len = s.len().min(32);
			padded_seed[..len].copy_from_slice(&s.as_bytes()[..len]);
			Self::from_seed(padded_seed)
		})
	}
/// Exactly as `from_string` except that if no matches are found then, the the first 32
/// characters are taken (padded with spaces as necessary) and used as the MiniSecretKey.
Exactly as `from_string` except that if no matches are found then, the the first 32
characters are taken (padded with spaces as necessary) and used as the MiniSecretKey.
Exactly as ` from_string ` except that if no matches are found then the the first 32 characters are taken ( padded with spaces as necessary ) and used as the MiniSecretKey .
pub fn from_legacy_string(s: &str, password_override: Option<&str>) -> Pair {
		Self::from_string(s, password_override).unwrap_or_else(|_| {
			let mut padded_seed: Seed = [' ' as u8; 32];
			let len = s.len().min(32);
			padded_seed[..len].copy_from_slice(&s.as_bytes()[..len]);
			Self::from_seed(padded_seed)
		})
	}
pub fn from_legacy_string ( s : & str , password_override : Option < & str > ) -> Pair { Self :: from_string ( s , password_override ) . unwrap_or_else ( | _ | { let mut padded_seed : Seed = [ ' ' as u8 ; 32 ] ; let len = s . len ( ) . min ( 32 ) ; padded_seed [ .. len ] . copy_from_slice ( & s . as_bytes ( ) [ .. len ] ) ; Self :: from_seed ( padded_seed ) } ) }
Exactly as `from_string` except that if no matches are found then, the the first 32
characters are taken (padded with spaces as necessary) and used as the MiniSecretKey.
Exactly as ` from_string ` except that if no matches are found then the the first 32 characters are taken ( padded with spaces as necessary ) and used as the MiniSecretKey .
s
&str
password_override
Option<&str>
s
&str
password_override
Option<&str>