Update encrypted-message.md

pull/1/head
Daniel M 7 years ago committed by GitHub
parent f22922b624
commit debc974d1d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      tutorials/encrypted-message.md

@ -7,6 +7,8 @@ With ethereum-keys you cannot only interact with the blockchain, but also use th
First we create two identities, `Alice` and `Bob`. In our case `Alice` want to send the message `My name is Satoshi Buterin` to `Bob`.
```javascript
const EthCrypto = require('eth-crypto');
const alice = EthCrypto.createIdentity();
const bob = EthCrypto.createIdentity();
const secretMessage = 'My name is Satoshi Buterin';

Loading…
Cancel
Save