Skip to content

toByteArray() and its transitive constructor function ? #33

@stanbar

Description

@stanbar

Hello.
How to perform transitive conversion from .toByteArray() to BigInteger ? By transitive I mean someBigInteger.equals(new BigInteger(someBigInteger.toByteArray())). I can't see any constructor that does accept number[] nor Buffer. It accept just number or string. How to convert byteArray to string so it is transitive and acceptable by BigInteger constructor ?

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