Skip to content

Instantly share code, notes, and snippets.

@jpitts
Last active December 11, 2020 00:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jpitts/46e8a8fc030878366c5ef4c7c228d6bd to your computer and use it in GitHub Desktop.
Save jpitts/46e8a8fc030878366c5ef4c7c228d6bd to your computer and use it in GitHub Desktop.

Checksum Multisender.app

This is a set of instructions for checksumming the web assets of Multisender.app (https://multisender.app).

Please see the related How To Checksum A Dapp Medium article.

Full command

export DAPP_URL=https://multisender.app

export DAPP_DIR=$(echo "$DAPP_URL" | sed -e "s/\:\/\//__/" -e "s/\//__/")

date +%FT%H:%M:%S | awk -v dapp_dir="$DAPP_DIR" '{print dapp_dir "__" $1}' \
 | xargs mv $DAPP_DIR 2>/dev/null

wget -q -r --no-parent -k --restrict-file-names=unix --no-host-directories -P $DAPP_DIR $DAPP_URL

find $DAPP_DIR -type f -print0 | xargs -0 -n1 shasum -a 384 \
    | sort -k2 | sed -e "s/$DAPP_DIR//" \
    | awk '{print "\"" $2 "\"" "," "\"" $1 "\"";}' > dapp_file_checksums.csv \
  && shasum -a 384 dapp_file_checksums.csv | awk 'NR==1{print $1}'

Resulting dapp checksum:

fed4c77ff7e17877eead087b30d14a09483e96a1bc9e7115a4bcdec1c000b5a0a0f65844793dd1db4ba43248cdfd044e

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment