-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
23f7e7c
commit e5d9844
Showing
1 changed file
with
28 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
--- | ||
title: Push Notification | ||
--- | ||
|
||
:::warning | ||
Push Notifications are in **beta**. There is no wallet that supports it at the moment. | ||
::: | ||
|
||
import Mermaid from "@theme/Mermaid"; | ||
|
||
<Mermaid | ||
chart={` | ||
sequenceDiagram | ||
rect rgba(0, 0, 255, .2) | ||
Note over dApp,Peer: Only for Extensions<br />Extensions have 200ms to respond | ||
dApp->>Peer: Ping | ||
Peer->>dApp: Pong | ||
end | ||
rect rgba(0, 0, 255, .2) | ||
Note over dApp,Peer: dApp sends publicKey to Peer | ||
dApp->>Peer: PairingRequest | ||
Note over dApp,Peer: Peer stores the dApp publicKey <br/> Encrypts own publicKey with dApp publicKey <br/> Send back encrypted publicKey | ||
Peer->>dApp: PairingResponse | ||
end | ||
`} | ||
/> | ||
|
||
[![](https://mermaid.ink/img/eyJjb2RlIjoic2VxdWVuY2VEaWFncmFtXG4gICAgcGFydGljaXBhbnQgREFwcFxuICAgIHBhcnRpY2lwYW50IFdhbGxldFxuICAgIHBhcnRpY2lwYW50IFB1c2ggT3JhY2xlXG4gICAgcGFydGljaXBhbnQgV2FsbGV0IEJhY2tlbmRcbiAgICBEQXBwLT4-V2FsbGV0OiAxLiBQZXJtaXNzaW9uIFJlcXVlc3RcbiAgICBXYWxsZXQtPj5QdXNoIE9yYWNsZTogMi4gR2V0IENoYWxsZW5nZVxuICAgIFdhbGxldC0-PlB1c2ggT3JhY2xlOiAzLiBSZWdpc3RlclxuICAgIFdhbGxldC0-PkRBcHA6IDQuIFBlcm1pc3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