ethereum / ethereum/devp2p

sig missing from handshake's auth spec

Open
#218 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
1.1k
Forks
297
Avg merge
5h 50m
Merged PRs (30d)
1

Description

```
auth = auth-size || enc-auth-body
auth-size = size of enc-auth-body, encoded as a big-endian 16-bit integer
auth-vsn = 4
auth-body = [sig, initiator-pubk, initiator-nonce, auth-vsn, ...]
enc-auth-body = ecies.encrypt(recipient-pubk, auth-body || auth-padding, auth-size)
auth-padding = arbitrary data
```

Looking at various implementations, it seems like sig is:
```
sig = secp256k1.sign(ephemeral-privkey , shared-secret ^ initiator-nonce)
```
and shared-secret is:
```
shared-secret = ecdh.agree(privkey, remote-pubk)
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.