Questions tagged [encryption]

Questions related to the encryption in Ethereum

Filter by
Sorted by
Tagged with
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 ...
27
votes
2answers
10k 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 ...
22
votes
2answers
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 ...
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? ...
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 ...
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 ...
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 ...
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 ...
0
votes
2answers
647 views

Encrypt data using public key

I have three data fields in a form which will return a string. I would like to hash the value of these three strings and store it in the blockchain. However the data in these three strings is ...
11
votes
3answers
600 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
1answer
228 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. ...
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 ...
7
votes
2answers
857 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 ...
5
votes
2answers
638 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 ? ...
1
vote
2answers
3k views

Ethereum wallet v3 format

Can someone explain what exactly Ethereum wallet file (v3) contains, and how it works. How exactly public-private key pair is encrypted. Why two encryption algorithms are mentioned in the file (aes-...
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
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
3answers
364 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
330 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 ...
0
votes
2answers
651 views

A bit confused. How do I send ether using Web3j to an address (Android)

EDIT: I am using android platform I think I'm a bit confused conceptually. I would appreciate it if someone could answer these few questions for me as I'm trying to make an app so that I can be ...
0
votes
1answer
166 views

How to get decrypted transaction data in quorum?

On Quorum_Node1 I am sending a transaction with privateFor: parameter as follows: eth.sendTransaction({from: eth.accounts[0], to: "0xca84356...9a3d0ccf92b8e", data: web3.toHex('sample message for ...