Skip to content

Commit

Permalink
docs: add polynomial explanation
Browse files Browse the repository at this point in the history
  • Loading branch information
colinnielsen committed Nov 12, 2024
1 parent 9ad683a commit e18fdde
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,14 @@ Polynomial = x^4 + 145x^3 + 9x^2 + x + 42
# (implied) (1x^4) (1x^1) (42x^0)
```

This polynomial represents all the valid combinations of the signers.

Just like Safe, it protects against:

- double signing
- under signing
- non-signer signatures

## A TLDR Of How It works

### 👷🏽‍♂️ Setup
Expand Down Expand Up @@ -100,4 +108,4 @@ forge test
Some possible solutions are:

- Always spin up a fresh EOA to add as a signer, it's important this account has never made an Ethereum transaction on any chain.
- Refactor the code to accept a bit of randomness: an `r` value to hash together with each `root`. This makes it impossible to brute force. The `r` value can be as simple as a known `password` has to at least be known by the prover.
- Refactor the code to accept a bit of randomness: an `r` value to hash together with each `root`. This makes it impossible to brute force. The `r` value can be as simple as a known `password` has to at least be known by the prover.

0 comments on commit e18fdde

Please sign in to comment.