1
0
mirror of https://github.com/adambard/learnxinyminutes-docs.git synced 2025-09-25 13:58:59 +02:00
This commit is contained in:
Nemil Dalal
2015-12-28 22:31:48 -05:00
parent 58ebc87f5f
commit bdd8a8b0c8

View File

@@ -500,8 +500,8 @@ function remove() {
// 9. CONTRACT DESIGN NOTES // 9. CONTRACT DESIGN NOTES
// A. Obfuscation // A. Obfuscation
// Remember all variables are publicly viewable on blockchain, so // All variables are publicly viewable on blockchain, so anything
// anything that needs privacy needs to be obfuscated (e.g., hashed) // that should be totally private needs to be obfuscated (e.g., hashed w/secret)
// Steps: 1. Commit to something, 2. Reveal commitment // Steps: 1. Commit to something, 2. Reveal commitment
sha3("some_bid_amount", "some secret"); // commit sha3("some_bid_amount", "some secret"); // commit