James Francisco Public Key Revised

Public Key:
82ab8aad89a743c8c65d130960431aecce87179d917e371629f8c23f87252a6e5003d8aadfd233e85257f76f680e876535ba25028a8633417c321ab273999e6e

Address:
283bd2310b2df3e4e745960d403da2bfbf2973c61e65c8c6ea3c0566994e4e48

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:
+BG

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.
image
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
module.js:549
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.
{“iv”:“69468821fb7a46ef10bd9ad854d32521”,“ephemPublicKey”:“040ef2889de3499a58664f270a1827e109e7bd69f783cbfc0d608288202712a7354091c6f31a073180b59c739d10f6933927cc298c294a419ca729daa04973c305”,“ciphertext”:“775b8308fe10f980b52d5b886cda76a2d12817fcb7972ddadd431febbc713d3411dbe88c023508dc70fd636692f3ea6d353e95968a9d5a8ac44881de487eddd57b2baeed2760b6349a87431642d9dd447685a7de69e1c0cd1639992e1c43b4eeda0a02852bed9d81dd3a1161602599339a38b43aa37fea7f7df48a1de56d81da747051f99e585de85fec313451e9b524801bb5518166fd770129c76b1a215bad8ff9411ebad87b2497a6806a9b9d3f8b77719aa6af7cc88e07d78fb48be2acefc067cb008f5d947afe96438daa355692a31953ff5e3679c449743f65d73df698bb259dfc6032d6f48237898e796c2530fefbc70fb5227c3f2756d6ae3e1b9cd4c1ea9674644c197ebda9b9785141173ba200f3b47780d89397fde6a1913fbc9c”,“mac”:“33cac7eb271d76120c2605a320ed1090747298c176adffe9130f2df414816c80”}