Closed assafmo closed 3 years ago
Does this mean that you will need to sign a tx every time you query a balance? Will this live along side viewing keys as a sort of "one time passcode" for queries that access private state?
@the-dusky
Does this mean that you will need to sign a tx every time you query a balance?
No, you sign it offline (you don't broadcast a tx) and the signature (=permit) is sent with the balance query (like a viewing key) and is reusable for multiple queries. To revoke a permit the user needs to send a "revoke permit" tx.
Will this live along side viewing keys as a sort of "one time passcode" for queries that access private state?
This is an addition, so viewing keys remain untouched. It's reusable, so not exactly a "one time passcode".
Omg it's happening. 😍
A way to do authenticated queries without needing to set a viewing key first. :eyes:
Docs: https://github.com/SecretFoundation/SNIPs/blob/master/SNIP-24.md
Keplr example (SNIP-20):
Keplr example (SNIP-721):
CLI example (SNIP-20):