Stack Exchange Network

Stack Exchange network consists of 175 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
1answer
18 views

In bitcoin it's bad to reuse addresses (less security, as public key has already been revealed), how about ethereum? [duplicate]

In bitcoin it's bad to reuse addresses (less security, as public key has already been revealed), how about ethereum? Is the public key revealed when the first transaction (first nonce) is used?
0
votes
1answer
16 views

how to send transaction from different account in metamask

I have two accounts in metamask, when I called the function, web3 always used my default account in the metamask, I want to send transaction to the smart contract I deployed with another account, so ...
1
vote
0answers
13 views

Why a buffer is required in the process of creating keys from the seed

This hdkey library is creating a Buffer in the process of creating keys as an example. var HDKey = require('hdkey') var seed = '...
1
vote
1answer
39 views

Convert 64 byte public key to 20 byte address in Solidity

I am trying to convert a 128 characters hex encoded public key to an address in Solidity (0.5). For example the pubkey would be: ...
4
votes
2answers
91 views

How to encrypt a file with multiple public address?

Can I encrypt a file with multiple public address such that each of them can decrypt the file using their private keys? Thus achieving a system to securely store file on IPFS which can be accessed by ...
0
votes
1answer
27 views

Assymetric encryption with only address

I would like to send an encrypted message to an address, without knowing their public key. If I understand ECIES correctly, in order to send an encrypted ECIES message to a party, say Bob, I need to ...
0
votes
0answers
48 views

Generate derivated address from xpub

I managed to get Bitcoin addresses from xpub using bitcoinj with this code : DeterministicKey hd = DeterministicKey.deserializeB58("xpub...", MainNetParams.get()); DeterministicHierarchy hi = new ...
1
vote
0answers
16 views

How to know address belongs to current Ledger, way to get path ? (By using Ledger inside browser - JavaScript)

Ledger can generate many wallet addresses, Is there way how to find out that given public key address belongs to currently connected Ledger device ? (Using JavaScript API in web application) And ...
0
votes
0answers
27 views

Nano S Ethereum Public Key and Chain Code

I'm trying to figure out how to get this repository (https://www.npmjs.com/package/@ledgerhq/hw-app-eth) to interact with the Nano S ledger, the hardware wallet. I can't figure out what tools or ...
0
votes
0answers
91 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
86 views

Recover public key from transaction signature

I have this transaction: {"blockHash":"0x163ad564b32bf17db9262391c2c9a5f191e4fd0b098ae5ce9d2e3 e7dcde4bd70","blockNumber":"0x2","from":"0x55d40a83b8445c004df5964ce4a0e261b599c01a","gas":" ...
1
vote
1answer
149 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
230 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
92 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
53 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
99 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
223 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
41 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
119 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
252 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
148 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
29 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
246 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 ...
3
votes
0answers
457 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
98 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
26 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
78 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
217 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
95 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
37 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 ...
5
votes
1answer
369 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
459 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
2k 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
342 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
90 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 ...
3
votes
2answers
3k 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
230 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
122 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
67 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
43 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
1k 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
195 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
58 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?
2
votes
0answers
194 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 very usefull for tracking of all portfolio/wallets in one place, especially ...
-1
votes
1answer
378 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
2k 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
126 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
185 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 ...