Skip to content

Field initialization from strings #62

@dtebbs

Description

@dtebbs

Initialization of the form libff::Fr<ppT>("-1") does not behave as expected. It implicitly constructs a bigint("-1") and constructs an Fp_model from this, which obviously does not yield -1 in the prime field.
This can be confusing and time-consuming to track down.

One easy temporary option (which avoids parsing the string) may be to mark all the constructors as explicit, although the implicit conversion may already be used in many places.

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