diff --git a/create-attributable-archive.sh b/create-attributable-archive.sh index 63dc18d..dba5c16 100755 --- a/create-attributable-archive.sh +++ b/create-attributable-archive.sh @@ -77,7 +77,7 @@ unset attribution_passphrase_check } | sha512sum | awk '{print $1}' > "$out_dir/attribution.sha512" printf "sanity checking: changing working directory to $out_dir" -cd out +cd "$out_dir" checkcode $? printf "sanity checking: verification" bash verify-everything.sh diff --git a/out/.592 b/out/.592 deleted file mode 100644 index 0cf5a77..0000000 Binary files a/out/.592 and /dev/null differ diff --git a/out/anonymous_signer b/out/anonymous_signer deleted file mode 100644 index b8581d1..0000000 --- a/out/anonymous_signer +++ /dev/null @@ -1 +0,0 @@ -anonymous namespaces="file-integrity" ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIHNjfc58+rgA/WBEhdF8y4r6y4JddB8RPw2AQHHkaZI0 anonymous diff --git a/out/attribution.sha512 b/out/attribution.sha512 deleted file mode 100644 index 30bd7d4..0000000 --- a/out/attribution.sha512 +++ /dev/null @@ -1 +0,0 @@ -e7ff3efd3222f6dac5f6156c9d417c90dc56c34973b1b86573e139de1edfb2c15334b3fde0b2295cf63b66b567c22f8a95870c54eacfe9e9aeb5f0d31fa1ff2d diff --git a/out/checksums.sha512 b/out/checksums.sha512 deleted file mode 100644 index 0918552..0000000 --- a/out/checksums.sha512 +++ /dev/null @@ -1,5 +0,0 @@ -51b0e1ebf18adf1dabc4d1e0a1a8f5568e6ab51dd490b9425375c067ba8a9a419f235d761f975bcc8a44bb8135a81cef1be95294e365a51c7b90137dc76f6212 ./out/anonymous_signer -46bd2773528f7670865fb15b7db06e9011989b3aa5bb09c00c4f50a46f5de22225938d9ea25447bef691df598c48505ab8a35fe13baadb47261e4a6cdf4bc8f7 ./out/contents.7z -fc283df1f568f034617c1d1388fcc17b5961e27a5827be686bb4ade269e149511d78ed6150e8339be6925f96980e1529a23e8d15ff18470fa259ffa22b36f97d ./out/contents.7z.sig -f91f1e84c205e1a5d1827be1efb5f576a04894f5649149b6bf5e1cf6e02a29b1470d8aec9ff334a99f5dfc50712a081bfedc182aacd3f6b65249e5f84c0630b3 ./out/test_validation_passphrase.sh -db0617ccc8fd63a0906532e45eca1c2e07cf476cf9d6c68d2241cc6e254afe22e829bacce48e96cff5975cfd07a10dbd4e2d9006214344711a9571edf3e55987 ./out/verify-everything.sh diff --git a/out/contents.7z b/out/contents.7z deleted file mode 100644 index 132b0d6..0000000 Binary files a/out/contents.7z and /dev/null differ diff --git a/out/contents.7z.sig b/out/contents.7z.sig deleted file mode 100644 index bed25ab..0000000 --- a/out/contents.7z.sig +++ /dev/null @@ -1,6 +0,0 @@ ------BEGIN SSH SIGNATURE----- -U1NIU0lHAAAAAQAAADMAAAALc3NoLWVkMjU1MTkAAAAgc2N9znz6uAD9YESF0XzLivrLgl -10HxE/DYBAceRpkjQAAAAOZmlsZS1pbnRlZ3JpdHkAAAAAAAAABnNoYTUxMgAAAFMAAAAL -c3NoLWVkMjU1MTkAAABA0h80JbN4Gk0q1i9lqF3A1lRFfqjPQrFWblWe1IsZB8fQLl6G8j -l8Igkg5b7ifKRUz36908a/XVkhRbDTUGEkBg== ------END SSH SIGNATURE----- diff --git a/out/contents/README.md b/out/contents/README.md new file mode 100644 index 0000000..e69de29 diff --git a/private_ed25519_1779530775 b/private_ed25519_1779530775 deleted file mode 100644 index f6374e1..0000000 --- a/private_ed25519_1779530775 +++ /dev/null @@ -1,7 +0,0 @@ ------BEGIN OPENSSH PRIVATE KEY----- -b3BlbnNzaC1rZXktdjEAAAAABG5vbmUAAAAEbm9uZQAAAAAAAAABAAAAMwAAAAtzc2gtZW -QyNTUxOQAAACBzY33OfPq4AP1gRIXRfMuK+suCXXQfET8NgEBx5GmSNAAAAJAE2OdRBNjn -UQAAAAtzc2gtZWQyNTUxOQAAACBzY33OfPq4AP1gRIXRfMuK+suCXXQfET8NgEBx5GmSNA -AAAEBahLsB5/tAbPyNI//1Smj4wqMSD3wY9n6F2nzHb6GQG3Njfc58+rgA/WBEhdF8y4r6 -y4JddB8RPw2AQHHkaZI0AAAACWFub255bW91cwECAwQ= ------END OPENSSH PRIVATE KEY----- diff --git a/private_ed25519_1779530775.pub b/private_ed25519_1779530775.pub deleted file mode 100644 index 9742850..0000000 --- a/private_ed25519_1779530775.pub +++ /dev/null @@ -1 +0,0 @@ -ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIHNjfc58+rgA/WBEhdF8y4r6y4JddB8RPw2AQHHkaZI0 anonymous diff --git a/reset.sh b/reset.sh index 8e1f098..43f0783 100644 --- a/reset.sh +++ b/reset.sh @@ -1,14 +1,19 @@ #!/bin/bash echo "autoshredding these files:" find . -type f \( -path ".git" -o -path "keystore" -o -path "archives" \) -prune \( -name "*.sha512" -o -name "checksums*" -o -name "private*" -o -name ".*" -o -name "*.sig" -o -name "*.7z" -o -name "anonymous_signer" \) -print -exec shred -uz {} \; +echo $? echo "autoshredding out" srm -r -z -l -l ./out +echo $? echo "rebuilding out" mkdir -p out/contents echo "put files to verifiably archive in here" > out/contents/README.md echo "# todo: make this nice" > ./out/README.md - +cp test_validate_passphrase.sh out +chmod +x out/test_validate_passphrase.sh +cp verify-everything.sh out +chmod +x out/verify-everything.sh echo done :3 diff --git a/out/test_validation_passphrase.sh b/test_validation_passphrase.sh old mode 100755 new mode 100644 similarity index 100% rename from out/test_validation_passphrase.sh rename to test_validation_passphrase.sh diff --git a/out/verify-everything.sh b/verify-everything.sh old mode 100755 new mode 100644 similarity index 100% rename from out/verify-everything.sh rename to verify-everything.sh