We only use unsigned integers, and there should be no unspecified formats

(except Pour proofs, currently).

Signed-off-by: Daira Hopwood <daira@jacaranda.org>
This commit is contained in:
Daira Hopwood 2016-01-27 00:48:52 +00:00
parent d9fea514aa
commit a9ef6f47ab
1 changed files with 2 additions and 7 deletions

View File

@ -168,13 +168,8 @@ protected by zero-knowledge succinct non-interactive arguments of knowledge
\subsection{Integers and Endianness}
Abstractly, integers have a signedness (signed or unsigned), and a bit length.
The limits are the same as for the usual two's complement system. All integers
in the publicly-visible \Zcash protocol are encoded in big endian two's
complement.
If unspecified, curve points, field elements, etc., are encoded according to the
crypto libraries the \Zcash implementation uses.
All integers visible in \Zcash-specific encodings are unsigned, have a fixed
bit length, and are encoded as big-endian.
\subsection{Cryptographic Functions}