Skip to content

Create IBig from arrays/mod_pow? #6

@username223

Description

@username223

Hello,

Thanks for the excellent library and bigint comparison. I'm unsure if this functionality is present since the docs do not mention it, but is it possible to create an IBig from an array/slice? It only seems to be possible to create them from strings, and since I already have my values as arrays on the stack it doesn't make much sense to allocate and convert to a string only to parse it and convert back.

I'm writing a small library with very well defined integer limits of at most 32 bytes, so if possible I would like to avoid allocations at all and just do operations on stack arrays.

I also can't find a mod_pow equivalent, is that included?

Thanks :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions