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 key exchange primitives for p2p #1884

Merged
merged 2 commits into from
Mar 16, 2020
Merged

Add key exchange primitives for p2p #1884

merged 2 commits into from
Mar 16, 2020

Conversation

anjmao
Copy link
Contributor

@anjmao anjmao commented Mar 13, 2020

Add primitives to support shared key exchange using NACL. The idea is that both provider and consumer need to exchange public key pairs which are signed by etherium private keys. Once exchange is done p2p will use Salsa20 cipher for data encryption.

Exchange itself will be implemented in separate PR using NATS broker.

@codecov-io
Copy link

Codecov Report

Merging #1884 into master will increase coverage by 0.06%.
The diff coverage is 74.13%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1884      +/-   ##
==========================================
+ Coverage   47.05%   47.12%   +0.06%     
==========================================
  Files         288      288              
  Lines       11775    11806      +31     
==========================================
+ Hits         5541     5563      +22     
- Misses       5799     5804       +5     
- Partials      435      439       +4     
Impacted Files Coverage Δ
p2p/key.go 62.50% <62.50%> (-37.50%) ⬇️
p2p/channel.go 74.10% <88.46%> (-2.53%) ⬇️
tequilapi/sse/sse.go 74.44% <0.00%> (+3.33%) ⬆️
core/policy/oracle.go 91.89% <0.00%> (+5.40%) ⬆️

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 7205584...8712302. Read the comment docs.

@anjmao anjmao merged commit c056f41 into master Mar 16, 2020
@anjmao anjmao deleted the pub-key-encrypt branch March 16, 2020 08:04
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.

None yet

3 participants