Oops. Accidentally left this out.
This commit is contained in:
parent
3c5a9e6f53
commit
8d3f631d84
1 changed files with 20 additions and 0 deletions
20
include/machi_merkle_tree.hrl
Normal file
20
include/machi_merkle_tree.hrl
Normal file
|
@ -0,0 +1,20 @@
|
|||
%% machi merkle tree records
|
||||
|
||||
-record(naive, {
|
||||
chunk_size = 1048576 :: pos_integer(), %% default 1 MB
|
||||
recalc = true :: boolean(),
|
||||
root :: 'undefined' | binary(),
|
||||
lvl1 = [] :: [ binary() ],
|
||||
lvl2 = [] :: [ binary() ],
|
||||
lvl3 = [] :: [ binary() ],
|
||||
leaves = [] :: [ { Offset :: pos_integer(),
|
||||
Size :: pos_integer(),
|
||||
Csum :: binary()} ]
|
||||
}).
|
||||
|
||||
-record(mt, {
|
||||
filename :: string(),
|
||||
tree :: #naive{}|merklet:tree(),
|
||||
backend = 'merklet' :: 'naive'|'merklet'
|
||||
}).
|
||||
|
Loading…
Reference in a new issue