Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [public-key]

The tag has no usage guidance.

1
vote
1answer
23 views

Who approves my public key in Ethereum network?

In a PKI approach, a public key is approved by a Certificate Authority (CA) in a centralized manner. However, since Ethereum is a decentralized network, how is my public key validity is approved? Or, ...
1
vote
1answer
19 views

How to generate address from xpub in JS?

How to generate address from xpub in JS? Should i use BIP39 or 44? If yes, how exactly?
2
votes
1answer
56 views

Extended private key vs private key

I am trying to make an hd wallet based on nodejs. So to have a secure wallet I have created wallet in my offline machine const hdkey = require('ethereumjs-wallet/hdkey'); const bip39 = require('...
1
vote
1answer
27 views

Cannot send transactions

I have a online shop where users can recieve ETH and do shopping. So to have a secure wallet, I have created an offline service which generates xpub and xpriv which I use to generate addresses in my ...
-1
votes
0answers
32 views

Import account into Metamask

I have one problem - Generate addresses for the Ethereum for users who receive these addresses will send me ETH . I have used libs bip39 and ethereumjs-wallet to generate seed, and get from seed xpriv ...
1
vote
1answer
36 views

web3py: get public key from transaction

I'm trying to retrieve the public key of an address from a transaction. I'm getting the transaction via tx = web3.eth.getTransaction('xxx') According to the docs the public key should be retrievable ...
2
votes
1answer
50 views

Generate addresses using xpub

I have a cold storage where I installed BTC-Electrum and LTC-Electrum wallets. So I have took extended master public keys and have generating addresses in my online service. Now I want to generate ...
1
vote
1answer
30 views

web3.py manually derive address from public key string [for dummies]

Let's say I need to derive the address from a public key string. 0xbb8250cc01a0afa7dcaee987b2adda8d1b0a0bb2f7cc427bd942a98c7837364d62e6ea4728a99db39fd55a6f7474a159ca88a96b40279044a1349a2280c8cd43 ...
1
vote
1answer
21 views

How to use web3js to put it in json?

I have used web3js by using it in the form of node(npm). But I don't know how to extract some data generated from nodes. Does anyone know this web3js so the results can be changed to json form? ...
1
vote
1answer
58 views

web3py: get public key from private key (without prior transaction)

Is there a way to get the public key from a private key with web3.py? I know I could get it by checking a transaction signed by that key but that's not working for me in this example. It should be ...
1
vote
0answers
169 views

Verify Public Key from an RSA SHA256 signature

Given an RSA SHA256 signature (obtained from encrypting a hash using an RSA Private Key), I must assert whether a provided Public Key matches this signature or not. It is imperative that this ...
1
vote
2answers
67 views

Can the same keypair be used for holding ETH and different ERC20 tokens?

I have an ETH keypair. Can I hold ERC20 tokens with this ETH keypair also? Can I hold several ERC20 tokens with one key pair?
0
votes
1answer
23 views

discover if a binary data contains Ethereum address in it?

Is there a way to guess, with some level of probability , that a 20 byte array is an Ethereum address, besides doing a query against the current StateDB and its history ? I want to discover hidden ...
0
votes
1answer
33 views

Is it possible to tell that two addresses were derived from the same private key?

As we know, a single private key or seed phrase generates many addresses. Is it possible for someone to determine that two addresses were derived from the same private key?
6
votes
1answer
87 views

Why are the last 20 bytes of the public key used as the address?

According to this post regarding how to derive the Ethereum address from a public key: Take the last 40 characters / 20 bytes of this public key (Keccak-256). Or, in other words, drop the first ...
3
votes
1answer
56 views

Is there any lifespan of data on Rinkeby testnet?

I read that there are pre-autorized nodes which creates blocks on rinkeby testnet. If developers keep publishing smart contract and do transactions for testing purpose isn't the size of testnet will ...
-1
votes
1answer
31 views

Which node server for creating Ethereum keypairs and sending transaction programatically?

I need to create Key Pairs, and send transactions from my server program (probably node.js.) The code part is clear -- at least in terms of available examples -- and I know where to go with it. My ...
3
votes
1answer
185 views

Extracting Public key from signed Ethereum message or transaction in JavaScript

I'm trying to find out how to derive a public key (not the address) of an Ethereum account by using ethereumjs-util's ecrecover method. Basically I get a transaction by hash using Web3, convert r, s ...
2
votes
1answer
237 views

Get the public address & key associated with one of the Ganache accounts using Web3.js?

How do I get the public address & key (not address or account) for one of the accounts that Ganache displays on startup using Web3.js? I need it for a unit test I'm creating that tests transaction ...
1
vote
3answers
916 views

How to generate multiple eth-addresses from one private key? [duplicate]

Is it possible to generate different multiple eth-addresses from one private key? The goal is to implement a JavaScript service that will allow a user to buy a subscription using cryptocurrency. ...
0
votes
0answers
18 views

Where does Ethereum protocols use private/public keys ( as of SSL )

I am getting confused lately by the private and public keys the ethereum protocol uses. I am sure that the ones that define the users and wallets are not the same as the one used in the SSLprotocole. ...
3
votes
3answers
201 views

RE-Encrypt file in IPFS

If I have an encrypted file in IPFS with a symmetric key that I share, can I after that decrypt and re-encrypt that file with a different key in order to revoke access?
0
votes
1answer
41 views

How can I provide an ethereum public address to each user registering on my website.?

is it possible to do using web3.js for a dapp that is going to be run on mainnet.? I have a requirement to assign valid ethereum address to each user who are registering on my website. I want this ...
2
votes
1answer
1k views

The difference between contract address and wallet address

Disclaimer: this is a rather long question. To my understanding, contract address and wallet address are two profoundly different concepts, with the only thing in common being the fact that they are ...
1
vote
0answers
177 views

Customizable key generator for Node JS

I've been looking for a javescript/nodejs package that would take a passphrase as input and generate a public key. But I need it to produce the exact same public key with the exact same passphrase - ...
2
votes
2answers
105 views

Why public keys are not used directly as account addresses? [duplicate]

I understand that addresses are hashes of the public keys. But why? What is the rationale behind this design decision? And why 160 bits? Why not just use the hash directly? Is 160-bit guaranteed ...
0
votes
1answer
36 views

Send Tokens To Address, or Public Key?

I had a look at this video https://www.youtube.com/watch?v=vhdDQXLCRpE I can send tokens to MyEtherWallet from my exchange. Do I have to withdraw to my public key? Or, can I send it to one of my ...
1
vote
1answer
39 views

“public key” and “account” : are the same?

When I create a new account as follows : web3.eth.personal.newAccount('pass').then(console.log); -> pass is account password. Then, I receive an account as follows : ...
2
votes
3answers
812 views

How to recover public from tx signature(r,s) and verify signature?

My first question is how to verify signature using only r,s and elliptic curve paramete, and an address (which is hashed of public key, so cannot retrieve public key from the address)? Next question ...
1
vote
0answers
118 views

How to export the extended public key out of a Ledger Nano S?

In order to provide secure use-once addresses to an application as a application developer I would like to export the public master key from a Nano S. Then I could derive many public keys from it and ...
0
votes
1answer
53 views

How to generates the private and public key from a given name or address? [duplicate]

I want to generate both keys for transaction and also let me know how to calculate the processing time using solidity for the whole program?
0
votes
0answers
131 views

How to export extended (master) public key from MetaMask

I want to export extended public key for watch-only access to all ethereum addresses in the MetaMask HD wallet at once. It's a very usefull for tracking of all portfolio/wallets in one place, ...
-1
votes
1answer
226 views

How to display a list of ERC721 items starting from a pubblic address

I'd like to understand more about this ERC721 non-fungible tokens. I bought some cryptokitties (non 721), some art on KnownOrigin and now I want to display them in a web page. For Cryptokitties I'm ...
0
votes
1answer
820 views

Is it possible to derive public key from ETH address?

Goal (not asking XY question): send ETH to an address web3.js script monitoring it and acting upon transaction if msg.value > 0.1 ether then... ...encrypt a file with the public key of the msg....
1
vote
1answer
81 views

No luck recovering public key after EIP 155

I'm trying to understand Ethereum transaction signing, but for some reason I'm unable to verify the signature. I have a test account, 0xb2c899884790aa9e256a2d4b2256ca3319e64e32, its public key is ...
2
votes
0answers
26 views

Direct connection to some peer

I have pub key of some peer (received it in block's header, it is need for some logic). I need make connection to it to send request. If peers know each other it is not a problem. I catch it like ...
0
votes
1answer
133 views

Elliptic Key Crytography(ECC) for generating Private & Public Key

I want to generate Public-Private Key pair using ECC and then import them to Ethereum for creating an account through Geth. I am working on a Windows machine. What are the steps I should follow for ...
0
votes
0answers
35 views

Extract the private and public key from the UTC file [duplicate]

When I create a new account using Geth, it creates a UTC file corresponding to the account. All I know is that the UTC file consists of an encrypted private key. How can I decrypt this? How can I ...
0
votes
0answers
94 views

Get msgHash, v, r & s values from a transaction

I need to get the public key associated with an Ethereum address. I have this function to get a transaction associated an account. // Get first transaction of an account // https://ethereum....
0
votes
0answers
17 views

BIP 39 Key Identify Peer nodes

Is it possible to use BIP39 key (generated through mnemonics) to identify peer nodes in libp2p?
1
vote
1answer
234 views

Public / Private Key use case

I want to generate a large number of single user private/ public key pairs and store the public keys in a smart contract. Private keys will be distributed non electronically to users. If a user inputs ...
2
votes
1answer
2k views

How to generate private, public and ethereum addresses using web3.py?

I want to know the process of generating the keys for ethereum using web3.py. How to generate the keys if I install my ether node. from web3 import Web3, HTTPProvider, IPCProvider web3 = Web3(...
0
votes
0answers
36 views

Generate Public Key

I use the command: > eth.getTransaction("0xac844bd1107761fec3abe2f55bf739f0e7cc6dd1cd169a60176bfb22 9826b5a8") Where the brackets contain the hash of the successful transaction. This is what I ...
1
vote
0answers
234 views

How can I create public-private key for a ERC20 wallet that using user's email address?

I am working on a side project that provides a wallet (Think Coinbase, Binance, etc) like interface to users where they will sign in using username and password. To be able to provide a clearer ...
1
vote
1answer
302 views

Find the public key of any ethereum account (that hasn't signed a transaction)?

I need to find the public key of a list of Ethereum addresses. Is it possible to do this only with the transaction hash of one of their transactions? Per Get public key of any ethereum account the v, ...
1
vote
2answers
1k views

How to encrypt a message using only the public key from web3.eth.sign?

I retrieve the public key of a users account using Web3 as follows: web3.eth.sign(web3.eth.accounts[0], web3.sha3('test'), function (err, signature) { var sigtest = signature ...
2
votes
0answers
1k views

Is there a way to get public key using web3.js?

I know there are ways to get public key from private key using other then web3js tools (EthereumJS: How to get public key from private key and https://kobl.one/blog/create-full-ethereum-keypair-and-...
4
votes
2answers
466 views

Get address from public key in Solidity

The address is the last 20 bytes of sha3(publicKey) In Solidity, using assembly if needed, how could I splice the first 12 bytes from sha3(publicKey) and get the address? What I came up with runs out ...
2
votes
0answers
196 views

What exactly is an extended public/private key?

How do they differ per derivation level? For example is the extended public key of the master node equivalent for all intents and purposes as a depth 3 node's extended public key? Therefor can I ...
1
vote
0answers
537 views

Ethereum Dapp Account Login Protocol with Metamask

I'm building an Ethereum dapp for users to use with Metamask. We're going to have an account management system and I was trying to follow this post on how to achieve a "password-less" account system ...