Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor SSZ, implement incremental hash #115

Merged
merged 98 commits into from
Apr 17, 2019
Merged

Commits on Mar 25, 2019

  1. Temp draft commit

    Nashatyrev committed Mar 25, 2019
    Configuration menu
    Copy the full SHA
    8b9e319 View commit details
    Browse the repository at this point in the history

Commits on Mar 29, 2019

  1. Configuration menu
    Copy the full SHA
    97e61b0 View commit details
    Browse the repository at this point in the history

Commits on Apr 4, 2019

  1. Configuration menu
    Copy the full SHA
    4be6e14 View commit details
    Browse the repository at this point in the history

Commits on Apr 5, 2019

  1. Configuration menu
    Copy the full SHA
    ece9947 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    4a5d832 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    b702dd4 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    2707033 View commit details
    Browse the repository at this point in the history

Commits on Apr 6, 2019

  1. Support BytesHasher

    Nashatyrev committed Apr 6, 2019
    Configuration menu
    Copy the full SHA
    8f28224 View commit details
    Browse the repository at this point in the history

Commits on Apr 7, 2019

  1. Adjust incremental hasher

    Nashatyrev committed Apr 7, 2019
    Configuration menu
    Copy the full SHA
    ae041a7 View commit details
    Browse the repository at this point in the history
  2. Adjust SSZBuilder

    Nashatyrev committed Apr 7, 2019
    Configuration menu
    Copy the full SHA
    29b9de4 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    679ae0b View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    28c1b3a View commit details
    Browse the repository at this point in the history

Commits on Apr 8, 2019

  1. Add byte primitive codec

    Nashatyrev committed Apr 8, 2019
    Configuration menu
    Copy the full SHA
    e219b03 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    5a677c2 View commit details
    Browse the repository at this point in the history
  3. Add BytesValue accessor

    Nashatyrev committed Apr 8, 2019
    Configuration menu
    Copy the full SHA
    0dbefae View commit details
    Browse the repository at this point in the history
  4. Fix SubclassCodec bug

    Nashatyrev committed Apr 8, 2019
    Configuration menu
    Copy the full SHA
    cdf145e View commit details
    Browse the repository at this point in the history
  5. Fix test

    Nashatyrev committed Apr 8, 2019
    Configuration menu
    Copy the full SHA
    99f9293 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    eada042 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    2b75e3a View commit details
    Browse the repository at this point in the history
  8. Fix BytesValueAccessor

    Nashatyrev committed Apr 8, 2019
    Configuration menu
    Copy the full SHA
    a9616f9 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    29bd1f1 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    1d5a688 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    ba763bc View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    b56f6ff View commit details
    Browse the repository at this point in the history
  13. Annotate BeaconState interface members with @ssz instead of implement…

    …ation class fields. Get rid of serialization workaround with ArrayList instead of ReadList in the BeaconState
    Nashatyrev committed Apr 8, 2019
    Configuration menu
    Copy the full SHA
    03eadff View commit details
    Browse the repository at this point in the history
  14. Merge remote-tracking branch 'origin/develop' into feature/incrementa…

    …l-ssz
    
    # Conflicts:
    #	consensus/src/main/java/org/ethereum/beacon/consensus/hasher/SSZObjectHasher.java
    #	consensus/src/main/java/org/ethereum/beacon/consensus/verifier/operation/DepositVerifier.java
    #	core/src/main/java/org/ethereum/beacon/core/BeaconState.java
    #	core/src/main/java/org/ethereum/beacon/core/state/BeaconStateImpl.java
    #	core/src/main/java/org/ethereum/beacon/core/state/ImmutableBeaconStateImpl.java
    #	core/src/test/java/org/ethereum/beacon/core/SSZSerializableAnnotationTest.java
    #	pow/validator/src/main/java/org/ethereum/beacon/pow/validator/ValidatorRegistrationServiceImpl.java
    #	ssz/src/main/java/org/ethereum/beacon/ssz/SSZCodecHasher.java
    #	ssz/src/main/java/org/ethereum/beacon/ssz/SSZHashSerializer.java
    #	ssz/src/main/java/org/ethereum/beacon/ssz/SSZSchemeBuilder.java
    #	ssz/src/main/java/org/ethereum/beacon/ssz/access/basic/BytesCodec.java
    #	test/src/test/java/org/ethereum/beacon/test/runner/SszRunner.java
    Nashatyrev committed Apr 8, 2019
    Configuration menu
    Copy the full SHA
    7bdef8c View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    bb859ba View commit details
    Browse the repository at this point in the history

