From 412eefb65d850a24a88894176494477aebbecf0f Mon Sep 17 00:00:00 2001 From: Ignacio Hagopian Date: Mon, 4 Dec 2023 18:11:20 -0300 Subject: [PATCH] fix typo Signed-off-by: Ignacio Hagopian --- banderwagon/element.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/banderwagon/element.go b/banderwagon/element.go index ca14a32..968d38b 100644 --- a/banderwagon/element.go +++ b/banderwagon/element.go @@ -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