Skip to content

rlp, p2p, p2p/discover: EIP-8 changes#2091

Merged
obscuren merged 12 commits into
ethereum:developfrom
fjl:eip-8
Feb 19, 2016
Merged

rlp, p2p, p2p/discover: EIP-8 changes#2091
obscuren merged 12 commits into
ethereum:developfrom
fjl:eip-8

Conversation

@fjl

@fjl fjl commented Dec 24, 2015

Copy link
Copy Markdown
Contributor

Implements ethereum/EIPs#49

@fjl fjl added the network label Dec 24, 2015
@fjl fjl added this to the Homestead milestone Dec 24, 2015
@robotally

Copy link
Copy Markdown
Vote Count Reviewers
👍 2 @karalabe @obscuren
👎 0

Updated: Fri Feb 19 10:01:31 UTC 2016

@codecov-io

Copy link
Copy Markdown

Current coverage is 48.19%

Merging #2091 into develop will increase coverage by +0.31% as of 506e27e

Powered by Codecov. Updated on successful CI builds.

@fjl fjl force-pushed the eip-8 branch 2 times, most recently from 7517539 to dde5bb3 Compare February 12, 2016 08:48
The s2 parameter was not actually written to the MAC.
@fjl

fjl commented Feb 12, 2016

Copy link
Copy Markdown
Contributor Author

@obscuren @karalabe @Gustav-Simonsson please review

@obscuren obscuren modified the milestones: Homestead, 1.3.4 Feb 15, 2016
Comment thread crypto/ecies/ecies.go
func messageTag(hash func() hash.Hash, km, msg, shared []byte) []byte {
if shared == nil {
shared = make([]byte, 0)
}

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Was this shared thing never used until now? Why is it only added to the hash now?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We didn't use it until now.

Comment thread rlp/encode.go
writer := func(val reflect.Value, w *encbuf) error {
lh := w.list()
if !ts.dotdot {
defer w.listEnd(w.list())

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@karalabe here. w.list() is executed prior to the rest of the code.

EDIT: nifty pattern BTW :-D cool trick!

@obscuren

Copy link
Copy Markdown
Contributor

As discussed on gitter change the .. to tail to make it more descriptive what the tag does.

Comment thread p2p/discover/udp.go Outdated
return ok && tempErr.Temporary() || isPacketTooBig(err)
}

func encodePacket1(priv *ecdsa.PrivateKey, ptype byte, req interface{}, additional []byte) ([]byte, error) {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What does this method do? I don't see it used in any of the code.

@karalabe

Copy link
Copy Markdown
Member

Code looks solid to me. The crypto aspects I cannot verify, but given the thorough tests + the cross client interop experiments, I guess those parts are correct. Please address the issues I've raised and the it's a Go from my part.

@fjl

fjl commented Feb 19, 2016

Copy link
Copy Markdown
Contributor Author

PTAL. will squash when you're done reviewing.

@karalabe

Copy link
Copy Markdown
Member

LGTM 👍

@obscuren

Copy link
Copy Markdown
Contributor

👍

@karalabe

Copy link
Copy Markdown
Member

@fjl Please squash.

@obscuren obscuren merged this pull request into ethereum:develop Feb 19, 2016
@obscuren obscuren removed the review label Feb 19, 2016
@obscuren

Copy link
Copy Markdown
Contributor

@fjl please re-open.

@fjl fjl removed this from the 1.3.4 milestone Feb 24, 2016
sduchesneau pushed a commit to streamingfast/go-ethereum that referenced this pull request Mar 23, 2026
* sec fix 60

* Simplify comments on future block timestamp checks

Removed detailed comments regarding block timestamp checks to simplify the code.

* address lint

* improve comments
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.

5 participants