Skip to content

Issue where BigInt.toByteArrayUnsigned returns 31 bytes #4

@Ninkip2p

Description

@Ninkip2p

Here is an example root key:
tprv8ZgxMBicQKsPetSeaqxJJLxz6rRvxz2fuTBKt4ntiqRjTAdmqkqdFKDCX9X9dgPLcEXELNSADqXkDzHs77WJcP6wDvQ5XcX7k5UxBiAZTzH

For some reason BigInt.toByteArrayUnsigned returns byte array without the leading 0 byte, inserting this into the byte array in the case of the length being 31 seems to fix this

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