A smart contract applicatoin for storing a password. Users should be able to store a password and then retrieve it later. Others should not be able to access the password.
- git
- You'll know you did it right if you can run
git --version
and you see a response likegit version x.x.x
- You'll know you did it right if you can run
- foundry
- You'll know you did it right if you can run
forge --version
and you see a response likeforge 0.2.0 (816e00b 2023-03-16T00:05:26.396218Z)
- You'll know you did it right if you can run
git clone https://github.com/Cyfrin/3-passwordstore-audit
cd 3-passwordstore-audit
forge build
If you can't or don't want to run and install locally, you can work with this repo in Gitpod. If you do this, you can skip the clone this repo
part.
- Start a local node
make anvil
- Deploy
This will default to your local node. You need to have it running in another terminal in order for it to deploy.
make deploy
forge test
forge coverage
and for coverage based testing:
forge coverage --report debug
- Commit Hash: 2e8f81e263b3a9d18fab4fb5c46805ffc10a9990
- In Scope:
./src/
└── PasswordStore.sol
- Solc Version: 0.8.18
- Chain(s) to deploy contract to: Ethereum
View the audit-report-templating repo to install all dependencies.
cd audits
pandoc 2023-09-01-password-store-report.md -o report.pdf --from markdown --template=eisvogel --listings
- Owner: The user who can set the password and read the password
- Outsides: No one else should be able to set or read the password