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

Send a signed response with WS register #2

Open
zsoltpardi opened this issue Jan 28, 2018 · 0 comments
Open

Send a signed response with WS register #2

zsoltpardi opened this issue Jan 28, 2018 · 0 comments

Comments

@zsoltpardi
Copy link
Member

The app must send a signed message to the UI peer in the response of register
https://github.com/streembit/streembit-cli/blob/develop/transport/ws/handler_srvc.js#L150

The payload apart from the token which included already must include this data:

{
"token": "abcd",
"data": {
"pkhash": "xyz",
"time": 12345
}
"sign": "abcdefgh",
"public_key": "the application public key"
}
  • pkhash: UI client pkhash
  • time: time of signature
  • sign: CLI PKI signature of the data field
  • the main ECC public key of the app
@zsoltpardi zsoltpardi changed the title Send a signed response wit WS register Send a signed response with WS register Jan 30, 2018
alexDou added a commit that referenced this issue Mar 20, 2018
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