Questions tagged [encryption]

Questions related to the encryption in Ethereum

Filter by
Sorted by
Tagged with
3
votes
1answer
67 views

Can contracts act as decryption programs? [duplicate]

I am trying to make a contract that receives an encrypted signed transaction and stores it for later use. This transaction can only be decrypted if the specified wallet sends a transaction to this ...
3
votes
0answers
517 views

“Invalid DER format public key” error trying to use bitcore-ecies for encryption with Ethereum keys

I started this blog for generation of the keys. Which I'm able to follow successfully. My generated Private, public key and the address is mentioned in the testIdentity variable in the code below. ...
4
votes
4answers
2k views

Cryptography in a smart contract

is there a way using public key cryptography (asymmetric cryptography) in a smart contract. The idea is to: 1) Encrypt some text and publish it on the block chain as a transaction. function ...
1
vote
2answers
467 views

How does Quorum prevent double spending when states are encrypted?

My understanding of Quorum is that private contracts have encrypted states hence I am confused as to how they reach consensus and prevent double spending. If each state is encrypted how can the nodes ...
1
vote
3answers
338 views

How to cryptographically challenge a public/private address key pair?

I know that in the Ethereum protocol, users submit transaction by cryptographically 'signing' their transactions using their private key to prove to the miners that they do own that key but without ...
1
vote
1answer
1k views

Python ECDSA Public Key Recovery

How do you recover the EC public key from a VRS style signature in python? I am trying to setup some encryption between two parties via ECIES, but I first wanted to obtain the public key via recovery ...
1
vote
1answer
297 views

Why is Ethereum's key generation so much faster than GPG's?

Ethereum uses asymmetric public/private key pairs to generate its accounts. So does GPG. GPG key generation takes ages and needs lots of time/entropy. Ethereum doesn't. Why the big difference?
4
votes
1answer
638 views

What is “a public key under ECIES”, and how to get it?

I read the JSONRPC document of Parity these days. And I want to encrypt my message with the public key and private key of the accounts in Parity. I found a JSONRPC in this web parity_encryptMessage ...
1
vote
1answer
888 views

How to use private key to encrypt message

I try to develop a storing image file dapp with Parity these days. And I asked a question about private key some days ago. And Someone said that each account has a private key in Ethereum so that I ...
0
votes
1answer
230 views

Encryption of keystore, keys and cryptographic library usage locations

