Skip to content
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

Add zero padding to derived privkeys. #74

Merged
merged 1 commit into from
Feb 4, 2019

Conversation

jhtitor
Copy link
Contributor

@jhtitor jhtitor commented Jan 10, 2019

I've randomly encounted a privkey + offset combo that provide a 63-byte secret value (instead of expected 64). Looking at the code, there's nothing to guarantee secp values will be large enough, so some padding is necessary.

@codecov-io
Copy link

codecov-io commented Jan 10, 2019

Codecov Report

Merging #74 into develop will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff            @@
##           develop      #74   +/-   ##
========================================
  Coverage    65.82%   65.82%           
========================================
  Files           40       40           
  Lines         2894     2894           
  Branches       401      401           
========================================
  Hits          1905     1905           
  Misses         920      920           
  Partials        69       69

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 9f53940...4db3d15. Read the comment docs.

@xeroc xeroc merged commit bfb1b23 into xeroc:develop Feb 4, 2019
@xeroc
Copy link
Owner

xeroc commented Feb 4, 2019

Good work .. thanks!

xeroc added a commit that referenced this pull request Feb 6, 2019
Release 1.1.10

bdbd2e7 (HEAD -> master) Merge branch 'release/1.1.10'
26a9d8d (release/1.1.10) version bump
6226dab (develop) This way, we ensure that blockchain is instanciated properly
7b95f0a operations are empty in case we build proposals, hence, sign first
b804252 Properly deal with claiming genesis balances
48ee6b9 (origin/develop) More details in case of Base58 erro and allow loading of keys in set
bfb1b23 Merge pull request #74 from jhtitor/privkey_child_pad
50eae60 Merge tag '1.1.9' into develop
4db3d15 Add zero padding to derived privkeys.
@Agorise
Copy link

Agorise commented Apr 25, 2019

I've ... necessary.

hey, i think your citadel node is a couple of days out of sync, please check, thank you (sorry, i could not find another way to contact you)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants