8 Commits

Author SHA1 Message Date
Mark Spanbroek
d8a176930d Pad byte sequences with 0x1
To ensure unique field elements for sequences that
end with 0x0.
2023-11-13 11:46:45 +01:00
Mark Spanbroek
4825c0a88c Add streaming API for sponge 2023-11-13 11:46:45 +01:00
Mark Spanbroek
3cbd9a3a4c Fix merkle root of odd number of elements 2023-11-13 11:40:35 +01:00
Balazs Komuves
f5835d5fdc add domain separation for the sponge construction 2023-11-13 11:40:01 +01:00
Balazs Komuves
01aa256970 minor improvements 2023-11-13 11:40:01 +01:00
Balazs Komuves
929793b9ad add sponge construction 2023-11-13 11:40:01 +01:00
Mark Spanbroek
573a77f14f Export conversion of field elements to bytes on main API 2023-11-08 11:13:45 +01:00
Mark Spanbroek
43c2aab913 move unmarshal into its own module called 'io'
Includes separate tests for unmarshalling that
were previously tested as part of the merkleRoot
calculation.

Includes tests for unmarshalling little endian
and big endian byte arrays.
2023-11-02 09:31:10 +01:00