-
Notifications
You must be signed in to change notification settings - Fork 191
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TON Connect #115
TON Connect #115
Conversation
|
||
TON Connect is a bridge that crosses this conceptual gap. | ||
|
||
TON Connect, in addition to the transport layer of communication between the wallet and the app, provides methods of authorization, sending transactions to the network, interaction with smart contracts, etc. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Which methods of authorization are implied here?
Usually local authorization is done in wallet itself (fingerprint, pin, password).
Is it supposed to be something other than just private key (or complete seed phrase) + local authorization?
E.g. some types of 2FA to sacrifice some decentralization in favor of security?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@AndreyDodonov-EH
Authorization in this context means proving to the app backed that user really owns the wallet.
It is also shown in docs: https://ton.org/docs/develop/dapps/ton-connect/integration#logging-out-and-requesting-tonproof
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a lot!
I'll try to go through the docs thoroughly.
Add way to abort transaction sent via like abortable fetch in browser api https://developer.chrome.com/blog/abortable-fetch/ its use AbortSignal https://developer.mozilla.org/ru/docs/Web/API/AbortSignal If the user changes his mind about sending a transaction, he should be able to exit of the UI. Like on screen. Of course, this does not affect the blockchain, only UI |
@stels-cs user can just cancel the tx in his wallet UI. What's the problem with that? |
This is not convenient when you use a computer and a wallet in your phone. |
Currently, |
Maybe it can be done as a separate event - immediately at the time of sending, return a message or message hash, and then send an event with a hash of the transaction |
Since some wallets (hardware wallets or custom wallets such as a lockup wallet) will probably never support multiple messages in one SendTransaction, the parameter The before:
after:
For some time in the process of transition, wallets can return both format |
NOTE: the response to the request to cancel |
I think that it would be nice to implement the proposals #115 (comment) and #115 (comment) in one of the next versions of TON Connect protocol. |
The Tonkeeper team has done a great job. They studied what's been done in other blockchains, took the best approaches and improved the weaknesses.
If you like comparisons, TON Connect can be seen as an improved and most importantly decentralized version of WalletConnect.
Many TON dapps and wallets already support TON Connect. With the upcoming updates of the TON Connect SDK and UI, it's going to be pretty good. Let's have a final discussion about the protocol to make it a network-wide standard.
If you see any flaws or omissions of the protocol, please describe them here.