From 47f0fb1bae66ce55be238578a24b0168076b7f12 Mon Sep 17 00:00:00 2001 From: kaotisk Date: Sat, 19 Aug 2023 13:39:32 +0300 Subject: More accurate description --- bin/ak-sm-merkle-tree | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/bin/ak-sm-merkle-tree b/bin/ak-sm-merkle-tree index 33d3842..60ad1ef 100755 --- a/bin/ak-sm-merkle-tree +++ b/bin/ak-sm-merkle-tree @@ -1,12 +1,15 @@ #!/bin/bash # -# The concept is simple +# The concept is bit more complicated now # -# 1. For a given file we split in 1MB files inside a temporary directory +# 1. For a given file we split in 4KB files inside a temporary directory # -# 2. We then create a map file, containing the resulted files and their sha512sum +# 2. We then create a map file and a merkle tree containing the resulted files +# and their sha512sum. # -# 3. We move the files to our $CHKDIR named after their checksums +# 3. We move the splitted files to our $CHKDIR named after their checksums +# +# 4. We move the merkle tree pairs to $MERKLEDIR # # We ultimately want to be seeding the file so # -- cgit v1.2.3