pub fn encode_cht_key<N: As<u64>>(number: N) -> Vec<u8> {
	let number: u64 = number.as_();
	vec![
		(number >> 56) as u8,
		((number >> 48) & 0xff) as u8,
		((number >> 40) & 0xff) as u8,
		((number >> 32) & 0xff) as u8,
		((number >> 24) & 0xff) as u8,
		((number >> 16) & 0xff) as u8,
		((number >> 8) & 0xff) as u8,
		(number & 0xff) as u8
	]
}
/// Convert header number into CHT key.
Convert header number into CHT key.
Convert header number into CHT key .
pub fn encode_cht_key<N: As<u64>>(number: N) -> Vec<u8> {
	let number: u64 = number.as_();
	vec![
		(number >> 56) as u8,
		((number >> 48) & 0xff) as u8,
		((number >> 40) & 0xff) as u8,
		((number >> 32) & 0xff) as u8,
		((number >> 24) & 0xff) as u8,
		((number >> 16) & 0xff) as u8,
		((number >> 8) & 0xff) as u8,
		(number & 0xff) as u8
	]
}
pub fn encode_cht_key < N : As < u64 > > ( number : N ) -> Vec < u8 > { let number : u64 = number . as_ ( ) ; vec ! [ ( number 56 ) as u8 ( ( number 48 ) 0xff ) as u8 ( ( number 40 ) 0xff ) as u8 ( ( number 32 ) 0xff ) as u8 ( ( number 24 ) 0xff ) as u8 ( ( number 16 ) 0xff ) as u8 ( ( number 8 ) 0xff ) as u8 ( number 0xff ) as u8 ] }
Convert header number into CHT key.
Convert header number into CHT key .
number
N
number
N