Skip to content

Availability of variable time multiplications? #1656

Description

@randombit

For certain operations - especially verification of ZK proofs - being able to compute linear combinations (ala lincomb from k256) of points as quickly as possible is important, and as the inputs are anyway public it is safe to use variable time computation.

Any interest in adding support for eg lincomb_vartime to the relevant traits? The baseline version could of course just call the constant time code. For actually optimized implementations, I'm primarily interested in k256 and to a lesser extent p256. I could start working on PRs if there is some chance of acceptance.

Obviously it's a footgun, but I'd personally argue if you're working directly with elliptic curve points you are already well into you-better-know-what-you-are-doing territory.

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