mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-12-23 17:41:41 +00:00
Wording
This commit is contained in:
parent
58ebc87f5f
commit
bdd8a8b0c8
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user