1. 21 Aug, 2019 2 commits
    • Péter Szilágyi's avatar
      1bccafe5
    • Piotr Dyraga's avatar
      core/vm, crypto/blake2b: add BLAKE2b compression func at 0x09 · 2890f060
      Piotr Dyraga authored
      The precompile at 0x09 wraps the BLAKE2b F compression function:
      https://tools.ietf.org/html/rfc7693#section-3.2
      
      The precompile requires 6 inputs tightly encoded, taking exactly 213
      bytes, as explained below.
      
      - `rounds` - the number of rounds - 32-bit unsigned big-endian word
      - `h` - the state vector - 8 unsigned 64-bit little-endian words
      - `m` - the message block vector - 16 unsigned 64-bit little-endian words
      - `t_0, t_1` - offset counters - 2 unsigned 64-bit little-endian words
      - `f` - the final block indicator flag - 8-bit word
      
      [4 bytes for rounds][64 bytes for h][128 bytes for m][8 bytes for t_0]
      [8 bytes for t_1][1 byte for f]
      
      The boolean `f` parameter is considered as `true` if set to `1`.
      The boolean `f` parameter is considered as `false` if set to `0`.
      All other values yield an invalid encoding of `f` error.
      
      The precompile should compute the F function as specified in the RFC
      (https://tools.ietf.org/html/rfc7693#section-3.2) and return the updated
      state vector `h` with unchanged encoding (little-endian).
      
      See EIP-152 for details.
      2890f060
  2. 15 Aug, 2019 5 commits
  3. 14 Aug, 2019 1 commit
  4. 13 Aug, 2019 4 commits
  5. 12 Aug, 2019 6 commits
  6. 08 Aug, 2019 5 commits
  7. 07 Aug, 2019 1 commit
  8. 06 Aug, 2019 1 commit
    • Antonio Salazar Cardozo's avatar
      params, core/vm: Istanbul EIP-1108 bn256 gas cost reduction (#19904) · beff5fa5
      Antonio Salazar Cardozo authored
      * params: add IsIstanbul to config + rules
      
      IstanbulBlock, used to determine if the config IsIstanbul, is currently
      left nil until an actual block is chosen.
      
      * params, core/vm: implement EIP-1108
      
      Old gas costs for elliptic curve operations are given the PreIstanbul
      prefix, while current gas costs retain the unprefixed names. The actual
      precompile implementations are the same, so they are factored out into
      common functions that are called by the pre-Istanbul and current
      precompile structs. Finally, an Istanbul precompile list is added that
      references the new precompile structs, which in turn reference the new
      gas costs.
      
      * params: fix fork ordering, add missing chain compatibility check
      beff5fa5
  9. 05 Aug, 2019 1 commit
    • Martin Holst Swende's avatar
      core/vm, params: refactor chain configuration (#19735) · aa6005b4
      Martin Holst Swende authored
      * params, core/vm: deprecating gastable, part 1
      
      * core/vm, params: deprecate gastable, use both constant and dynamic gas
      
      * core/vm, params: remove gastable, remove copypaste
      
      * core/vm: make use of the chainrules
      
      * interpreter: make tracing count constant+dynamic gas
      
      * core/vm: review concerns (param/method name changes)
      
      * core/vm: make use of chainrules more
      aa6005b4
  10. 03 Aug, 2019 1 commit
  11. 02 Aug, 2019 1 commit
    • gary rong's avatar
      accounts/abi, signer/fourbyte: fix incorrect signature (#19881) · 947f5f2b
      gary rong authored
      The abi package already supports function overload by adding a suffix to the overloaded function name, but it uses the function name with suffix to calculate signature(both for the event and method).
      
      This PR fixes it by adding a new field named RawName, which can be used to calcuate all signatures but use Name to distinguish different overloaded function.
      947f5f2b
  12. 01 Aug, 2019 1 commit
  13. 31 Jul, 2019 2 commits
  14. 30 Jul, 2019 1 commit
  15. 25 Jul, 2019 4 commits
  16. 24 Jul, 2019 2 commits
  17. 23 Jul, 2019 2 commits