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

Implement AuthClient.respond #4

Closed
Tracked by #1
bkrem opened this issue Aug 10, 2022 · 0 comments
Closed
Tracked by #1

Implement AuthClient.respond #4

bkrem opened this issue Aug 10, 2022 · 0 comments

Comments

@bkrem
Copy link
Member

bkrem commented Aug 10, 2022

Steps

  1. B constructs message to be signed from request and signs it. - Optional for now, i.e. we can just send a mock string like "signature" back at first. We still need to figure out how to best do the EIP-191 signing (most likely ethers.js)
  2. B generates their own keyPair Y - i.e. const responderPubKey = await this.client.core.crypto.generateKeyPair()
  3. B uses sendResult for auth_request on response topic with the TYPE_1 option, which generates shared symKey R via crypto.encode and encrypts the message with it - Example use of TYPE_1 here

Goals

  • Responder can receive incoming auth request
  • Responder can send a type 1 envelope response containing a (mock) signature
@bkrem bkrem mentioned this issue Aug 10, 2022
24 tasks
@bkrem bkrem closed this as completed Aug 11, 2022
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