diff options
author | kaotisk <kaotisk@arching-kaos.org> | 2023-08-19 13:39:32 +0300 |
---|---|---|
committer | kaotisk <kaotisk@arching-kaos.org> | 2023-08-19 13:39:32 +0300 |
commit | 47f0fb1bae66ce55be238578a24b0168076b7f12 (patch) | |
tree | 33ff114592bcb1f796227a605db9cd14e56e09e5 /bin | |
parent | 24d17272e64869fbbc0f465494854ff12e47dc7a (diff) | |
download | arching-kaos-tools-47f0fb1bae66ce55be238578a24b0168076b7f12.tar.gz arching-kaos-tools-47f0fb1bae66ce55be238578a24b0168076b7f12.tar.bz2 arching-kaos-tools-47f0fb1bae66ce55be238578a24b0168076b7f12.zip |
More accurate description
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/ak-sm-merkle-tree | 11 |
1 files 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 # |