11 Commits

Author SHA1 Message Date
Mark Spanbroek
8b7a4a3151 Allow for keyed compression 2023-11-13 14:24:06 +01:00
Mark Spanbroek
457b8623be Add usage example to Readme
- unit test that example code works
- fixes for said unit test
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
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
Mark Spanbroek
e19a08e6c3 Test merkleRoot() against reference
Co-Authored-By: Balazs Komuves <bkomuves@gmail.com>
2023-11-02 09:31:10 +01:00
Mark Spanbroek
4668f09496 Determine merkle root of byte arrays 2023-11-02 09:31:10 +01:00
Mark Spanbroek
0e91bea0f6 Convert under_scores to camelCase 2023-10-26 09:52:28 +02:00
Mark Spanbroek
f73bce6aa1 convert visual inspection tests to unit tests 2023-10-26 09:52:28 +02:00
Mark Spanbroek
b72c92639b Fix imports 2023-10-26 09:52:28 +02:00
Mark Spanbroek
5220f372c1 Add nimble dependency on constantine 2023-10-26 09:52:28 +02:00
Mark Spanbroek
9f202e0a39 Moving files around to be compatible with nimble 2023-10-26 09:52:28 +02:00