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.

0
votes
0answers
11 views

Encryption with Ethereum Keys for all Clients (iOS,Android,Web)

I was trying to encrypt data with Ethereum Key pairs. So far, I have managed to encrypt and decrypt data with these keys using ECIES schema on eth-crypto. Eth-crypto is a package which is built on top ...
0
votes
0answers
24 views

Recover public key from transaction signature

I have this transaction: {"blockHash":"0x163ad564b32bf17db9262391c2c9a5f191e4fd0b098ae5ce9d2e3 e7dcde4bd70","blockNumber":"0x2","from":"0x55d40a83b8445c004df5964ce4a0e261b599c01a","gas":" ...
1
vote
1answer
32 views

Retrieve public key and check the signature with web3

I create a transaction with signTransaction and I have an output like this: "signedTx": { "messageHash": "0x..", "v": "0x..", "r": "0x..", "s": "0x..", "rawTransaction": "0x....." ...
1
vote
5answers
100 views

Can I easily generate a public address which has no private key?

I might be wrong in some of the facts that I state here, so please correct me if necessary. My understanding: Private key - 256 bits Public key - 256 bits Public address - the last 160 bits of a ...
1
vote
2answers
39 views

Running 'parity account new' - is the generated account suitable for all networks (mainnet, ropsten, kovan, etc)?

From a command line, I run parity account new. I am then asked to enter a password (twice), and an account-address is printed. In addition to that, a JSON file is created. Finally, I use this ...
1
vote
1answer
32 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
36 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
98 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
35 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
vote
1answer
57 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
117 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
61 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
27 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
138 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 ...
2
votes
0answers
274 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
78 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
24 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 ...
2
votes
1answer
50 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
111 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
69 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
32 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
238 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
342 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
1k 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
20 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
252 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
49 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
2k 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
196 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
109 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
49 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
42 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
899 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
144 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
55 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
154 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
294 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
1k 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
96 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
29 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
153 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
37 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
104 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
19 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
287 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
40 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
251 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
374 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, ...
2
votes
3answers
2k 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 ...