good morning!!!!

Skip to content
Snippets Groups Projects
  1. May 08, 2018
  2. Apr 17, 2018
  3. Apr 03, 2018
  4. Mar 26, 2018
  5. Mar 19, 2018
    • Péter Szilágyi's avatar
      crypto/bn256: full switchover to cloudflare's code (#16301) · 1203c6a2
      Péter Szilágyi authored
      * crypto/bn256: full switchover to cloudflare's code
      
      * crypto/bn256: only use cloudflare for optimized architectures
      
      * crypto/bn256: upstream fallback for non-optimized code
      
      * .travis, build: drop support for Go 1.8 (need type aliases)
      
      * crypto/bn256/cloudflare: enable curve mul lattice optimization
      1203c6a2
  6. Mar 05, 2018
  7. Jan 03, 2018
  8. Jan 02, 2018
  9. Dec 20, 2017
  10. Dec 15, 2017
  11. Dec 14, 2017
  12. Dec 11, 2017
  13. Dec 06, 2017
  14. Dec 01, 2017
    • Matthew Di Ferrante's avatar
      crypto/bn256: fix generator on G1 (#15591) · 80c6dfc1
      Matthew Di Ferrante authored
      Generator in the current lib uses -2 as the y point when doing
      ScalarBaseMult, this makes it so that points/signatures generated
      from libs like py_ecc don't match/validate as pretty much all
      other libs (including libsnark) have (1, 2) as the standard
      generator.
      
      This does not affect consensus as the generator is never used in
      the VM, points are always explicitly defined and there is not
      ScalarBaseMult op - it only makes it so that doing "import
      github.com/ethereum/go-ethereum/crypto/bn256" doesn't generate
      bad points in userland tools.
      80c6dfc1
  15. Aug 17, 2017
  16. Aug 08, 2017
  17. Jun 01, 2017
  18. May 24, 2017
  19. May 23, 2017
  20. May 18, 2017
    • Jeffrey Wilcke's avatar
      consensus, core/*, params: metropolis preparation refactor · 10a57fc3
      Jeffrey Wilcke authored
      This commit is a preparation for the upcoming metropolis hardfork. It
      prepares the state, core and vm packages such that integration with
      metropolis becomes less of a hassle.
      
      * Difficulty calculation requires header instead of individual
        parameters
      * statedb.StartRecord renamed to statedb.Prepare and added Finalise
        method required by metropolis, which removes unwanted accounts from
        the state (i.e. selfdestruct)
      * State keeps record of destructed objects (in addition to dirty
        objects)
      * core/vm pre-compiles may now return errors
      * core/vm pre-compiles gas check now take the full byte slice as argument
        instead of just the size
      * core/vm now keeps several hard-fork instruction tables instead of a
        single instruction table and removes the need for hard-fork checks in
        the instructions
      * core/vm contains a empty restruction function which is added in
        preparation of metropolis write-only mode operations
      * Adds the bn256 curve
      * Adds and sets the metropolis chain config block parameters (2^64-1)
      10a57fc3
  21. Apr 14, 2017
  22. Mar 09, 2017
  23. Feb 28, 2017
    • Felix Lange's avatar
      all: unify big.Int zero checks, use common/math in more places (#3716) · 5f782627
      Felix Lange authored
      * common/math: optimize PaddedBigBytes, use it more
      
      name              old time/op    new time/op    delta
      PaddedBigBytes-8    71.1ns ± 5%    46.1ns ± 1%  -35.15%  (p=0.000 n=20+19)
      
      name              old alloc/op   new alloc/op   delta
      PaddedBigBytes-8     48.0B ± 0%     32.0B ± 0%  -33.33%  (p=0.000 n=20+20)
      
      * all: unify big.Int zero checks
      
      Various checks were in use. This commit replaces them all with Int.Sign,
      which is cheaper and less code.
      
      eg templates:
      
          func before(x *big.Int) bool { return x.BitLen() == 0 }
          func after(x *big.Int) bool  { return x.Sign() == 0 }
      
          func before(x *big.Int) bool { return x.BitLen() > 0 }
          func after(x *big.Int) bool  { return x.Sign() != 0 }
      
          func before(x *big.Int) int { return x.Cmp(common.Big0) }
          func after(x *big.Int) int  { return x.Sign() }
      
      * common/math, crypto/secp256k1: make ReadBits public in package math
      5f782627
  24. Feb 26, 2017
    • Felix Lange's avatar
      common: move big integer math to common/math (#3699) · 5c8fe28b
      Felix Lange authored
      * common: remove CurrencyToString
      
      Move denomination values to params instead.
      
      * common: delete dead code
      
      * common: move big integer operations to common/math
      
      This commit consolidates all big integer operations into common/math and
      adds tests and documentation.
      
      There should be no change in semantics for BigPow, BigMin, BigMax, S256,
      U256, Exp and their behaviour is now locked in by tests.
      
      The BigD, BytesToBig and Bytes2Big functions don't provide additional
      value, all uses are replaced by new(big.Int).SetBytes().
      
      BigToBytes is now called PaddedBigBytes, its minimum output size
      parameter is now specified as the number of bytes instead of bits. The
      single use of this function is in the EVM's MSTORE instruction.
      
      Big and String2Big are replaced by ParseBig, which is slightly stricter.
      It previously accepted leading zeros for hexadecimal inputs but treated
      decimal inputs as octal if a leading zero digit was present.
      
      ParseUint64 is used in places where String2Big was used to decode a
      uint64.
      
      The new functions MustParseBig and MustParseUint64 are now used in many
      places where parsing errors were previously ignored.
      
      * common: delete unused big integer variables
      
      * accounts/abi: replace uses of BytesToBig with use of encoding/binary
      
      * common: remove BytesToBig
      
      * common: remove Bytes2Big
      
      * common: remove BigTrue
      
      * cmd/utils: add BigFlag and use it for error-checked integer flags
      
      While here, remove environment variable processing for DirectoryFlag
      because we don't use it.
      
      * core: add missing error checks in genesis block parser
      
      * common: remove String2Big
      
      * cmd/evm: use utils.BigFlag
      
      * common/math: check for 256 bit overflow in ParseBig
      
      This is supposed to prevent silent overflow/truncation of values in the
      genesis block JSON. Without this check, a genesis block that set a
      balance larger than 256 bits would lead to weird behaviour in the VM.
      
      * cmd/utils: fixup import
      5c8fe28b
  25. Feb 18, 2017
  26. Jan 22, 2017
  27. Jan 12, 2017
  28. Jan 09, 2017
  29. Jan 06, 2017
  30. Jan 05, 2017
  31. Oct 28, 2016
    • bas-vk's avatar
      internal/ethapi: add personal_sign and fix eth_sign to hash message (#2940) · b59c8399
      bas-vk authored
      This commit includes several API changes:
      
      - The behavior of eth_sign is changed. It now accepts an arbitrary
        message, prepends the well-known string
      
              \x19Ethereum Signed Message:\n<length of message>
      
        hashes the result using keccak256 and calculates the signature of
        the hash. This breaks backwards compatability!
        
      - personal_sign(hash, address [, password]) is added. It has the same
        semantics as eth_sign but also accepts a password. The private key
        used to sign the hash is temporarily unlocked in the scope of the
        request.
        
      - personal_recover(message, signature) is added and returns the
        address for the account that created a signature.
      b59c8399
  32. Oct 01, 2016
  33. Apr 15, 2016
  34. Apr 12, 2016
    • Felix Lange's avatar
      accounts, crypto: move keystore to package accounts · 85e6c40c
      Felix Lange authored
      The account management API was originally implemented as a thin layer
      around crypto.KeyStore, on the grounds that several kinds of key stores
      would be implemented later on. It turns out that this won't happen so
      KeyStore is a superflous abstraction.
      
      In this commit crypto.KeyStore and everything related to it moves to
      package accounts and is unexported.
      85e6c40c
    • Felix Lange's avatar
      tests: remove eth, node, accounts dependencies · 83877a0f
      Felix Lange authored
      Unlocking the accounts in the test doesn't help with anything.
      83877a0f
  35. Feb 24, 2016
Loading