lisk-desktop icon indicating copy to clipboard operation
lisk-desktop copied to clipboard

Enable users to receive and respond to connection request from blockchain application

Open reyraa opened this issue 1 year ago • 0 comments

Description

To enable blockchain application to establish a connection with Lisk Desktop, Lisk Desktop should be able to receive such events, and act accordingly. Lisk Desktop uses the WalletConnect public bridge served here.

Acceptance Criteria

Lisk Desktop should: Be able to receive connection requests from blockchain application implemented according to the WalletConnect protocol. Provide users with sufficient information to assess the correctness/genuinity of the connection. Provide users with options to approve and reject the connection. Send a connection approval event to the blockchain application, should the user approve the connection. Send a rejection event to the blockchain application, should the user reject the connection. The implementation should match the WalletConnect protocol, and the event schemas defined in the TECH proposal document. Reasonable unit test coverage is required. E2e test coverage is required.

Additional information

Request WalletConnect client API provides a method to request a connection.

Approval Lisk Desktop in turn can use another method to approve the connection request.

Rejection If the user chooses to decline the request, Lisk Desktop can inform the blockchain application using the reject method.

Update In the event that the user switches to another account, Lisk Desktop can update the session using the update method.

Termination And finally, if the user decides to actively terminate the session, Lisk Desktop can handle this using the kill method.

reyraa avatar Aug 01 '22 09:08 reyraa