From 9865969ee242725546648dc887e3c0fb1fa887f2 Mon Sep 17 00:00:00 2001 From: Kevin Ho Date: Thu, 26 Sep 2019 16:47:48 -0700 Subject: [PATCH 1/3] tweaks to try to fix 2.1, 3.1 not syncing --- ch3/3.1/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ch3/3.1/README.md b/ch3/3.1/README.md index f024b9db..4a3ee363 100644 --- a/ch3/3.1/README.md +++ b/ch3/3.1/README.md @@ -121,4 +121,4 @@ To test your PoWClient, go into the `test` folder and run `node PoWAllMinerTest.
-> As always, if you have questions or get stuck please hit up the community on the [forum!](https://forum.cryptoeconomics.study) +> As always, if you have questions or get stuck please hit up the community on the [forum!](https://forum.cryptoeconomics.study) \ No newline at end of file From fd2d5edcacf4c1749b41a34958465192900daa5d Mon Sep 17 00:00:00 2001 From: Kevin Ho Date: Tue, 1 Oct 2019 09:41:57 -0700 Subject: [PATCH 2/3] updated links, dev env docs --- ch3/3.1/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ch3/3.1/README.md b/ch3/3.1/README.md index 4a3ee363..f024b9db 100644 --- a/ch3/3.1/README.md +++ b/ch3/3.1/README.md @@ -121,4 +121,4 @@ To test your PoWClient, go into the `test` folder and run `node PoWAllMinerTest.
-> As always, if you have questions or get stuck please hit up the community on the [forum!](https://forum.cryptoeconomics.study) \ No newline at end of file +> As always, if you have questions or get stuck please hit up the community on the [forum!](https://forum.cryptoeconomics.study) From f9d8a5e8911302efc0e0fedf37694b3816f6da95 Mon Sep 17 00:00:00 2001 From: Santiago Gonzalez Toral Date: Mon, 7 Oct 2019 12:04:28 -0500 Subject: [PATCH 3/3] Fix error when calling the hash method during signing --- ch1/1.2/client.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ch1/1.2/client.js b/ch1/1.2/client.js index be467ce8..40c742df 100644 --- a/ch1/1.2/client.js +++ b/ch1/1.2/client.js @@ -8,14 +8,14 @@ class Client { } // Creates a keccak256/SHA3 hash of some data - Hash(data) { + hash(data) { const dataStr = JSON.stringify(data); return EthCrypto.hash.keccak256(data); } // Signs a hash of data with the client's private key sign(message) { - const messageHash = this.toHash(message); + const messageHash = this.hash(message); return EthCrypto.sign(this.wallet.privateKey, messageHash); }