Skip to content

Instantly share code, notes, and snippets.

@bensig
Created February 4, 2022 08:47
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 bensig/b31fd477afe1e41f1ecffd30df54b61a to your computer and use it in GitHub Desktop.
Save bensig/b31fd477afe1e41f1ecffd30df54b61a to your computer and use it in GitHub Desktop.
Confirm changes to WASM

Instructions

You will need CDT 1.7 installed. These instructions are written for Linux if you want to run on a mac, it's much more difficult IMHO

Make a directory

mkdir ~/verify cd ~/verify

  1. Install cdt 1.7.0
wget https://github.com/EOSIO/eosio.cdt/releases/download/v1.7.0/eosio.cdt_1.7.0-1-ubuntu-18.04_amd64.deb
  1. Install CDT using apt
sudo apt install ./eosio.cdt_1.7.0-1-ubuntu-18.04_amd64.deb`
  1. Clone the contracts repo and build contracts
git clone https://github.com/ProtonProtocol/proton.contracts.git
cd proton.contracts
./build.sh
  1. Inspect the code changes in Github

https://github.com/ProtonProtocol/proton.contracts/commit/553a88838368c8f084b415948439dcf69964c417

  1. Get the SHA 256 SUM of the wasm you just built
shasum -a 256 build/contracts/eosio.system/eosio.system.wasm

You will get an output that looks like this: shasum -a 256 build/contracts/eosio.system/eosio.system.wasm 42af59ee2e225e58395df414fd885638247cbe852d2c5baf20bb1e695d68e394 build/contracts/eosio.system/eosio.system.wasm

  1. Does it match the sum you see on the msig?

https://www.protonscan.io/msig/swapsledger4/u52smn

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