pub fn new(network: Network, private_key: PrivateKey) -> Self {
		let mut bytes = [0u8; WIF_LENGTH];
		bytes[0] = WIFPrefix::from(network) as u8;
		bytes[1..33].copy_from_slice(&private_key.secret_bytes());
		bytes[33] = 0x01;

		let bytes_to_hash = bytes[..34].to_vec();
		bytes[34..].copy_from_slice(
			&DoubleSha256Hasher::new(bytes_to_hash).as_bytes()[..4],
		);

		Self(bytes)
	}
Constructs a WIF from a network and private key
stacks-core/src/crypto/wif.rs