Commits on Apr 9, 2019

  1. Configuration menu
    Copy the full SHA
    19ec99f View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    2e1980e View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    a2c007c View commit details
    Browse the repository at this point in the history
  4. Fix BytesValue.concat bug

    Nashatyrev committed Apr 9, 2019
    Configuration menu
    Copy the full SHA
    ff435ff View commit details
    Browse the repository at this point in the history
  5. Process empty list without requesting child element type. This preven…

    …ted hashing empty lists with no parametrized type info (e.g. hash_tree_root(new ArrayList()))
    Nashatyrev committed Apr 9, 2019
    Configuration menu
    Copy the full SHA
    a6b1a20 View commit details
    Browse the repository at this point in the history
  6. Now need to pass specConstants to every serializer and hasher (due to…

    … vector sizes tied to spec constants)
    Nashatyrev committed Apr 9, 2019
    Configuration menu
    Copy the full SHA
    d937526 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    b683551 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    a0b418d View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    35a15a9 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    908b33d View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    2f5a50b View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    1b14116 View commit details
    Browse the repository at this point in the history
  13. Fix annotation

    Nashatyrev committed Apr 9, 2019
    Configuration menu
    Copy the full SHA
    e34fa67 View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    bb0da59 View commit details
    Browse the repository at this point in the history
  15. Remove obsolete classes

    Nashatyrev committed Apr 9, 2019
    Configuration menu
    Copy the full SHA
    6534a5a View commit details
    Browse the repository at this point in the history

Commits on Apr 10, 2019

  1. Change BeaconState state vector members to types ReadVector/WriteVect…

    …or. Init vectors with empty elements
    Nashatyrev committed Apr 10, 2019
    Configuration menu
    Copy the full SHA
    b687f90 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    570c24e View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    35c9aff View commit details
    Browse the repository at this point in the history

