Questions tagged [private-key]

in assymetric cryptography, the private key is used to unlock, sign or decrypt

Filter by
Sorted by
Tagged with
4
votes
2answers
6k views

How can I get a mnemonic phrase from a private key?

I have a private key for my wallet and also a keystore for it. I want to use it in MEWConnect. Is there a way to get a mnemonic phrase from a private key?
1
vote
1answer
80 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, ...
2
votes
0answers
42 views

Why is an ephemeral key used in creating a digital signature?

When creating the 'S' component of a digital signature, both the actual private key and an ephemeral private key are used. The reasoning I've read is to ensure that the sender’s actual private key ...
2
votes
1answer
441 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
60 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
588 views

How to encrypt a string with a smart-contract private-key and decrypt that offline

Say I want to make a smart contract that is able to save secret messages (strings). The messages should be stored only in encrypted form so no one can read them, but should be decrypt-able by a couple ...
2
votes
1answer
2k views

How to get private keys on Truffle from Ganache accounts

Doing some ERC-735 tests on truffle+ganache I got stuck when creating claim signatures. They need to be signed from my ganache account, but I don't know its private key. The code to be used is this: ...
2
votes
2answers
156 views

How to authenticate a smart contract

my Question is, how the identity of a smart contract can be verified, or basically how to authenticate a contract. As far as I know a contract does not have a private key and also cannot keep one, ...
1
vote
1answer
32 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? ...
3
votes
1answer
738 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
619 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 ...
2
votes
2answers
162 views

Receive Ether to multiple addresses best practice

Say I am an exchange that has many users. When I ask a user to deposit ETH I give him a unique address so I can attribute the ETH to him. With Bitcoin this is easy. The bitcoin wallet software ...
2
votes
1answer
103 views

Find a lost private key in text files on Mac

I have been developing a web app and used many autogenerated ETH addresses. I stored all of them into one folder in the next format: /storage 123456789/ mainnet.eth.privateKey: "...
0
votes
1answer
697 views

account recovery with web3 privateKeyToAccount()

I'm currently stucked by this strange thing: I started by exporting my private key(fdba67e41f7c6767100969ae3f045d10a59e35d380acf5b37a3b208bd2969347) from my metamask account, which i can use to login ...
1
vote
2answers
161 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?
3
votes
0answers
65 views

Storing Private Keys in IoT Devices

In a network of IoT devices like internet-connected Raspberry Pis which sends transactions to the Ethereum blockchain, the Pis need to be able to access their own Ethereum private keys in order to ...
0
votes
1answer
139 views

How is it determined if a passphrase has correctly decrypted the private key for a wallet address?

When I load the JSON file of the wallet into MyEtherWallet, how does it determine if the passphrase is correct or incorrect? After I initially give a passphrase to encrypt my wallet's private key, is ...
1
vote
2answers
82 views

geth node on ubuntu setup question

To run a node on my vps, --rpccorsdomain "mydomain.com" and set maxconnection, can be set at the same time so that only my own website can send rpc call for security, also I use max connection to ...
2
votes
1answer
164 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?
0
votes
1answer
66 views

Why the amount of private key is more than that of public address? [duplicate]

See:the amount of private key is 16^64,the amount of public address is 16^40,so the amount of private key is way more than that of public address. But one private key can only generate one public ...
4
votes
1answer
954 views

How do I get the raw private key from a WalletFile object?

How can I get the raw private key from a WalletFile object? Here is how I am creating the wallet. String seed = UUID.randomUUID().toString(); ECKeyPair exKey = Keys.createEcKeyPair(); BigInteger ...
0
votes
1answer
103 views

What to do if the private key was compromised?

A hacker has entered my account. When I get some payment, it sends to another in 30 seconds. I need to get my tokens out of this wallet.. Is there any way? Is there any way I can change the private ...
2
votes
1answer
42 views

How payments to multiple ethereum public address can be routed to single private keys? [closed]

I'm using coinbase commerce for accepting ethereum payments. Each time the user opens the link (for example this), they are asked for payment with different ethereum address. I made a mock payment of ...
-1
votes
1answer
47 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 ...
4
votes
2answers
628 views

Quorum Private Transactions: Why public key instead of address?

Out of a combination of curiosity and frustration, I'm trying to figure out why Quorum requires a node's public key when using "privateFor". Wouldn't it be easier to use addresses? I am wondering if ...
2
votes
1answer
362 views

