0.0.3 • Published 4 years ago

pfcurve v0.0.3

Weekly downloads
2
License
Apache-2.0
Repository
github
Last release
4 years ago

pfcurve.js

npm version

pairing-friendly curve library

node.js and browser support (by big-integer)

Support CURVEs

BLS Curve

  • bls12-381

BN Curve

  • bn462

Performance

CPU : i9-9900K @ 3.6GHz

native bigint vs pure big-integer

countbigintbig-integerbigintbig-integer
bls12-381bls12-381bn462bn462
---------------------------------------------
179251104603
27424097585
37227098615
avg75254100601
ratio1.03.381.06.01

bls12-381 pairing

√ GT test vector (56ms)
√ should create negative G1 pairing (80ms)
√ should create negative G2 pairing (79ms)
√ should create proper pairing output order (77ms)
√ should create right pairing with bilinearity on G1 (78ms)
√ pairing should not degenerate (111ms)
√ should create right pairing with bilinearity on G2 (146ms)
√ should create right pairing composite check (172ms)

bn462 pairing

√ GT test vector (93ms)
√ should create negative G1 pairing (167ms)
√ should create negative G2 pairing (175ms)
√ should create proper pairing output order (150ms)
√ should create right pairing with bilinearity on G1 (172ms)
√ pairing should not degenerate (259ms)
√ should create right pairing with bilinearity on G2 (273ms)
√ should create right pairing composite check (293ms)

References

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago