Skip to content

Feature/gateway shared key generation#272

Merged
futurechimp merged 41 commits intodevelopfrom
feature/gateway_shared_key_generation
Jun 30, 2020
Merged

Feature/gateway shared key generation#272
futurechimp merged 41 commits intodevelopfrom
feature/gateway_shared_key_generation

Conversation

@jstuczyn
Copy link
Copy Markdown
Contributor

I think this branch finally reached some nice natural checkpoint where it could be merged into develop. So the added features include removal of 'AuthToken' in favour of a shared symmetric key that is established between client and gateway in a 'registration handshake' that happens on the first interaction between the entities. I also did an initial clean-up of the keys used, so proper external types are used now.

Note: to work correctly, this requires merging nymtech/nym-metrics-server#30 first.
Note2: wasm client does NOT work with the current iteration of the gateway.

jstuczyn added 30 commits June 16, 2020 16:57
// .find(|gateway| gateway.identity_key == id)
// .map(|gateway| gateway.client_listener.clone()),
// }
// }
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.

Is there a reason not to whack this commented code? It's always in source control if we want to go back to it, ja?

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.

The only reason I didn't whack it is because I forgot about it and it seems I didn't notice it before making the PR. It's gone now in my local branch.

client_listener: mpn.client_listener.to_string(),
mixnet_listener: mpn.mixnet_listener.to_string(),
pub_key: mpn.pub_key,
identity_key: mpn.identity_key,
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.

What is an "mpn"? Is it a possibly unrenamed "mix provider node"? Should it just be "gateway"?

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.

I think this is one of the remnants of when we just had providers and I wouldn't be surprised there were more cases of similar things. This is one of the things I'd ideally look at when refactoring Topology

@futurechimp futurechimp merged commit e849e45 into develop Jun 30, 2020
@futurechimp futurechimp deleted the feature/gateway_shared_key_generation branch June 30, 2020 11:01
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.

2 participants