Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: add audit comments #168

Merged
merged 1 commit into from
Nov 3, 2023
Merged

chore: add audit comments #168

merged 1 commit into from
Nov 3, 2023

Conversation

sifnoc
Copy link
Member

@sifnoc sifnoc commented Oct 31, 2023

No description provided.

@sifnoc sifnoc requested a review from alxkzmn October 31, 2023 11:07
@@ -77,6 +89,9 @@ contract Summa is Ownable {
);
uint256 index = ownershipProofByAddress[addressHash];
require(index == 0, "Address already verified");
/*
Is there any reason to assign value `i + 1` to `ownershipProofByAddress[addressHash]`?
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The idea was to store the array index, but starting with 1 allows to distinguish a case when the proof has not yet been submitted (the storage slots are zero by default).

@alxkzmn alxkzmn merged commit 15a6d0a into master Nov 3, 2023
4 checks passed
enricobottazzi pushed a commit that referenced this pull request Nov 8, 2023
* chore: add audit comments (#168)

* Refactor backend by following internal audit comments (#173)

* feat: create bash script for updating verifier interface files in backend

* fix: error propagation with try operator; remove unnecessaries

* refactor: changed data type in 'MstInclusionProof'

* fix: generate solvency verifier contract

* chore: remove left over

* chore: update README

* fix: remove left over; assert term

* fix: update README; small fixes

* feat: Signer accepts address or file path for init

* Refactor contract according to V1 consolidation spec (#169)

* Refactor smart contract

* Update smart contract module readme

---------

Co-authored-by: JinHwan <[email protected]>
enricobottazzi added a commit that referenced this pull request Nov 10, 2023
* chore: add audit comments (#168)

* Refactor backend by following internal audit comments (#173)

* feat: create bash script for updating verifier interface files in backend

* fix: error propagation with try operator; remove unnecessaries

* refactor: changed data type in 'MstInclusionProof'

* fix: generate solvency verifier contract

* chore: remove left over

* chore: update README

* fix: remove left over; assert term

* fix: update README; small fixes

* feat: Signer accepts address or file path for init

* feat: added mutex lock to signer; used it as ref

* fix: mutex deadlock in signer

* chore: minor updates

* feat: `Tree` trait

* fix: move `verify_proof` logic to `Tree` trait

* feat: added method implementation to `Tree` trait and moved outside of utils

* refactor: signer spawn provider internally; updated comments

* fix: round now use Tree trait

* refactor: Round needs MST and Assets instead of csv files path

* fix: rollback applying csv_parser for AddressOwnership and Assets in Snapshot

* fix: Solvency::init fn accept type that has Tree trait

* fix: updates for summa solvency contract v1.1

* chore: rename `compute_leaves` api

* fix: Rounds accept 'Tree' trait object

* chore: removed and updated comments

* chore: removed env variables 'SIGNATURE_VERIFICATION_MESSAGE'

---------

Co-authored-by: JinHwan <[email protected]>
Co-authored-by: sifnoc <[email protected]>
@enricobottazzi enricobottazzi deleted the contract-audit branch November 21, 2023 14:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants