Skip to content

Introduce "alloc" feature #4

Description

@leonbotros

Currently, this library uses the alloc feature of BLS12-381 (which is enabled by default) for some optimizations. I think we should introduce this as a default, but we should always have an option to not use allocation. This is useful when you compile this lib for an embedded target (i.e., a hardware module performing extraction).

Currently, the following allocating optimizations are used:

  • some decryption algorithms perform the multi_miller_loop to compute multiple pairings.
  • some setup/keygen algorithms use w-NAF precomputations.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Fields

    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