New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi. I Made extension for BigInt to Data and reverse. #54
Comments
I created a pull request with a slightly different implementation of this idea, which you can take a look at. It's PR #61. |
merged HaydenMcCabe approach |
@OleksiiShulzhenko's approach is more correct if we see what android's function toByteArray gives I was struggling for two days because the solution of @HaydenMcCabe Gives wrong output. Please replace the serialize method of this library with @OleksiiShulzhenko's solution |
I'll look into it. Do you have some examples for wrong output? |
You yourself can compare by giving the same input to the android and iOS and you will get different results |
@sanjaykmwt94222 Please give us an example of exact input, expected output and the
output of this library. Otherwise we will not be able to validate your
request.
…On Fri, Oct 9, 2020 at 12:03 sanjay kumawat ***@***.***> wrote:
You yourself can compare by giving the same input to the android and iOS
and you will get different results
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#54 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACWUTTLS7NABULWEPIZPMP3SJ3NXJANCNFSM4GMCSSJQ>
.
|
… On Fri, Oct 9, 2020 at 12:07 Koray Koska ***@***.***> wrote:
@sanjay Please give us an example of exact input, expected output and the
output of this library. Otherwise we will not be able to validate your
request.
On Fri, Oct 9, 2020 at 12:03 sanjay kumawat ***@***.***>
wrote:
> You yourself can compare by giving the same input to the android and iOS
> and you will get different results
>
> —
> You are receiving this because you are subscribed to this thread.
> Reply to this email directly, view it on GitHub
> <#54 (comment)>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/ACWUTTLS7NABULWEPIZPMP3SJ3NXJANCNFSM4GMCSSJQ>
> .
>
|
I think what @sanjaykmwt94222 wants to say is, that our implementation of In my opinion the output is not wrong and the documentation clearly states the fact, that we are using a sign byte. |
@tgymnich Okay in that case there should be a function which gives output in 2s complement format same as android's BigInteger class |
Sure. You can always make a PR and implement an overload or change this
function to optionally accept a format
…On Mon, Oct 12, 2020 at 07:43 sanjay kumawat ***@***.***> wrote:
@tgymnich <https://github.com/tgymnich> Okay in that case there should be
a function which gives output in 2s complement format same as android's
BigInteger class
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#54 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACWUTTLJYB5KZGK6LLEMFDLSKKJQHANCNFSM4GMCSSJQ>
.
|
The text was updated successfully, but these errors were encountered: