-
Notifications
You must be signed in to change notification settings - Fork 2.2k
ECKey -D test and light cleanup #202
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
Changes from all commits
7e9b5d8
b10e96c
978f0c5
5f88cb8
baec325
77ed66b
2b2081b
61c57ad
77d4325
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -37,6 +37,7 @@ function readPushDataInt(buffer, offset) { | |
| } | ||
|
|
||
| return { | ||
| opcode: opcode, | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This will be necessary for parsing
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why not adding it only when it's started being used?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Well, in this case, it was more about completing the API. |
||
| number: number, | ||
| size: size | ||
| } | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -11,7 +11,7 @@ describe('base58check', function() { | |
| it('can decode ' + f.string, function() { | ||
| var actual = base58check.decode(f.string) | ||
| var expected = { | ||
| version: f.decode.version, | ||
| version: f.decode.version || 0, | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If |
||
| payload: h2b(f.decode.payload), | ||
| checksum: h2b(f.decode.checksum) | ||
| } | ||
|
|
@@ -40,4 +40,3 @@ describe('base58check', function() { | |
| }) | ||
| }) | ||
| }) | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Our use of
BigIntegeris non-mutating in this instance, so there is no reason in taking a clone initially. (seenum = num.multiply(BASE).