Skip to content

Can we convert big number to Integer of fixed length ? #131

@SethiShivam

Description

@SethiShivam

There is a method called bignum.toBuffer() . Can we use this function to convert big number to buffer of fixed length like we can do in python using *int.to_bytes(length, byteorder, , signed=False)

I want to implement this in my js code where i want to convert big num to buffer but of fixed length.

Best Regards
Sethi Shivam

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