Skip to content

Commit

Permalink
fix typo
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 Dec 4, 2023
1 parent 4d343c5 commit 412eefb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions banderwagon/element.go
Original file line number Diff line number Diff line change
Expand Up @@ -251,8 +251,8 @@ func (p *Element) SetBytesUncompressed(buf []byte, trusted bool) error {
if point == nil {
return fmt.Errorf("point not in the curve")
}
calcualtedYBytes := point.Y.Bytes()
if !bytes.Equal(calcualtedYBytes[:], buf[coordinateSize:]) {
calculatedYBytes := point.Y.Bytes()
if !bytes.Equal(calculatedYBytes[:], buf[coordinateSize:]) {
return fmt.Errorf("provided Y coordinate doesn't correspond to X")
}
y = point.Y
Expand Down

0 comments on commit 412eefb

Please sign in to comment.