1
0
mirror of https://github.com/adambard/learnxinyminutes-docs.git synced 2025-08-09 16:26:53 +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
// A. Obfuscation
// Remember all variables are publicly viewable on blockchain, so
// anything that needs privacy needs to be obfuscated (e.g., hashed)
// All variables are publicly viewable on blockchain, so anything
// that should be totally private needs to be obfuscated (e.g., hashed w/secret)
// Steps: 1. Commit to something, 2. Reveal commitment
sha3("some_bid_amount", "some secret"); // commit