Commits on Apr 11, 2019

  1. Configuration menu
    Copy the full SHA
    ad5b85b View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    4507d31 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    c84e0b8 View commit details
    Browse the repository at this point in the history
  4. Add @SSZ.order attribute to order SSZ fields declared by methods (cla…

    …ss methods can't be retrieved in declaration order)
    Nashatyrev committed Apr 11, 2019
    Configuration menu
    Copy the full SHA
    0fa6690 View commit details
    Browse the repository at this point in the history
  5. Fix merkle trie resizing

    Nashatyrev committed Apr 11, 2019
    Configuration menu
    Copy the full SHA
    2a581f7 View commit details
    Browse the repository at this point in the history
  6. Add ability to fork update listener so two copies of the same source …

    …can be independently safely updated
    Nashatyrev committed Apr 11, 2019
    Configuration menu
    Copy the full SHA
    e90e973 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    0174942 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    56682f2 View commit details
    Browse the repository at this point in the history
  9. Update test

    Nashatyrev committed Apr 11, 2019
    Configuration menu
    Copy the full SHA
    b057951 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    2e098b4 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    aa6c69c View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    60d440d View commit details
    Browse the repository at this point in the history
  13. Fix the bug

    Nashatyrev committed Apr 11, 2019
    Configuration menu
    Copy the full SHA
    c564d7e View commit details
    Browse the repository at this point in the history

Commits on Apr 12, 2019

  1. Configuration menu
    Copy the full SHA
    917660e View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    d7802f1 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    f870d2a View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    f32f0d5 View commit details
    Browse the repository at this point in the history
  5. Extract MerkleTrie class

    Nashatyrev committed Apr 12, 2019
    Configuration menu
    Copy the full SHA
    5ffd377 View commit details
    Browse the repository at this point in the history
  6. Use optimized SimpleHasher

    Nashatyrev committed Apr 12, 2019
    Configuration menu
    Copy the full SHA
    64f2e6c View commit details
    Browse the repository at this point in the history
  7. Rename the method

    Nashatyrev committed Apr 12, 2019
    Configuration menu
    Copy the full SHA
    2fdfb23 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    05a78fe View commit details
    Browse the repository at this point in the history
  9. Remove empty files

    Nashatyrev committed Apr 12, 2019
    Configuration menu
    Copy the full SHA
    e5c7564 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    a372df9 View commit details
    Browse the repository at this point in the history
  11. Add some SSZ JavaDoc

    Nashatyrev committed Apr 12, 2019
    Configuration menu
    Copy the full SHA
    f424056 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    7089f81 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    24aad88 View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    8937b57 View commit details
    Browse the repository at this point in the history
  15. Add some more JavaDoc

    Nashatyrev committed Apr 12, 2019
    Configuration menu
    Copy the full SHA
    8fb6121 View commit details
    Browse the repository at this point in the history

Commits on Apr 15, 2019

  1. Configuration menu
    Copy the full SHA
    e1d8bc8 View commit details
    Browse the repository at this point in the history
  2. Merge branch 'feature/incremental-ssz' of https://github.com/harmony-…

    …dev/beacon-chain-java into feature/incremental-ssz
    
    # Conflicts:
    #	ssz/src/main/java/org/ethereum/beacon/ssz/ExternalVarResolver.java
    #	ssz/src/main/java/org/ethereum/beacon/ssz/access/AccessorResolverRegistry.java
    #	ssz/src/main/java/org/ethereum/beacon/ssz/type/SimpleTypeResolver.java
    Nashatyrev committed Apr 15, 2019
    Configuration menu
    Copy the full SHA
    6c3a1f2 View commit details
    Browse the repository at this point in the history
  3. Resolve merge conflicts

    Nashatyrev committed Apr 15, 2019
    Configuration menu
    Copy the full SHA
    8c4a28d View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    2c68ce2 View commit details
    Browse the repository at this point in the history
  5. Remove commented code

    Nashatyrev committed Apr 15, 2019
    Configuration menu
    Copy the full SHA
    b0a12cc View commit details
    Browse the repository at this point in the history
  6. Fix the test

    Nashatyrev committed Apr 15, 2019
    Configuration menu
    Copy the full SHA
    935a73c View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    9d7ba00 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    61a48ff View commit details
    Browse the repository at this point in the history
  9. BeaconState.empty() should be created with respect to constants to co…

    …rrectly pick vector sizes
    Nashatyrev committed Apr 15, 2019
    Configuration menu
    Copy the full SHA
    c66ae65 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    e98e06a View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    e05e960 View commit details
    Browse the repository at this point in the history
  12. Fix the test

    Nashatyrev committed Apr 15, 2019
    Configuration menu
    Copy the full SHA
    a811d29 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    4e6eef6 View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    79cb073 View commit details
    Browse the repository at this point in the history
  15. Minor JavaDoc fix

    Nashatyrev committed Apr 15, 2019
    Configuration menu
    Copy the full SHA
    5ea33a6 View commit details
    Browse the repository at this point in the history
  16. Add ssz.access javadocs

    Nashatyrev committed Apr 15, 2019
    Configuration menu
    Copy the full SHA
    8f077ed View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    abb8a33 View commit details
    Browse the repository at this point in the history
  18. Add ssz.type javadocs

    Nashatyrev committed Apr 15, 2019
    Configuration menu
    Copy the full SHA
    db04a59 View commit details
    Browse the repository at this point in the history
  19. Configuration menu
    Copy the full SHA
    540f2c3 View commit details
    Browse the repository at this point in the history

Commits on Apr 16, 2019

  1. Configuration menu
    Copy the full SHA
    c438aac View commit details
    Browse the repository at this point in the history
  2. Fix test regression

    Nashatyrev committed Apr 16, 2019
    Configuration menu
    Copy the full SHA
    cfaf11b View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    f847d7e View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    1a7ab12 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    9dfd725 View commit details
    Browse the repository at this point in the history
  6. Fix the test

    Nashatyrev committed Apr 16, 2019
    Configuration menu
    Copy the full SHA
    51aa0f5 View commit details
    Browse the repository at this point in the history