Skip to content

ScalarMul works incorrectly for twisted edwards bn254 #57

@SherLzp

Description

@SherLzp

Just try the following test:

A := new(Point).ScalarMul(Base, big.NewInt(5))
B := new(Point).ScalarMul(Base, big.NewInt(-5))
C := new(Point).Add(A,B)

D := new(Point).ScalarMul(Base, Order)

The outputs A,B are the same result. And D is not (0,1). The computation result is different from: iden3-crypto. And I'm wondering that could I implement BulletProofs based on twisted edwards bn254?

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