I understand that another question posted has mentioned that the keystore has aes-128-ctr encryption: What is the strength of Mist wallet encryption? Key Derivation Function uses scrypt (where the ...
1
vote
1answer
317 views

Smart Contracts and symmetric encryption

I am currently learning about smart contracts and there is a question I have. I am trying to understand how smart contracts are executed. I read already different sources and I tinkered some ideas ...
2
votes
3answers
1k views

Contract function to decrypt a value after a certain date

I want to create a contract function that will decrypt and return a value given a password (or key) - but only after a certain date. e.g. outside the blockchain I encrypt the value "ABCDEF" and store ...
1
vote
0answers
148 views

Encrypted accounts backup and restore from 12 word seed

In my wallet I used ethereumjs-accounts library to generate and manage accounts. It allows to export and import accounts by json string or zip file. My goal is to add to export/import functionality 12-...
0
votes
1answer
648 views

Crypto package not resolving

I have the same problem as in 'How to apply pyethrecover.py on v3 .json/transfor v3 .json to .v1' referenced here, but in trying the answer's code, I am finding that the Crypto package is not being ...
1
vote
1answer
282 views

Parity encryption password help

{ "id":"eca798d8-8e68-a096-a35f-174133f86e43", "version":3, "crypto": { "cipher":"aes-128-ctr", "cipherparams": { "iv":"45092c0a2032250e66a9d0bd2a33acaa" }, "ciphertext":"...
3
votes
0answers
2k views

How to brute force decrypt wallet password ?

I have forgot my wallet password, but have an idea what it could be. I need to put a script together to try a long list of possible password. What is the command to use for that, if I am to put it ...
4
votes
1answer
536 views

Unknown Keystore / Encrypted Wallet Format

Have a user with a keyfile format that I don't recognize and MEW can't decrypt (obviously). Anyone have any insight on where this came from or what the encryption mechanism is? Sensitive info has been ...
2
votes
1answer
516 views

How to decrypt an ECIES encrypted message using a geth account and JSON-RPC protocol?

A geth node is managing an Ethereum account, having the control over its private key at keystore folder. I guess to keep it safe, best practices are letting geth by its own perform all operations that ...
3
votes
2answers
241 views

Securely send symmetrically encrypted data to contract?

Hey there I was wondering what the best technique would be for sending encrypted data to a contract, which can later be decrypted, either by the initial user, or by the contract itself, but not anyone ...
9
votes
1answer
4k views

What's a recommended way to pass secret in Solidity?

Hi I'm an Ethereum noob just trying something out. I have a quick question for the community here about passing secrets in Solidity. Since, we can only control who can change state variables in ...
5
votes
1answer
540 views

Current state of zero knowledge proofs?

Are there any current proof of concepts or implementations of zero knowledge proofs in the context of smart contracts? If not how long until we can store private data on a public blockchain?
1
vote
4answers
2k views

Decryption in a smart contract

I have a key pair: The data is encrypted off-chain: and it is saved into the following smart contract: contract Foo { string data; } Can I decrypt stored data on-chain, assuming I provide a ...
1
vote
1answer
1k views

How to create a contract with private data accessible to a particular user?

I want to create a contract that stores encrypted data that is accessible only a selected user on the blockchain. A ideal scenario would be to encrypt the data using the user's public key, such that ...
5
votes
1answer
762 views

Size of Ethereum transaction and its signature component? [duplicate]

A couple of questions: What is the average size of an Ethereum transaction in bytes (considering say a basic value transfer case). Also, what is the size in bytes of the signature component of the ...
6
votes
1answer
1k views

What underlying protocols are used to send packets between nodes, and how are messages encrypted?

In Ethereum, when we make transactions, which underlying protocol is used to send the packages over the network? And another question, are those messages are encrypted or not? TCP, UDP, others? All? ...
4
votes
4answers
739 views

“SSO-style” Login into app with web3.eth.accounts[0]

On top of the data exchanged through the Ethereum network, my app stores some extra user data in a classic DB (E.g. thumbnails, display preferences, newsletter management etc.). Doing that has led ...
12
votes
1answer
7k views

How to generate a keystore (UTC) file from the raw private key?

If I have the plaintext private key, -how- can I generate a geth-compatible keystore file using Node.js? I think I need to encrypt it using the scrypt algorithm by supplying a password, but I don't ...
1
vote
0answers
20 views

Is it secure to call function without any encryption? [duplicate]

I mean, if I have a contract with function like: string current_password; function set_password(string password, string new_password) { if (password == current_password) { ...
3
votes
1answer
131 views

If two keystore files have the same password, can it be figured out?

If two different keystore files have the same password, can it be figured out? Suppose I publish to the internet two keystore files corresponding to two different addresses. The files have the same ...
6
votes
2answers
1k views

What algorithm is used to encrypt a private key?

In my understanding, private keys are encrypted with some symmetric algorithm, so you can't access them without passphrase. What is it called?
3
votes
1answer
728 views

Hiding variables in Solidity [duplicate]

What is the best way to encrypt and decrypt a variable in Solidity so only the msg.sender and contract can see that variable?
4
votes
1answer
263 views

Does a greater number of hashing rounds in aes-128-ctr scrypt key generation mean stronger encryption?

Consider the following Ethereum account I created at MyEtherWallet: { version: 3, id: '4447b704-e28c-4e93-8b1d-32f519b46692', address: '115312fc0ab77a0fb15a66baf51f58baefcee1dd', Crypto: { ...
5
votes
1answer
256 views

Unlinkability between transactions to a smart contract

I am trying to develop an application using Ethereum and it needs to have transactions which are not linkable. I read an article by Vitalik Buterin, which speaks about it. He speaks about something ...
7
votes
1answer
3k views

Current methods to send encrypted messages from contracts

I am trying to understand if there currently exists a method to send a message from a contract to another contract or a private address? What would the Solidity code for this look like? Perhaps events ...
6
votes
2answers
4k views

Encrypted data in the block chain

I thinking of developing some kind of application in which I need to have some kind of public key cryptography done by the smart contract. The sender sends some data to the smart contract encrypyted ...
3
votes
1answer
149 views

How to create modifers for permissioned access

I have a citizenship persona contract which acts as a personal identity file which is under the control of the user. Personas can make other personas in the system into trustees or allies. As part of ...
11
votes
3answers
591 views

Are communications encrypted?

I'd like to know whether the messages delivered to the ethereum network by my wallet are encrypted such that any identifying information about the wallet is inaccessible to the ISP? in other words, ...
3
votes
0answers
153 views

How to encrypt messages to an account owner with the Ethereum public key? [duplicate]

As I understand it, an Ethereum account is a public/private key pair. Is it possible to encrypt a message with the public key (how?) that only the account holder can decrypt it with his private key? ...
1
vote
1answer
85 views

as IBM openblockchain said data are encrypted in that, Is data in Ethereum are encrypted?

Data refers to transactions,contract code functions,arguments passed to smart contract functions.
10
votes
2answers
2k views

Using Ethereum for data encryption

I'm trying to find a way to use an ethereum address/solidity/web3 for text encryption , but i'm not even sure it's possible to get the public key from the address(hash of the pubkey) using secp256k1 ...
5
votes
2answers
622 views

Make data from smartcontracts / events only visible for certain address/users

I Have an use case where i need : 1- My data not to be visible to the public. 2- To be able to revoke my clients/users rights to view said data from my smart contract. As anyone done that before ? ...
27
votes
2answers
9k views

How to encrypt a message with the public-key of an Ethereum address

I am writing some code in nodejs/browser. I have successfully created ethereum-addresses with the secp256k1-library. I was also able to sign and verify messages. Now I want to encrypt/decrypt a ...
7
votes
2answers
849 views

Does Ethereum offer encrypted peer to peer communication applications?

I am wondering if Ethereum can be used for encrypted peer to peer communication like delivering encrypted short messages or encrypted data in bulk between two or multiple parties. Are there any ...
6
votes
2answers
2k views

Can smart contracts compute on encrypted data?

There's a ton of super technical articles out there published about this, but I cannot understand them because I don't have a PHD in cryptography. So then, put simply, can I or can I not have smart ...
3
votes
1answer
222 views

Ethereum Wallet 0.5.2 >Confirm Encryption Loss> message when extracting zipped folder

Trying to download Ethereum Wallet 0.5.2 mist off github and I after downloading I click through folders and get the following message: This occurs when I attempt to extract the compressed folders. ...
24
votes
1answer
12k views

Ethereum ecrecover signature verification and encryption

The question of signing and verifying signatures with Solidity has been asked in these questions, both of which I have tried to study: How can I sign a piece of data with the private key of an ...
2
votes
2answers
305 views

Mist password not working. Is there a way to open a new account?

I have a mac. How do I delete mist and re-download it + blockchain so I can start fresh? My original password is not working (only 1 eth in it so not worried about loss). If it needs to be deleted ...
4
votes
1answer
551 views

Is there a BIP38 equivalent for Ethereum private keys?

What is the best practice to encrypt an Ethereum private key? For example, Bitcoin has BIP38.
22
votes
1answer
2k views

What are effective techniques to encrypt/decrypt data stored in a smart contract?

Rather than sending and storing plain text in a smart contract, the use case objective is to encrypt first and then subsequently access the data and decrypt at the point of use. What is the most ...