good morning!!!!

Skip to content
Snippets Groups Projects
  1. Aug 21, 2019
    • 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. Aug 15, 2019
  3. Aug 14, 2019
  4. Aug 13, 2019
  5. Aug 12, 2019
  6. Aug 08, 2019
  7. Aug 07, 2019
  8. Aug 06, 2019
    • 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. Aug 05, 2019
    • 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. Aug 03, 2019
  11. Aug 02, 2019
    • 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. Aug 01, 2019
  13. Jul 31, 2019
  14. Jul 30, 2019
  15. Jul 25, 2019
  16. Jul 24, 2019
  17. Jul 23, 2019
Loading