You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 27, 2023. It is now read-only.
// Check that the sibling data hashes to the first side node if not nilifproof.SiblingData==nil {
returntrue
}
iflen(proof.SideNodes) ==0 {
returntrue
}
siblingHash:=th.digest(proof.SiblingData)
returnbytes.Equal(proof.SideNodes[0], siblingHash)
The text was updated successfully, but these errors were encountered:
…duce nesting
Only calculate siblingHash to avoid wasting cycles when unneeded.
Also while here, reverse conditional the code to reduce nesting and
to make reading much simpler.
Fixescelestiaorg#56
…duce nesting
Only calculate siblingHash to avoid wasting cycles when unneeded.
Also while here, reverse conditional the code to reduce nesting and
to make reading much simpler.
Fixescelestiaorg#56
…duce nesting (#57)
Only calculate siblingHash to avoid wasting cycles when unneeded.
Also while here, reverse conditional the code to reduce nesting and
to make reading much simpler.
Fixes#56
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
If we look at the code in here
smt/proofs.go
Lines 44 to 54 in a99c0f5
Notice
smt/proofs.go
Lines 46 to 48 in a99c0f5
Before
smt/proofs.go
Lines 45 to 52 in a99c0f5
After
The text was updated successfully, but these errors were encountered: