EthPress – Web3 Login

Slug: ethpress

Author Profile : https://profiles.wordpress.org/lynn999/

Add the ability to sign in with cryptocurrency wallets such as for example MetaMask and Trust Wallet. Adds a key to WordPress login monitor which will let users securely sign in making use of their crypto wallet.

Found in the background, a normal WordPress user bank account is created, as a result existing plugins and customizations could have no issue working along.

Plugin’s source code: https://gitlab.com/losnappas/ethpress.

WordPress plugin site: https://wordpress.org/plugins/ethpress/.

Signature verifier’s, that is used if zero php-gmp or php-bcmath, supply code: https://gitlab.com/losnappas/verify-eth-signature.

(Not related take note:) the modal is really a Svelte component. Source program code: https://gitlab.com/losnappas/web3-login. Help incorporating more suppliers is appreciated!

Details

Shortcodes

[ethpress_login_button] 

Inserts the login button. Exactly the same kind as you notice on the login display.

The button is only going to be displayed if user is not logged in, in any other case outputs nothing.

Signature Verification

When customer submits a signature, it requires to be verified in server-side.

Firstly, for those who have php-gmp or php-bcmath extension installed, we’ll take action with PHP, and you will ignore the relaxation of the. To check, visit the EthPress settings web page.

Otherwise, we take action with JavaScript, because PHP doesn’t have the required math functions automagically. EthPress will come configured with a free of charge services. To verify signatures locally, and you also may as well, see details: https://gitlab.com/losnappas/verify-eth-signature.

TODOS

  • Something anything WP REST API. — Uncertain if that is possible, in the end.

Example

Try it.

Eth (ERC-20) donations: 0x106417f7265e15c1aae52f76809f171578e982a9

More Q&A.

Post Tagged with : , , , ,
Shares