Skip to content
This repository was archived by the owner on Jul 15, 2018. It is now read-only.

Develop pre wire #73

Merged
merged 34 commits into from
Mar 2, 2018
Merged

Develop pre wire #73

merged 34 commits into from
Mar 2, 2018

Conversation

ebuchman
Copy link
Contributor

@ebuchman ebuchman commented Mar 2, 2018

This is the latest state of develop before the go-wire upgrade.

It's to enable the SDK client to use the latest keys without needing the latest go-wire.

Will need to be merged back in to latest develop

odeke-em and others added 30 commits October 25, 2017 19:56
Fixes #43

Avoid susceptibility to timing/side channel attacks by ensuring
that private key and signature comparisons use
`subtle.ConstantTimeCompare`
instead of
`bytes.Equal`
Fixes #48.

This previously skewed up my fuzzing tests so ensure
that on error we return the zero value PubKey.
…pty-pubKey

PubKeyFromBytes: return zero value PubKey on error
The previous doc seemed misleading and was out of date i.e.
RandHex(24)
not
CRandHex.

Anyways provide a doc of what the function does in relation to
the length of digits of the hex value returned i.e.
  floor(numDigits / 2) * 2
so the even lowest number
  e.g:
  * len(CRandHex(5)) = 4
  * len(CRandHex(4)) = 4
CRandHex: fix up doc to mention length of digits
@ebuchman ebuchman merged commit c3e19f3 into master Mar 2, 2018
@ebuchman ebuchman deleted the develop-pre-wire branch March 2, 2018 15:40
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants