use hex::decode instead of extend_vec_from_hex