gnolang / gno

Gno: An interpreted, stack-based Go virtual machine to build succinct and composable apps + gno.land: a blockchain for timeless code and fair open-source.
https://gno.land/
Other
896 stars 375 forks source link

Create or reuse a wallet connection standard and integrate it into Gnoweb #2799

Open moul opened 2 months ago

moul commented 2 months ago

The goal is to ensure that Gnoweb does not depend on any external resources or specific wallets (e.g., Adena). Instead, it should allow any wallet that understands this standard to intercept or inject themselves, making Gnoweb wallet-compatible if a wallet integration is available. If no wallet integration is present, Gnoweb should continue displaying copy-paste-friendly commands, and the page should load without issues.

Important Note: Gnoweb is not just the frontend for our testnets, but the official frontend, including for local development. Therefore, it is crucial that it works without external dependencies, specific network configurations, or an internet connection.

Objectives:


cc:

AnhVAR commented 2 months ago

I think to keep gnoweb not depend external lib we can add URL Scheme for Gnokey. It mean we can direct call Gnokey to get wallet address, sign, broadcast messgae by URL. @moul

AnhVAR commented 2 months ago

Url scheme will be standard for other wallet too. Right now chrome extention not support active by url scheme but any standanlone application on desktop or mobile can do it. User can select default wallet they want when we make standard for url scheme for gno wallet

AnhVAR commented 1 month ago

@moul i just make a draft standard for wallet. Take your time to see it. Thanks https://hackmd.io/@KFPb-646Qr-0raWlHDnSvQ/r11JNiPaC/edit.