Giter VIP home page Giter VIP logo

Comments (7)

yupnano avatar yupnano commented on July 17, 2024

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.

woniesong92 avatar woniesong92 commented on July 17, 2024

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.

zoowii avatar zoowii commented on July 17, 2024

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.

zoowii avatar zoowii commented on July 17, 2024

I think if you add this feature, dapp developers can do more things by smart-contract

from webextensionwallet.

yupnano avatar yupnano commented on July 17, 2024

Thanks for your advice! I will discuss about this with my colleagues later.

from webextensionwallet.

hostgame avatar hostgame commented on July 17, 2024

@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.

zoowii avatar zoowii commented on July 17, 2024

@hostgame nebulas's address is not same with public key, event decode them to integers

from webextensionwallet.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.