I've had a look at the white paper but I fail to understand exactly what is happening on the code shown on the page.

As far as I understand this example manages shareholders. But, is it possible to store organisation data somewhere? I (honestly) don't understand this.

  • You will find more information in the forums of the ethereum site. Mar 20, 2014 at 17:15
  • Please provide sufficient information that the question can be understood from the question's text. Please, don't make us read another resource in order to be able to understand your question, but rather provide a link additionally as the source in case somebody wants to get more background information.
    – Murch
    Mar 21, 2014 at 11:44

1 Answer 1


That's a pretty general contract: As long as more than two thirds of the shareholders agree, you can change every single storage entry. This enables to add or remove shareholders, change the program itself (as it's part of the storage as well), and store arbitrary additional data.

To extend the description in the white paper a little, here's how a voting could look like:

1) One shareholder proposes a change of some storage bytes using the second transaction type ([1,k,L,v0,v1...vn]). k is a kind of ID to refer to this suggestion later, L is the first storage address that will be changed and v0, v1, ... is the data to store. As you can see, arbitrary changes of storage entries are allowed.

2) Now, the other shareholders can vote to implement the change with the first transaction type ([0,k], where k refers to the previously registered proposal). The number of votes in favor of this proposal is stored at a storage location given by the hash of k.

3) As soon as enough votes have been received, a shareholder can send the third transaction type to apply proposal k, i.e. write the data to the storage.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.