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 identity to messages #32

Open
atoulme opened this issue Mar 23, 2019 · 1 comment
Open

Add identity to messages #32

atoulme opened this issue Mar 23, 2019 · 1 comment

Comments

@atoulme
Copy link
Contributor

atoulme commented Mar 23, 2019

It helps to add identity to the envelope, in the following cases:
Using UDP, as messages are dispatched.
Using TCP, if we don't rely on persistent connections.

In the case of RLPx, identities are exchanged during the handshake, and then again when exchanging hellos. That only works because we rely on TCP persistent connections.

@atoulme
Copy link
Contributor Author

atoulme commented Mar 27, 2019

Proposal is to add a header to messages. The header is not required, but would be leveraged by application protocols such as the EWP RPC.

I would use the header under the key "signature".

I would also store the signature as a base64 encoded string suffixed by .sig and the curve name, similar to SSB.

                  IousK4cCn9T5qFa8E14GVek4cAMmMbjqDnAg==.sig.ed25519"```

```"z7W1ERg9UYZjNfE72ZwEuJF79khG+eOHWFp6iF+KLuSrw8Lqa6
                  IousK4cCn9T5qFa8E14GVek4cAMmMbjqDnAg==.sig.secp256k1"```

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

No branches or pull requests

1 participant