Keeping private key for signing transactions on a local server

Need an idea for not storing private key to sign transactions (on public server/database file system). The private key is needed to sign the transactions for transfer function ERC20 standard. To ...
2
votes
1answer
825 views

Can myetherwallet be “hacked” from the browser extension?

I'm using myetherwallet for pretty long time and like their concept - do all on the client side. So, in theory, no data is sending to the server, so even if server gets hacked - you won't lose your ...
2
votes
3answers
3k 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. ...
3
votes
3answers
501 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?
1
vote
1answer
161 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 ...
0
votes
1answer
51 views

go-ethereum: deploy contract with pub + private + key + password

I'm not sure if I create the right title. But the problem is: I do have a public and private key from ganache network. I want to deploy contract using go-ethereum which requires me to setup keystore ...
0
votes
2answers
2k views

Is it possible to regenerate my seed phrase if I have my private key?

The thing is I lost my seed phrase for MetaMask wallet. Luckily I had also backed up my private key. Is it possible to regenerate my "seed phrase" from my private key? It would be great if I could do ...
1
vote
1answer
273 views

How can i sign a message using my private key and later recover my account address from that signature to validate my account?

I am using ganache blockchain, I want to verify that this is the key of a specific address. Address : 0x24Ff3B7cacCcd9D05353dFB0Ff5b22062A13FbE0 Key : ...
2
votes
0answers
301 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 - ...
1
vote
0answers
216 views

Web3.js function 'sign' - where does it obtain the private key from?

I'm reading Web3.js docs on function web3.eth.sign (here), which state: The address parameter can also be an address or index from the web3.eth.accounts.wallet. It will then sign locally using the ...
0
votes
1answer
165 views

Using web3js apis for ethereum transactions

I want to use Web3.js APIs to create an Ethereum transaction from an address (not a smart contract) to another address using sendTransaction method (https://web3js.readthedocs.io/en/1.0/web3-eth.html#...
1
vote
1answer
46 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 : ...
0
votes
1answer
23 views

How to access an account if node is down

Consider a following scenario for a multi node private blockchain network: If one node is down, how can I access accounts created on that node from another node without having private key of the ...
3
votes
3answers
2k 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 ...
6
votes
1answer
379 views

Is possible to continue the BIP32/BIP39 algorithm from a Pk and Sk pair and “climb” to the mnemonic seed?

A few days reading about the BIP algorithm and the generation of the key pairs. Found that on the BIP 32 Paper: Child key derivation (CKD) functions Given a parent extended key and an index i, ...
0
votes
1answer
67 views

Potential attack

I have two computers, one of them is airgapped. I had also two MEW private key, stored in the airgapped computer, I made a lot of transaction from the first private key to the second one. ...
0
votes
1answer
60 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?
1
vote
1answer
221 views

Private key recovering from both addresses + signed transaction?

Hello I have a problem. I have two computers, one of them is airgapped I have downloaded and runned Myetherwallet locally on an airgapped computer. On the other computer I made the on line ...
3
votes
1answer
465 views

How to store a private data in ethereum

My use case is the following: I want to use ethereum to track devices, and device owners. This is easy to do using ethereum and smart contract. But I want to store a secret associated with the device....
0
votes
1answer
416 views

Mist: how to view private key of an account

Question: How do I use Mist to extract the Raw private key of an account. The account is password protected (if that makes a difference I don't know). Elaborating: I made an account with mist that ...
0
votes
1answer
207 views

Unable to import a private key to Mist

I downloaded Mist for my computer which runs Ubuntu version 18.04, and tried to import my private key but had these issues: When going to FILE > IMPORT ACCOUNTS, the IMPORT ACCOUNTS option is grayed ...
1
vote
2answers
646 views

geth: command not found (Ubuntu)

I have Ubuntu 18.04 installed, and I just installed Mist. To my understanding, installing Mist should have installed Geth as well, but when I do the command geth in a terminal, I receive geth: ...
0
votes
2answers
488 views

Key management in Ethereum desktop application

I am making a desktop dapp using Ethereum, web3.js, truffle, electron, and react. This will be a ethereum private blockchain. I can make, compile, deploy, call, transact, on testRPC using the ...
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....
0
votes
1answer
145 views

Unable to send ether to account

I am trying to send ehter using this code web3.eth.accounts.wallet.add(privateKey); web3.eth.sendTransaction({ to:someAddress, from:onwer, value:amount*1, ...