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 [private-key]

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

0
votes
0answers
25 views

Import Ethereum Privatekey

can we able to use ethereum balance using its privatekey.? is there any android application ( except trust wallet ) or a website on which we can inport our ethereum privatekeys and use balance ? I ...
0
votes
1answer
27 views

How can Contracts sign transactions, when they dont have a private key?

When transactions are made the sender is identified by his signature. But Contracts dont have a private key to sign any transaction or message. So I have some questions: Can a Contract initiate a ...
0
votes
0answers
15 views

Spending from an Ethereum Private Key Paper Wallet

I have an Ethereum paper wallet with the private key. I want to only spend a fraction of the ethereum on this private key. I also have a few USDC tokens on it that I want to also spend. How can I ...
0
votes
1answer
31 views

Import geth account into metamask

How do I import a keystore file generated in geth into Metamask? Is there a simple way for me to convert the ciphertext into a private key, can I decrypt it with my passphrase somehow?
0
votes
0answers
17 views

If nG and 2nG are known how to find generator point G [migrated]

if in a curve y2 mod p = x3+ 7 mod p ( ecdsa-secp256k1) p=115792089237316195423570985008687907853269984665640564039457584007908834671663 G=...
0
votes
0answers
26 views

Can i convert my HEX private key to RAW form?

Sorry guys if this is a basic question but i am new to this. I have got my private key only in HEX format. converting to raw and then importing or directly making a wallet using HEX private key. Is it ...
0
votes
1answer
21 views

If Address and private key doesn't get stored in Ethereum,then how will it validate users?

I think in a normal database,the username and password gets stored in the database and when a user enters his/her credentials,it checks with the content in the database to know his/her Authenticity. ...
0
votes
0answers
67 views

How to call contract method from specific address and private key without Metamask check

Good morning, I need to known how call contract method in javascript from specific address(and relative private key) without the check of Metamask. I explain better. This is an example of js code, ...
2
votes
0answers
30 views

Truffle test to verify events can be queried by the address of the signing user?

I'm trying to write a test which verifies I can query a given type of events by the user/address which sign them. I would like to apply TDD (relevant to say I haven't made the implementation for this ...
1
vote
0answers
21 views

Eth transfer assistance help request [closed]

how can i do the transfer from eth wallet address to another eth wallet address? because i have a public eth wallet address with balance within , i dont know how can i transfer the balance in order ...
0
votes
0answers
54 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
2answers
106 views

How to transfer ERC20 tokes from Blockchain wallet to MyEtherWallet?

I got some token and by mistake sent them to my Blockchain ETH address. Now, what is the process of transferring them to MEW? They talk about exporting your private key, what does that mean and to ...
2
votes
1answer
39 views

Is it possible that Ganache can handle a private key without an “0x” prefix, but Parity cannot?

I am trying to sign and send a transaction as follows: let signedTx = await web3.eth.accounts.signTransaction(options, PRIVATE_KEY); let txReceipt = await web3.eth.sendSignedTransaction(signedTx....
0
votes
1answer
92 views

How to get private key with web3 v0.2.x?

web3 version 1.x has the decrypt method, which decrypts a keystore v3 JSON. By using it the following way, I can get the private key easily: web3.eth.accounts.decrypt(keystoreJsonV3, password); But ...
1
vote
0answers
30 views

aes-128-ctr is not available

While trying to extract key from keystore file using password, using the library keythereum, I'm getting the error: aes-128-ctr is not available I'm using web3 version ^0.19.1. Ref: https://github....
1
vote
5answers
144 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
66 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 ...
3
votes
4answers
439 views

Must a Solidity developer know the private keys to the wallet that is tied to a token contract?

To deploy a token contract, there must be a wallet address, am I right? Thus, must the coder be managing the wallet (with its private keys) that is used? I'm looking at the scenario where what if ...
2
votes
1answer
885 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
40 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
0answers
16 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
155 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
39 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
193 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
703 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: ...
1
vote
2answers
51 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
28 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
196 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
361 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
59 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
63 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
264 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
89 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
44 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
67 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
1answer
55 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
68 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
42 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 ...
2
votes
1answer
478 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
42 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
34 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
34 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
339 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
267 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
694 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 ...
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. ...
3
votes
3answers
302 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
69 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
35 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
1answer
724 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 ...