Questions tagged [private-key]

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

Filter by
Sorted by
Tagged with
0
votes
1answer
21 views

CLI wallet where I can pass in a Private Key and send out ETH and then delete this key?

Is there a CLI command where I can pass in an ethereum private key and send some coins to another address? I'm trying to build out a reoccurring payment system where a user can send 1 eth to another ...
1
vote
0answers
19 views

Is there a way to view the private key of test account in Remix (javascript VM)

Seeing how the keys are random and those "100 ethers" aren't real I can't think of why this is not obvious functionality, I'll need this for many reasons.
0
votes
1answer
16 views

How to Locate Private Key/JSON file of Account Created in Geth terminal

Software: Ubuntu on Virtual Box I created test account in geth terminal (rinkeby network), i.e., but I am not finding keystore, or json file in home\rinkeby\keystore Please assist can someone ...
1
vote
1answer
46 views

How get private key in private network?

I launched a private RPC Blockchain network and connected through another computer to this network. The connection is successful. How can I get a private key(through Python) if the file is on another ...
0
votes
1answer
22 views

how do I create an ethereum valid key pair in nodeJS?

I need to generate a key pair that can be used to write the a besu (ethereum) private ledger. I wrote the following code but the architect says this will probably not work with ethereum. The ...
0
votes
2answers
21 views

How to find private keys on Remix ide

I want to sign a message on Remix and I can't find the pair of private/public key. For example - I going to Deploy & Run Transactions, then trying to "Sign a message using this account key" with ...
0
votes
1answer
41 views

Building a deterministic wallet without random seed phrase instead multiple static inputs

If I want to be able to create a private key given inputs x,y,z and these inputs are constant, if I add enough entropy as a salt would it be secure to create a key this way (in terms of brute force ...
0
votes
1answer
28 views

DDEX Api Question for Python… Signing ETH Transactions?

Having an issue with signing a message for the DDEX api... I'm trying to do it in python, and for some reason my signature is off by two characters. Here's my code using the private key and UTC ...
1
vote
1answer
45 views

How Can I Sign A Transaction Server-Side?

I have a server-side Node.js app that sends a transaction to an Ethereum smart contract like so: const transaction = await contract.methods .method_name([params]).send({ from: [...
0
votes
0answers
14 views

ethereum whisper's method 'addPrivateKey' returning different keyid pair for same private key

Can somebody please explain why running this code produces different key-id pair each time? Is it not supposed to be unique for a given pvt key? web3.shh.addPrivateKey('...
0
votes
0answers
23 views

How to get my private key from keystore file for creating raw transactions Web3.js [duplicate]

I am trying to get my Ethereum private key, so that I can create raw transactions to broadcast through infura. Currently, I have a keystore file that was created with Geth, but this is not directly ...
2
votes
1answer
41 views

Wallet generator

probably this will be a very stupid question... So be careful :) from eth_account import Account while True: newAccount = Account.create() f = open("File.txt", "a") f.write("\nAddress: " +...
2
votes
2answers
250 views

How to create a RawTransaction for contract interaction Web3j

I want to sign a transaction that calls a smart contract function and send it to the Rinkeby network. I found on Web3j documentation the RawTransaction class that supports the methods for the ...
1
vote
0answers
37 views

Invalid Private Key Format

Apologies in advance if this is a silly question but I can't figure out why my metamask private key is 66 characters long instead of 64? I'm attempting to use this key with the MakerDao Dai.js library ...
0
votes
0answers
32 views

The reasons behind using public/private and addresses?

I understand that we need a public/private key so anyone can sign a message and miners can verify the signature using the public key. But, In this Question Relationship between Ethereum Address and ...
1
vote
1answer
37 views

How can I export/show private key on parity cli?

I did this command on parity parity --chain mainnet account new I got the address but, How can I export or see the private key?
3
votes
1answer
187 views

Generate Ethereum address with private key

How can I generate ethereum account address and private key that works on ethereum main network using web3 in nodejs?
0
votes
2answers
67 views

Public key validation through private key

What is a good way to validate that the public key claimed to belong to a particular user really belongs to him without revealing the associated private key? Can this be done with zero-knowledge ...
0
votes
1answer
276 views

Generate wallet public and private key using web3 PHP

I am using this to get public key: https://github.com/sc0Vu/web3.php#assign-value-to-outside-scopefrom-callback-scope-to-outside-scope I am in need of to get the public and private key using PHP ...
0
votes
0answers
10 views

Mist showed my wallet one day but after I restarted it, it disappeared

trying to see if there's any hope in restoring my wallet. I opened my Mist application for the first time since 2017 and was able to see my wallet. When I restarted it the next day, it was gone. I ...
1
vote
0answers
29 views

Where Metamask store Keys? [duplicate]

When a user enter his private key on metamask, where it store in metamask ? Can metamask access this key through any activity ?
1
vote
0answers
22 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
36 views

How to have users sign transactions on an ethereum based platform without giving up their Private Keys to the platform?

How to have users sign transactions on an ethereum based platform without surrendering their Private Keys to the platform? Need the process to be automated, while users not giving up their private ...
0
votes
0answers
71 views

My MetaMask is not loading token data, what is a mobile app that can import the MetaMask Private Key?

It's not loading any of my tokens for some reason for Metamask. I can extract the private key from this address. But what is a mobile app that can import a ETH private key? And is there one for ...
4
votes
2answers
179 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
53 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
74 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
171 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
121 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
45 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
162 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
65 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
27 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
172 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
640 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
103 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
236 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
39 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
383 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
205 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
454 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 ...
3
votes
2answers
5k 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
71 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
33 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
346 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
52 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
491 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
103 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? ...