Skip to content

Expose Residue internals? #236

@andrewwhitehead

Description

@andrewwhitehead

At the moment I can't make use of the (Dyn)Residue type as there's no way to access the inner value in Montgomery form, or to create a Residue from such a value. This restricts the ability to perform operations which aren't supported by the type. For example, if I have a modulus with one or more empty leading bits, a wrapping type might perform addition and doubling without a carry (and with a bitshift). But this isn't possible if I have to convert back and forth to canonical form.

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