James Francisco Public Key Revised

Public Key:


1 Like

Awesome James!

Were you able to match the Geth private key import with the address you made?

Also, get ready for step two of the assignment and reach out and coordinate with someone here: https://community.elk.cc/c/bc-iot-bootcamp/bc-week-1-theory-background to create a shared secret key and share an encrypted story only the two of you can understand. :slight_smile:

It seems to have worked.

1 Like

Hello @James!
If you’re looking for an example for how to do the second part of the assignment, please check out this thread: Afzal's Public Key & Address from @afzal and @tintin -

As a reminder here’s step three of this week’s assignment:

Step 3: Send a secret message and decode it with another member of the community. You must use a SHARED SECRET and ALL the information must be published visibly on the community forum.

How will you create that shared secret? Use your creativity!

Perhaps you can use their public keys? So comment on someone else’s public key post and communicate with them. Perhaps you can implement a sort of diffie-hellman shared secret. Agree with them on what could be a common secret with all your communication happening publicly. Write a secret message, (make it worth the trouble, make it fun!) and publish it as a reply to their public key post. If you feel like it you can match with more than one person, perhaps you can replicate a “Whisper-like” protocol. What’s something interesting that becomes possible once you understand and implement a publicly creatbale shared secret?

Hi @James

Using your publicKey, I have encrypted a message for you to decrypt.

Here is the encrypted message for your next steps:

{iv: “f00a6e174374878e5856b64d276ef1bb”, ephemPublicKey: “04cc36732ad815804a208080051cf7239cfa2801b644e4374fa74e71c75bdb0591bd2e9890354bd5c140a7fff86d507247e2d9ac543c989283d730d1a311b58056”, ciphertext: “499153907d0e09d17f70371b981f77bf0e2540ff778b3d7cc64eb481b1ebefbf687c5b59b33f583af2193e3b34257fd99e87024db1813ecec102478e4a0c8f5e3d95c9a8859433b097ece9a72f1fb4d180b864947d80ef9fc507134d8d11156cc8dae6a83e3b0dda577dce20005cfa5f86e5b7e68348044763798aa66c03214326b7221e53d8309f9e07765f0c7cddc97c006a3fcf38b308cd11bda24f9642b482a8ae3c2ca7b7f8afa110d0c0993edaf800c9318f447c4f61f5c3ac9837c03b76aa7bb9ded25a9cac184befe932294737671ddde6db04fe52e267382cc77e1eb22f3994bcc1c4d19522d0a0d37c64b0”, mac: “4751043317c88b81a4d7bbfd33f9460ae011295334db7ba07deb525fd44b65e5”}

I’m on it. Back to you shortly.

Hi @James

Good on you mate, let me/us know if you get stuck in any of the steps

I’m stumped. I’m trying to run this in Windows Subsystem for linux using Ubuntu 18.04. Everything seems to install. eth-crypto is in my node_modules directory.

I added the path to the node modules to $PATH.
But when I try to initialize eth-crypto with the line: const EthCrypto = require(‘eth-crypto’);
I get this error:
[email protected]:/mnt/d/repos/eth-crypto$ node encrypt_message.js
throw err;

Error: Cannot find module ‘eth-crypto’
at Function.Module._resolveFilename (module.js:547:15)
at Function.Module._load (module.js:474:25)
at Module.require (module.js:596:17)
at require (internal/module.js:11:18)
at Object. (/mnt/d/repos/eth-crypto/encrypt_message.js:1:81)
at Module._compile (module.js:652:30)
at Object.Module._extensions…js (module.js:663:10)
at Module.load (module.js:565:32)
at tryModuleLoad (module.js:505:12)
at Function.Module._load (module.js:497:3)

Any suggestions?

I think someone set up a sandbox here https://codesandbox.io/s/cranky-lovelace-v5y4h
Does this work for you?

Actually maybe we could set up a shared VPS and github account with code so we have a common set of tools and a common system set up to test. Yeah?

@James @pkrasam @afzal @tintin - What do you guys think about the idea of shared system and Github repo? @ielashi - what do you think can we make an Elk bootcamp repository?

It’s not a bad idea for learning. But, eventually we need to be able to run on local machines. Both paths are worth pursuing.

yeah it’s an good idea.

The code sandbox is good. But it suggests that I’ve ot problems with the keys. I’m going to try regenerating the keys.

Let us give it a try. It is always better to have members of a community to be on the same page.

A good idea, let’s give it a go.

I created a ELK team, under which we can create as many sandboxes we want for learning, sharing, collaboration.

For now I just created a folder, bc-iot-bootcamp and uploaded the code I used for wk01-dhke assignment.

Happy to add any of our community members here, if you’re open to sharing your codesandbox user name?

PK This one is for you. It uses the new keys posted.