Skip to content

Inquiry about support for BN curves #35

@Lullabying

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions