Skip to content

How to assert if two eddsa.PublicKey are equal? #1071

Answered by ivokub
drakstik asked this question in Q&A
Discussion options

You must be logged in to vote

eddsa.PublicKey is

type PublicKey struct {
	A twistededwards.Point
}

and

type twistededwards.Point struct {
    X, Y frontend.Variable
}

You need to verify the equality of points a la api.AssertIsEqual(key1.A.X, key2.A.X) etc

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by drakstik
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants