1. 23 5月, 2017 1 次提交
  2. 18 2月, 2017 1 次提交
  3. 13 2月, 2017 2 次提交
  4. 12 4月, 2016 3 次提交
    • F
      accounts: improve API and add documentation · 46df50be
      Felix Lange 提交于
      - Sign takes common.Address, not Account
      - Import/Export methods work with encrypted JSON keys
      46df50be
    • F
      accounts: cache key addresses · a9f26dcd
      Felix Lange 提交于
      In order to avoid disk thrashing for Accounts and HasAccount,
      address->key file mappings are now cached in memory. This makes it no
      longer necessary to keep the key address in the file name. The address
      of each key is derived from file content instead.
      
      There are minor user-visible changes:
      
      - "geth account list" now reports key file paths alongside the address.
      - If multiple keys are present for an address, unlocking by address is
        not possible. Users are directed to remove the duplicate files
        instead. Unlocking by index is still possible.
      - Key files are overwritten written in place when updating the password.
      a9f26dcd
    • F
      accounts, crypto: move keystore to package accounts · 85e6c40c
      Felix Lange 提交于
      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
  5. 08 12月, 2015 1 次提交
  6. 30 11月, 2015 1 次提交
  7. 13 10月, 2015 1 次提交
  8. 12 9月, 2015 1 次提交
  9. 24 7月, 2015 1 次提交
  10. 23 7月, 2015 1 次提交
  11. 07 7月, 2015 2 次提交
  12. 24 6月, 2015 1 次提交
    • G
      Change keystore to version 3 · d23ec6c4
      Gustav Simonsson 提交于
      * Change password protection crypto in keystore to version 3
      * Update KeyStoreTests/basic_tests.json
      * Add support for PBKDF2 with HMAC-SHA256
      * Change MAC and encryption key to avoid unnecessary hashing
      * Add tests for test vectors in new wiki page defining version 3
      * Add tests for new keystore tests in ethereum/tests repo
      * Move JSON loading util to common for use in both tests and
        crypto packages
      * Add backwards compatibility with key store version 1
      d23ec6c4
  13. 05 6月, 2015 1 次提交
  14. 12 5月, 2015 7 次提交
  15. 27 3月, 2015 1 次提交
    • Z
      import/export accounts · c4ea9218
      zelig 提交于
      - cli: add passwordfile flag
      - cli: change unlock flag only takes account
      - cli: with unlock you are prompted for password or use passfile with password flag
      - cli: unlockAccount used in normal client start (run) and accountExport
      - cli: getPassword used in accountCreate and accountImport
      - accounts: Manager.Import, Manager.Export
      - crypto: SaveECDSA (to complement LoadECDSA) to save to file
      - crypto: NewKeyFromECDSA added (used in accountImport and New = generated constructor)
      c4ea9218
  16. 11 3月, 2015 1 次提交
  17. 10 2月, 2015 1 次提交
  18. 28 1月, 2015 1 次提交
    • G
      Address pull request comments · 8d9752a5
      Gustav Simonsson 提交于
      * Use crypto.Sign instead of directly calling secp256k1 lib
      * Rename UserAccount to Account and Addr to Address (for consistency)
      * Change AccountManager.Sign to take ptr to Account instead of
        address byte array
      * Simplify copying of Accounts in Accounts()
      * PubkeyToAddress and GetEntropyCSPRNG now exported
      8d9752a5
  19. 26 1月, 2015 1 次提交
    • G
      Add accounts package and refactor key stores · 512ffa2b
      Gustav Simonsson 提交于
      * Add initial UserAccount and AccountManager structs
      * Add NewAccount, Sign and Accounts functions
      * Refactor key stores to use key address as main identifier
        while keeping the UUID.
      * Use key address as file/dir names instead of UUID
      512ffa2b
  20. 21 1月, 2015 1 次提交
    • G
      Add ImportPreSaleKey · 1f8290ca
      Gustav Simonsson 提交于
      * ImportPreSaleKey takes a KeyStore, a presale key JSON (e.g. file content)
        and a password string. It stores the key in the given key store.
      * Refactored common AES decryption and moved some functions to crypto.go
      1f8290ca
  21. 20 1月, 2015 1 次提交
  22. 16 1月, 2015 3 次提交
    • G
      Address pull request comments · 47d3b3dd
      Gustav Simonsson 提交于
      * Remove flags field from key struct
      * Change JSON struct fields from string to []byte
      * Change GenerateNewKey API to take io.Reader for random source
      * Remove mixing entropy source function
      * Use testing Fatal in tests
      47d3b3dd
    • G
      Address pull request comments · a1c27493
      Gustav Simonsson 提交于
      * Simplify scrypt constants with const block
      * Add key store constructors and make their types private
      * Simplify key store and file namings to be less Java Enterprise™
      * Change test error logging to use t.Error(err)
      * Reduce number of naked returns (just like my ex-gf)
      * Simplify file reading path code
      a1c27493
    • G
      Add new key_store interface and two new key stores · 945798f9
      Gustav Simonsson 提交于
      * Add new generic key_store interface
      * Add new plaintext key store storing unprotected keys on disk
      * Add new encrypted key store storing encrypted keys on disk
      * Add new entropy mixing function using OS and go runtime sources
      945798f9