Skip to content

Commit

Permalink
fix comments
Browse files Browse the repository at this point in the history
Signed-off-by: Ignacio Hagopian <jsign.uy@gmail.com>
  • Loading branch information
jsign committed Nov 2, 2023
1 parent 661718b commit 96db99c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions proof_ipa.go
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,7 @@ func PreStateTreeFromProof(proof *Proof, rootC *Point) (VerkleNode, error) { //
switch si.stemType {
case extStatusAbsentEmpty:
// All keys that are part of a proof of absence, must contain empty
// pre and post state values. If that isn't the case, the proof is invalid.
// prestate values. If that isn't the case, the proof is invalid.
for i, k := range proof.Keys { // TODO: DoS risk, use map or binary search.
if bytes.HasPrefix(k, path) {
if proof.PreValues[i] != nil {
Expand All @@ -435,7 +435,7 @@ func PreStateTreeFromProof(proof *Proof, rootC *Point) (VerkleNode, error) { //
si.stem = poas[0]
poas = poas[1:]
// All keys that are part of a proof of absence, must contain empty
// pre and post state values. If that isn't the case, the proof is invalid.
// prestate values. If that isn't the case, the proof is invalid.
for i, k := range proof.Keys { // TODO: DoS risk, use map or binary search.
if bytes.HasPrefix(k, si.stem) {
if proof.PreValues[i] != nil {
Expand Down

0 comments on commit 96db99c

Please sign in to comment.