sips icon indicating copy to clipboard operation
sips copied to clipboard

SIP for Wallet Protocol

Open friedger opened this issue 3 years ago • 3 comments

This SIP specifies how applications and wallet should exchange messages and how applications and wallets agree on the protocol.

While writing "SIP for Authentication Protocol", it became clear that the communication should be handled in a separate SIP.

friedger avatar Jan 20 '22 15:01 friedger

Thanks for starting this SIP, @friedger.

What are your thoughts on following a scheme similar to EIP-1102, whereby we use a JSON RPC style API, rather than a set of methods. I'd be in favour of this.

kyranjamie avatar Apr 11 '22 07:04 kyranjamie

A rpc style api makes sense because it would work also for a https provider

friedger avatar Apr 11 '22 09:04 friedger

A rpc style api makes sense because it would work also for a https provider

Another benefit is that, with Web Extensions, it'll be easier to forward events when they go through the same method. For each new method, a new handler is needed in the forwarding script contexts.

In page script contextContent script contextBackground script context

kyranjamie avatar Apr 14 '22 12:04 kyranjamie