Skip to content

Point Addition Performance #92

Description

@iceland2k14

Your library performance is Very good for Scalar Multiplication. But i am trying for Point Addition and getting slower speed.

pub1 = bit.Key.from_int(1)._pk.public_key
timeit pub1.combine_keys([pub1, pub1])
8.81 µs ± 287 ns per loop (mean ± std. dev. of 7 runs, 100000 loops each)

In comparison, by using gmpy2 with https://github.com/iceland2k14/bsgs/blob/main/gmp_ec.py
timeit ec.G + ec.G
6.56 µs ± 106 ns per loop (mean ± std. dev. of 7 runs, 100000 loops each)

Maybe i am not trying in proper way to do Point Addition with bit or coincurve. Can you please show ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions