7 Commits

Author SHA1 Message Date
Mark Spanbroek
fe3e3230f4 Streaming API for merkle root calculation 2023-11-23 14:29:28 +01:00
Mark Spanbroek
c4b4936e26 Handle merkleRoot of empty sequence
Co-Authored-By: Balazs Komuves <bkomuves@gmail.com>
2023-11-20 11:40:56 +01:00
Mark Spanbroek
cce9c13a04 Remove if statement at compile time 2023-11-20 11:40:56 +01:00
Mark Spanbroek
a311828b9e Do not expose isBottomLayer parameter on API 2023-11-20 11:40:56 +01:00
Mark Spanbroek
4bd56bb839 Ensure that merkle root of single element is compressed 2023-11-20 11:40:56 +01:00
Mark Spanbroek
9c7690ff0c Use different compress functions for bottom layer and odd nodes 2023-11-20 11:40:56 +01:00
Mark Spanbroek
94f9d1fdd3 Move merkleRoot() into its own module 2023-11-20 11:40:56 +01:00