CRYPTO NEWS

Encrypt and decrypt string inside contract using contracts private|public key

I need to write down methods to encrypt and decrypt string messages using contract private | public keys in a smart contract. However you may think it’s dangerous or anything else, the question is: Is it possible to use a smart contract private key inside it’s methods to encrypt or decrypt data?

This is a short and simple example. I need to implement the encode/decode inside the methods.

 contract Secret {     function encode(string memory message) public returns (string) {         // ...implementation     }     function decode(string memory message) public returns (string) {         // ...implementation     } }  

Making a secure bitcoin wallet [closed]

I’m thinking of creating a very secure wallet to keep my crypto for a long time. What I’m going to do right now is to install a fresh android OS on a virtual machine and disconnect it from internet. Install Coinomi wallet on it and create a new wallet and also protect the privatekey with::Listen

I’m thinking of creating a very secure wallet to keep my crypto for a long time.
What I’m going to do right now is to install a fresh android OS on a virtual machine and disconnect it from internet. Install Coinomi wallet on it and create a new wallet and also protect the privatekey with a bip39 passphrase. write down the recovery keys and the passphrase on a paper. copy the wallet public address and completely wipe the Coinomi app and the OS. Can this assure me that nobody can find my wallet private keys? (Of course I’m aware that still one can brute force it or someone might find the paper)

Encrypt and decrypt string inside contract using contracts private|public key

Shopping cart
There are no products in the cart!
Continue shopping
0