Skip to content

update *PublicKey.Verify to use ristretto255.VarTimeDoubleScalarBaseMult #45

@noot

Description

@noot

the following lines in *PublicKey.Verify can be simplified:

Rp := r255.NewElement()
Rp = Rp.ScalarBaseMult(s.s)
ky := r255.NewElement().ScalarMult(k, p.key)
Rp = Rp.Subtract(Rp, ky)

to:

Rp := r255.NewElement().VarTimeDoubleScalarBaseMult(k, r255.NewElement().Negate(p.key), s.s)

see #40

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions