Phala-Network / apps-ng

Yet another UI for Phala Network.
https://app.phala.network
Apache License 2.0
17 stars 27 forks source link

Show warning when crypto.subtle is not available #18

Closed h4x3rotab closed 3 years ago

h4x3rotab commented 4 years ago

In some circumstance crypto.subtle is not available (e.g. non localhost and non https). In such case the web client can't generate ECDH keypair. Thus in "ecdh test" section, it shows empty "ECDH Public" and "ECDH Private":

image

Since the keypair is not available, it's impossible to encrypt command / query payloads. When creating a transaction, the payload will have zero size.

We should show a warning instead of a silent failure.

h4x3rotab commented 3 years ago

Not relevant anymore due to the shift from p256 ecdh to sr25519 ecdh