mirror of
https://github.com/arnaucube/go-iden3-crypto.git
synced 2026-02-07 11:36:41 +01:00
add babyjub-eddsa Poseidon sign & verify
This commit is contained in:
@@ -171,10 +171,7 @@ func PackPoint(ay *big.Int, sign bool) [32]byte {
|
||||
// Compress the point into a 32 byte array that contains the y coordinate in
|
||||
// little endian and the sign of the x coordinate.
|
||||
func (p *Point) Compress() [32]byte {
|
||||
sign := false
|
||||
if PointCoordSign(p.X) {
|
||||
sign = true
|
||||
}
|
||||
sign := PointCoordSign(p.X)
|
||||
return PackPoint(p.Y, sign)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user