-
Notifications
You must be signed in to change notification settings - Fork 58
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
How do you get the currently unlocked Wallet's public key? #14
Comments
Do you mean that you want to get an notification when an wallet is unlocked, or just to get the wallet address that has been unlocked? |
Both would be nice. In Metamask, you can check the |
What I want is user's pubkey who call some contract api, or pubkey of any address. I wrote a dapp, which stored encrypted data in that smart contract. I want to use user's pubkey to encrypt the data, and let user decrypt it by privatekey. Could you add caller's pubkey to smartcontract's Blockchain.transaction object? |
I think if you add this feature, dapp developers can do more things by smart-contract |
Thanks for your advice! I will discuss about this with my colleagues later. |
@zoowii wallet address is your public key #6 window.postMessage({ window.addEventListener('message', function(e) { |
@hostgame nebulas's address is not same with public key, event decode them to integers |
Also, is there a way to detect whether the user has unlocked a wallet?
The text was updated successfully, but these errors were encountered: