pub fn from_bytes(bytes: impl AsRef<[u8]>) -> StacksResult<Self> {
		let bytes: [u8; WIF_LENGTH] = bytes.as_ref().try_into()?;

		let wif = Self(bytes);
		wif.validate()?;

		Ok(wif)
	}
Attempts to parse a WIF from a byte slice
stacks-core/src/crypto/wif.rs