Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | all: goimports -w | Felix Lange | 2015-07-07 | 1 | -1/+2 |
| | |||||
* | all: remove @author comments | Felix Lange | 2015-07-07 | 3 | -21/+0 |
| | |||||
* | all: update license information | Felix Lange | 2015-07-07 | 20 | -47/+371 |
| | |||||
* | account update: migrate or change password | zelig | 2015-07-03 | 2 | -18/+60 |
| | | | | | | * account.Update * KeyStore.Cleanup * fix dir rm for old format deleteKey | ||||
* | fix account ordering | zelig | 2015-07-03 | 3 | -73/+96 |
| | | | | | | | | * chronological order of creation * new naming scheme keystore/UTC--<created_at UTC ISO8601>-<address hex> * KeyStore2 -> KeyStore * backward compatibility * refactor keyStore methods | ||||
* | accounts order by keyfile ctime | zelig | 2015-07-03 | 1 | -2/+25 |
| | |||||
* | Change keystore to version 3 | Gustav Simonsson | 2015-06-24 | 7 | -91/+344 |
| | | | | | | | | | | | | * 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 | ||||
* | crypto: return common.Address rather than raw bytes | obscuren | 2015-06-05 | 2 | -5/+5 |
| | |||||
* | Merge pull request #1166 from Gustav-Simonsson/add_ec_sig_validations | Jeffrey Wilcke | 2015-06-03 | 1 | -0/+16 |
|\ | | | | | Add EC signature validations before call to libsecp256k1 | ||||
| * | Initialise curve N value in package init | Gustav Simonsson | 2015-06-03 | 1 | -1/+3 |
| | | |||||
| * | Add EC signature validations before call to libsecp256k1 | Gustav Simonsson | 2015-06-02 | 1 | -0/+14 |
| | | |||||
* | | crypto/sha3: pull in latest keccak from go crypto (45% speed increase) | Péter Szilágyi | 2015-06-03 | 2 | -173/+409 |
|/ | |||||
* | Update keystore code comments | Gustav Simonsson | 2015-05-14 | 1 | -6/+7 |
| | |||||
* | Change default keystore dir | Gustav Simonsson | 2015-05-13 | 1 | -1/+1 |
| | |||||
* | Update key store to new spec but keep address field for now | Gustav Simonsson | 2015-05-12 | 3 | -68/+55 |
| | | | | * Also fix address types post-rebase | ||||
* | Address pull request comments; key header and hex encoding | Gustav Simonsson | 2015-05-12 | 3 | -31/+67 |
| | | | | | | * Remove key header from unencrypted key file format and replace it with a version field * Change encoding of bytes in key files from base64 to hex | ||||
* | Revert "Add key header to unencrypted key file" | Gustav Simonsson | 2015-05-12 | 2 | -16/+8 |
| | | | | This reverts commit a94d4ba0b53c4558ab838aaed635a2ff66ddfa53. | ||||
* | Add key header to unencrypted key file | Gustav Simonsson | 2015-05-12 | 2 | -8/+16 |
| | |||||
* | Add key header to encrypted keys | Gustav Simonsson | 2015-05-12 | 2 | -7/+57 |
| | | | | | | | * Add key header containing key version, kdf and kdf params * Store key header as JSON in the key file * Read in KDF params from key header * Include key header in MAC calculation and MAC verification | ||||
* | Use common.Address type for accounts.Address | Gustav Simonsson | 2015-05-12 | 4 | -28/+30 |
| | |||||
* | Improve key store passphrase crypto | Gustav Simonsson | 2015-05-12 | 4 | -23/+31 |
| | | | | | | | * Change MAC-then-Encrypt to Encrypt-then-MAC * Change AES256 to AES128 * Use first 16 bytes of KDF derived key for AES and remaining 16 for MAC | ||||
* | Remove the awesome, ever misunderstood entropy mixing | Gustav Simonsson | 2015-05-12 | 4 | -64/+15 |
| | |||||
* | replaced several path.* with filepath.* which is platform independent | Bas van Kervel | 2015-05-12 | 2 | -7/+7 |
| | |||||
* | Add loading of block test privkey if present | Gustav Simonsson | 2015-04-28 | 1 | -0/+13 |
| | |||||
* | Remove unneeded allocation | Gustav Simonsson | 2015-04-25 | 1 | -1/+0 |
| | |||||
* | Use make instead of new for allocation | Gustav Simonsson | 2015-04-24 | 1 | -1/+1 |
| | |||||
* | Fix ignore of unexpected files in key dir | Gustav Simonsson | 2015-04-23 | 1 | -3/+3 |
| | |||||
* | doc: crypto/secp256k1 GMP dependency package name. | Noel Maersk | 2015-04-23 | 1 | -1/+4 |
| | | | | | | | | | | | | | | Linux build documentation is mostly geared towards Ubuntu 14.04 (LTS). Appropriate package is called `libgmp-dev` there. Note that on pristine installations building `geth` with godep will fail because this header is missing. This is not documented in the top-level README, but is on the wiki: https://github.com/ethereum/go-ethereum/wiki/Installation-Instructions-for-Ubuntu#building-geth-command-line-client That page recommends `libgmp3-dev`, which ATM provides same version as `libgmp-dev`. | ||||
* | Adding flags to facilitate cross compiling to ARM | Maran | 2015-04-22 | 1 | -0/+2 |
| | |||||
* | crypto: update {Load,Save}ECDSA comments to mention hex encoding | Felix Lange | 2015-04-19 | 1 | -2/+3 |
| | |||||
* | removed utility function and implemented hex conversation in crypto functions | Bas van Kervel | 2015-04-09 | 1 | -2/+9 |
| | |||||
* | Support for import/export hex encoded keys, closes #635 | Bas van Kervel | 2015-04-09 | 1 | -3/+3 |
| | |||||
* | Add IsOnCurve check to EC unmarshalling in ECIES decryption | Gustav Simonsson | 2015-04-08 | 1 | -0/+4 |
| | |||||
* | Merge pull request #648 from ↵ | Jeffrey Wilcke | 2015-04-08 | 1 | -9/+7 |
|\ | | | | | | | | | Gustav-Simonsson/forward_ecrecover_err_and_remove_dup_checks Forward and log EC recover err and remove dup pubkey len check | ||||
| * | Forward and log EC recover err and remove dup pubkey len check | Gustav Simonsson | 2015-04-07 | 1 | -9/+7 |
| | | |||||
* | | libsecp256k1 #define NDEBUG | Gustav Simonsson | 2015-04-08 | 1 | -0/+1 |
| | | |||||
* | | Link GMP | obscuren | 2015-04-07 | 1 | -0/+3 |
| | | |||||
* | | Update Go wrapper around libbsecp256k1 | Gustav Simonsson | 2015-04-07 | 1 | -89/+25 |
| | | |||||
* | | Update bitcoin secp256k1 lib | Gustav Simonsson | 2015-04-07 | 74 | -4960/+10508 |
|/ | |||||
* | Cleanup. | obscuren | 2015-03-29 | 1 | -9/+7 |
| | |||||
* | common: remove WriteFile and ReadAllFile (use ioutil instead) | zelig | 2015-03-27 | 1 | -2/+4 |
| | |||||
* | import/export accounts | zelig | 2015-03-27 | 2 | -7/+16 |
| | | | | | | | | | | | - 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) | ||||
* | crypto: remove use of common.Value.Encode | Felix Lange | 2015-03-20 | 1 | -9/+1 |
| | | | | This seems to be the last remaining use of it. | ||||
* | Merge remote-tracking branch 'ethereum/conversion' into conversion | Felix Lange | 2015-03-17 | 1 | -2/+5 |
|\ | |||||
| * | converted vm | obscuren | 2015-03-17 | 1 | -2/+5 |
| | | |||||
* | | crypto: fix Sha3Hash and add a test for it | Felix Lange | 2015-03-17 | 2 | -2/+8 |
|/ | |||||
* | crypto: add Sha3Hash | Felix Lange | 2015-03-17 | 1 | -1/+10 |
| | |||||
* | Moved ethutil => common | obscuren | 2015-03-16 | 5 | -21/+21 |
| | |||||
* | Use ECDSA instead of elliptic | obscuren | 2015-03-11 | 1 | -6/+3 |
| | |||||
* | crypto: delete old key management stuff | Felix Lange | 2015-03-10 | 4 | -492/+0 |
| | |||||
* | Fix key store address hex decoding and accounts test | Gustav Simonsson | 2015-02-25 | 1 | -2/+5 |
| | | | | Thanks to https://github.com/jaekwon for original fix! | ||||
* | Implement OS sensitive dataDirs | Maran | 2015-02-23 | 2 | -11/+5 |
| | |||||
* | crypto: switch to golang.org/x/crypto | Felix Lange | 2015-02-17 | 2 | -5/+7 |
| | | | | | code.google.com/p/go.crypto is deprecated and will cause problems in future versions of Go. | ||||
* | Added invalid sec key test | obscuren | 2015-02-16 | 1 | -1/+10 |
| | |||||
* | Validate seckey when generating pub key | obscuren | 2015-02-15 | 1 | -1/+6 |
| | |||||
* | Moved ECIES to repo & added secondary title for webview | obscuren | 2015-02-14 | 1 | -1/+1 |
| | | | | | * ECIES moved from obscuren to ethereum * Added html META[name=badge] to reflect menuItem.secondaryTitle | ||||
* | Add 'crypto/ecies/' from commit '7c0f4a9b18d992166452d8cd32caaefd92b26386' | obscuren | 2015-02-14 | 7 | -0/+1703 |
| | | | | | | git-subtree-dir: crypto/ecies git-subtree-mainline: 49a739c8d647739b3d815966f8854a4e9978df56 git-subtree-split: 7c0f4a9b18d992166452d8cd32caaefd92b26386 | ||||
* | Merge branch 'align_key_and_ecdsa_nonce_entropy' of ↵ | obscuren | 2015-02-14 | 6 | -125/+105 |
|\ | | | | | | | https://github.com/Gustav-Simonsson/go-ethereum into Gustav-Simonsson-align_key_and_ecdsa_nonce_entropy | ||||
| * | Remove secp256_rand.go and update tests | Gustav Simonsson | 2015-02-14 | 2 | -107/+11 |
| | | |||||
| * | Unexport randEntropy type and use exported Reader instead | Gustav Simonsson | 2015-02-13 | 2 | -5/+7 |
| | | |||||
| * | Set both key generation and ECDSA nonce to use mixed entropy | Gustav Simonsson | 2015-02-11 | 4 | -18/+92 |
| | | | | | | | | | | | | * Move random entropy functions to new package randentropy * Add function to get n bytes entropy where up to first 32 bytes are mixed with OS entropy sources | ||||
* | | crypto: add key loading functions | Felix Lange | 2015-02-10 | 2 | -1/+30 |
| | | |||||
* | | crypto: make it easier to run Sha3 on multiple inputs | Felix Lange | 2015-02-06 | 2 | -4/+5 |
|/ | | | | | crypto.Sha3(append(foo, bar)) --> crypto.Sha3(foo, bar) crypto.Sha3([]byte{}) --> crypto.Sha3() | ||||
* | Merge branch 'bounty' into develop | obscuren | 2015-02-01 | 1 | -1/+2 |
|\ | |||||
| * | Fixed n | obscuren | 2015-02-01 | 1 | -1/+2 |
| | | |||||
* | | Merge branch 'bounty' into develop | obscuren | 2015-02-01 | 2 | -6/+2 |
|\| | |||||
| * | Fixed Sign nonce | obscuren | 2015-02-01 | 2 | -6/+2 |
| | | |||||
* | | Fixed whisper pub key bug | obscuren | 2015-01-30 | 1 | -1/+1 |
| | | | | | | | | | | * Unrecoverable messages would cause segfault when recovering invalid pub key | ||||
* | | Address pull request comments | Gustav Simonsson | 2015-01-28 | 3 | -8/+7 |
| | | | | | | | | | | | | | | | | | | * 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 | ||||
* | | Add accounts package and refactor key stores | Gustav Simonsson | 2015-01-26 | 5 | -55/+87 |
| | | | | | | | | | | | | | | | | * 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 | ||||
* | | Merge branch 'import_presale_keys' of ↵ | obscuren | 2015-01-23 | 4 | -49/+124 |
|\ \ | |/ |/| | | | | | | | | | https://github.com/Gustav-Simonsson/go-ethereum into Gustav-Simonsson-import_presale_keys Conflicts: crypto/crypto.go | ||||
| * | CamelCase aesCBCDecrypt | Gustav Simonsson | 2015-01-22 | 2 | -3/+3 |
| | | |||||
| * | Add ImportPreSaleKey | Gustav Simonsson | 2015-01-21 | 4 | -49/+123 |
| | | | | | | | | | | | | * 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 | ||||
* | | Use curve params instead of hardcoded 32 bytes | obscuren | 2015-01-23 | 1 | -1/+1 |
| | | |||||
* | | Pad private key when signing & length check for hashes in sign | obscuren | 2015-01-23 | 2 | -2/+19 |
|/ | |||||
* | Moved `obscuren` secp256k1-go | obscuren | 2015-01-22 | 50 | -3/+6430 |
| | |||||
* | Moved sha3 from `obscuren` | obscuren | 2015-01-22 | 3 | -1/+388 |
| | |||||
* | Merge branch 'develop' of github.com-obscure:ethereum/go-ethereum into develop | obscuren | 2015-01-20 | 4 | -0/+551 |
|\ | |||||
| * | Address pull request comments | Gustav Simonsson | 2015-01-20 | 2 | -9/+4 |
| | | | | | | | | | | * Further simplify "constructor" function's allocation of structs * Fix formatting | ||||
| * | Address pull request comments | Gustav Simonsson | 2015-01-20 | 2 | -10/+8 |
| | | | | | | | | | | * Allocate with composite literal instead of new * Remove check of number of bytes read from rand | ||||
| * | Update code comments | Gustav Simonsson | 2015-01-16 | 1 | -6/+4 |
| | | |||||
| * | Address pull request comments | Gustav Simonsson | 2015-01-16 | 4 | -215/+88 |
| | | | | | | | | | | | | | | | | * 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 | ||||
| * | Address pull request comments | Gustav Simonsson | 2015-01-16 | 4 | -84/+91 |
| | | | | | | | | | | | | | | | | | | * 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 | ||||
| * | Add new key_store interface and two new key stores | Gustav Simonsson | 2015-01-16 | 4 | -0/+680 |
| | | | | | | | | | | | | | | * 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 | ||||
* | | Added 0 key proof error | obscuren | 2015-01-19 | 1 | -0/+13 |
|/ | | | | | Private key \x00\x00...\x00 returns the _exact_ same public key as \x11 \x11...\x11. Currently investigating. | ||||
* | pre-pow | obscuren | 2015-01-12 | 1 | -0/+13 |
| | |||||
* | fixed tests | obscuren | 2014-12-13 | 1 | -1/+1 |
| | |||||
* | Added length checkes | obscuren | 2014-12-13 | 1 | -1/+18 |
| | |||||
* | Changed new methods to use ecdsa package for pub prv keys | obscuren | 2014-12-10 | 2 | -26/+35 |
| | |||||
* | Added Encrypt & Decrypt using the ECIES w/ tests | obscuren | 2014-12-10 | 2 | -0/+82 |
| | |||||
* | Added S256 curve | obscuren | 2014-12-10 | 1 | -0/+363 |
| | |||||
* | Show newly created private key during startup. Closes #126 | obscuren | 2014-12-05 | 1 | -0/+4 |
| | |||||
* | try to get full coverage report on travis | Taylor Gerring | 2014-11-15 | 1 | -109/+109 |
| | |||||
* | ethcrypto => crypto | obscuren | 2014-10-31 | 10 | -0/+2393 |