Skip to content

Commit

Permalink
Update OEP-6.mediawiki
Browse files Browse the repository at this point in the history
  • Loading branch information
backslash47 committed Oct 31, 2018
1 parent 3164a4a commit a0cf97c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions OEP-6/OEP-6.mediawiki
Original file line number Diff line number Diff line change
Expand Up @@ -376,6 +376,11 @@ Green colored components represent '''dAPI.js'''. It is universal implementation
===dAPI provider===
Blue colored components belong to specific implementation of dAPI provider. The implementation is out of scope of this proposal, but the implementator must adhere to the protocol used by dAPI.js.

===Communication protocol===
The communication protocol has RPC style of communication. The RPC is modeled on top of standard WebExtension message passing using <code>runtime.sendMessage</code> and <code>runtime.onMessage.addListener</code>. All the complications of WebExtension is hidden for both the '''dApp''' and '''dAPI provider''' when using dAPI.js.

dAPI providers might use dAPI.js as the communication protocol, but they can also implement different protocols suitable for the specific environment (e.g: iOS, Android, Desktop).

==Rationale==

'''''User story''''': As a '''dApp''' developer, I need to use a lightweight api for integration with Ontology network without requiring my users to share their private keys with me.
Expand Down

0 comments on commit a0cf97c

Please sign in to comment.