Skip to content

from_u64 for FieldOps #50

@SamFrengley

Description

@SamFrengley

To avoid doing stuff like

let two = <F as FieldOps>::double(&F::one());
let three = two + F::one();
let four = <F as FieldOps>::double(&two);
let sixteen = <F as FieldOps>::square(&four);
let twofivesix = <F as FieldOps>::square(&sixteen);

at runtime, we may want to allow some from_u64 for FieldOps so the compiler can take care of it (going through UInt)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions