Skip to content

Inquiry about support for BN curves #35

Description

@Lullabying

Can the computation on BN curves be achieved by modifying the curve parameters?
I tried to perform computations on the BN curve using this library by modifying the curve parameters. The specific code is as follows:

ResourceManager rm = new ResourceManager((short) 254);
ECCurve curve = new ECCurve(BN.p, BN.a, BN.b, BN.G, BN.N, BN.k, rm);
Acc = new ECPoint(curve);
Acc.randomize();

However, when running the second step, an error occurs and the error code 6A 80 is returned.
What modifications should I make, or what issues should I pay attention to?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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