Scrappy is support Linux environments, and the work checked on NixOS 23.05pre4. Also, Scrappy needs the dependecies as follows:
- docker and docker-compose
- tpm-tools (https://github.com/tpm2-software/tpm2-tools)
WARNING: TO DEPLOY CORRECTLY, WE RECOMMEND RESETTING YOUR TPM FIRST. BUT IT MAY REMOVE YOUR IMPORTANT KEYS.
sudo tpm2_clear
xhost +
cd thirdparty
make
cd ..
The run follows the command, then the Chrome browser opens.
docker-compose --profile default up
- Open new tabs and jump to "chrome://extensions/" on the browser.
- Turn on the toggle of "Developer mode".
- Push the button labeled and open "/scrappy/browser/extension/" to install the extension.
"http://server:8081/" is a demo that protects heavy endpoints using the Scrappy.
You can run the "go test" with some commands to measure benchmarks.
cd /scrappy/ecdaa
/usr/local/go/bin/go test ./bench -benchmem -run=^$ -bench SignTPM -benchtime 20x
cd /scrappy/core
/usr/local/go/bin/go test ./tests -benchmem -run=^$ -bench BenchmarkSignLog -benchtime 20x
cd /scrappy/ecdaa
go test ./bench -benchmem -run=^$ -bench BenchmarkVerify -benchtime 20x
cd /scrappy/core
go test ./tests -benchmem -run=^$ -bench BenchmarkVerifyLog -benchtime 20x