public static byte[] ToBytes(uint[] digits) { if (digits == null) { throw new ArgumentNullException("digits"); } byte[] bytes = new byte[digits.Length * 4]; Buffer.BlockCopy(digits, 0, bytes, 0, bytes.Length); return bytes; }