Comments (7)
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?
from webextensionwallet.
Both would be nice. In Metamask, you can check the accounts
array and see if it's empty to know if the user has unlocked their wallet. Using this, people can show the warning sign "Please unlock your wallet in Metamask before using our dapp."
from webextensionwallet.
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?
from webextensionwallet.
I think if you add this feature, dapp developers can do more things by smart-contract
from webextensionwallet.
Thanks for your advice! I will discuss about this with my colleagues later.
from webextensionwallet.
@zoowii wallet address is your public key #6
You can get it by such js code
window.postMessage({
"target": "contentscript",
"data":{},
"method": "getAccount",
}, "*");
window.addEventListener('message', function(e) {
try{
var user_account = e.data.data.account;
console.log(user_account);
}catch (e) {
}
});
from webextensionwallet.
@hostgame nebulas's address is not same with public key, event decode them to integers
from webextensionwallet.
Related Issues (20)
- 请问你花了多少时间开发这个? HOT 4
- [Suggestion] Add a "reject all" button HOT 2
- [Suggestion] Publish in the Chrome Web Store HOT 12
- [Suggestion] I wish 'WebExtensionWallet' had a unique name. HOT 2
- How to get the current wallet address? HOT 2
- 插件在PC端调用支付功能时除了钱包支付页面外,总会另新建一个浏览器窗口 HOT 1
- Ubuntu closes popup on file prompt HOT 2
- 星云链DAPP开发者联盟微信群 HOT 1
- 插件调用时gaslimit参数无效 HOT 6
- 怎么判断用户的钱包插件是在测试网还是主网? HOT 2
- 调用后生成交易不能返回Error HOT 1
- 谷歌浏览器装了插件,钱包不能正常使用 HOT 4
- Unload current wallet when clicking "change another wallet" HOT 1
- how to call pay page by chrome extension HOT 5
- Impossible to import a wallet HOT 1
- Feature request: 提供一个接口,用于返回钱包扩展当前的环境信息 HOT 5
- 自定义数据签名功能 HOT 1
- `NasExtWallet.getUserAddress()` 在单个通信周期内只能承载一个回调 HOT 1
- NAX voting triggering NAS transaction HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from webextensionwallet.