GithubHelp home page GithubHelp logo

fjrojasgarcia / ethereumbook Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ethereumbook/ethereumbook

1.0 1.0 0.0 8.09 MB

Mastering Ethereum, by Andreas M. Antonopoulos, Gavin Wood

Home Page: https://ethereumbook.info/

License: Other

HTML 5.15% Jupyter Notebook 10.60% CSS 1.17% Python 0.64% JavaScript 38.48% Go 1.04% Shell 0.84% Vue 42.08%

ethereumbook's People

Contributors

aantonop avatar abhishandy avatar adroitperson37 avatar bitsol avatar bokkypoobah avatar brianguo avatar chainhead avatar chanan-sack avatar diegogurpegui avatar dimitris-t avatar fjrojasgarcia avatar fmercury avatar haurog avatar keleffew avatar ltfschoen avatar nukemandan avatar oboukli avatar ohadh123 avatar phiuofficial avatar pjsub avatar pyskell avatar rigzba21 avatar sashafrolov avatar timnugent avatar tpmccallum avatar wbnns avatar xalava avatar zaq1tomo avatar zaremba avatar zasnicoff avatar

Stargazers

 avatar

Watchers

 avatar

ethereumbook's Issues

Underscores in Solidity

Modifiers can be used to easily change the behaviour of functions, for example to automatically check a condition prior to executing the function. They are inheritable properties of contracts and may be overridden by derived contracts.

You often see _ in modifiers

modifier onlyOwner() {
if (msg.sender != owner) throw;
_
}

From Solidity version 0.4.0+, you now need to add a semicolon after _. See Solidity - Version 0.4.0:

Change _ to _; in modifiers.

The code for the function being modified is inserted where the _ is placed in the modifier.
You can add more than one _s in the modifier code. And the code of the function being modified is inserted in each place where _ is located in the modifier. See modifier checkThree. This may be prevented by later versions of the solc compiler.
The modifiers gets called in the sequence they were defined (checkOne checkTwo checkThree) and at the end of the function, they are called in reverse. The modifiers seem to be applied like a stack. In this example anyway.

https://ethereum.stackexchange.com/questions/5861/are-underscores-in-modifiers-code-or-are-they-just-meant-to-look-cool

zero-knowledge proofs - for Glosary?

zero-knowledge proofs typically require a trusted setup: they must be initialized by some trusted authority because in practice it means that the authority could produce fake “proofs.” These fake proofs could lead to uncontrolled and undetectable inflation.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.