Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | whisper: big refactoring (#13852) | gluk256 | 2017-04-10 | 13 | -675/+1223 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * whisper: GetMessages fixed; size restriction updated * whisper: made PoW and MaxMsgSize customizable * whisper: test added * whisper: sym key management changed * whisper: identity management refactored * whisper: API refactoring (Post and Filter) * whisper: big refactoring complete * whisper: spelling fix * whisper: variable topic size allowed for a filter * whisper: final update * whisper: formatting * whisper: file exchange introduced in wnode * whisper: bugfix * whisper: API updated + new tests * whisper: statistics updated * whisper: wnode server updated * whisper: allowed filtering for variable topic size * whisper: tests added * whisper: resolving merge conflicts * whisper: refactoring (documenting mostly) * whsiper: tests fixed * whisper: down cased error messages * whisper: documenting the API functions * whisper: logging fixed * whisper: fixed wnode parameters * whisper: logs fixed (typos) | ||||
* | trie, whisper/whisperv5: use math/rand Read function | Felix Lange | 2017-03-23 | 4 | -37/+22 |
| | |||||
* | common: move big integer math to common/math (#3699) | Felix Lange | 2017-02-27 | 2 | -9/+14 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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 | ||||
* | whisper: fixed temporary directory for tests (#3707) | gluk256 | 2017-02-24 | 1 | -2/+2 |
| | |||||
* | whisper: expiry refactoring (#3706) | gluk256 | 2017-02-24 | 5 | -36/+72 |
| | |||||
* | cmd, whisper/mailserver: revert to utils.Fatalf | Péter Szilágyi | 2017-02-23 | 1 | -4/+5 |
| | |||||
* | all: blidly swap out glog to our log15, logs need rework | Péter Szilágyi | 2017-02-23 | 10 | -88/+80 |
| | |||||
* | Whisper API fixed (#3687) | gluk256 | 2017-02-23 | 10 | -78/+157 |
| | | | | | | | | | | | | | | | | | | | | | | * whisper: wnode updated for tests with geth * whisper: updated processing of incoming messages * whisper: symmetric encryption updated * whisper: filter id type changed to enhance security * whisper: allow filter without topic for asymmetric encryption * whisper: POW updated * whisper: logging updated * whisper: spellchecker update * whisper: error handling changed * whisper: JSON field names fixed | ||||
* | crypto: add btcec fallback for sign/recover without cgo (#3680) | Felix Lange | 2017-02-18 | 3 | -9/+11 |
| | | | | | | | | | | | * vendor: add github.com/btcsuite/btcd/btcec * crypto: add btcec fallback for sign/recover without cgo This commit adds a non-cgo fallback implementation of secp256k1 operations. * crypto, core/vm: remove wrappers for sha256, ripemd160 | ||||
* | whisper: interface changed to simplify the transition to v5 | gluk256 | 2017-02-14 | 7 | -86/+91 |
| | | | | | | | | | | | | | | | | * whisper: mailserver test introduced, refactoring * whisper: validation test updated * whisper: max number of peers fixed * whisper: verification bug fixed * whisper: esthetic fix * whisper: interface changed to simplify the transition to v5 * whisper: preparation for version switch | ||||
* | whisper: add tests for mailserver (#3631) | gluk256 | 2017-02-13 | 2 | -8/+211 |
| | |||||
* | cmd/wnode, whisper: add whisper CLI tool and mail server (#3580) | gluk256 | 2017-01-31 | 7 | -30/+232 |
| | |||||
* | all: fix ineffectual assignments and remove uses of crypto.Sha3 | Felix Lange | 2017-01-09 | 4 | -17/+9 |
| | | | | | go get github.com/gordonklaus/ineffassign ineffassign . | ||||
* | all: fix spelling errors | Péter Szilágyi | 2017-01-07 | 1 | -1/+1 |
| | |||||
* | all: fix issues reported by honnef.co/go/simple/cmd/gosimple | Felix Lange | 2017-01-07 | 10 | -34/+27 |
| | |||||
* | all: gofmt -w -s | Felix Lange | 2017-01-06 | 6 | -31/+31 |
| | |||||
* | rpc: remove HexNumber, replace all uses with hexutil types | Felix Lange | 2016-12-20 | 3 | -41/+39 |
| | | | | | This change couldn't be automated because HexNumber was used for numbers of all sizes. | ||||
* | rpc: remove HexBytes, replace all uses with hexutil.Bytes | Felix Lange | 2016-12-20 | 1 | -5/+6 |
| | |||||
* | whisper: refactoring (#3411) | gluk256 | 2016-12-20 | 12 | -66/+253 |
| | | | | | | | | | * whisper: refactored message processing * whisper: final polishing * whisper: logging updated * whisper: moved the check, changed the default PoW * whisper: refactoring of message queuing * whisper: refactored parameters | ||||
* | whisper/shhapi, whisper/whisperv5: refactoring (#3364) | gluk256 | 2016-12-02 | 14 | -650/+828 |
| | | | | | | | | | | * Filter refactoring * API tests added + bugfix * fixed the error logs * FilterID fixed * test cases fixed * key generation updated * POW updated * got rid of redundant stuff | ||||
* | whisper: project restructured, version 5 introduced (#3022) | gluk256 | 2016-10-29 | 30 | -14/+4447 |
| | | | | | | | whisper: project restructured, version 5 introduced This commits adds a draft version of the new shh v5 protocol. The new version is not on by default, --shh still selects version 2. | ||||
* | Merge pull request #2458 from fjl/go-vet | Felix Lange | 2016-04-15 | 1 | -2/+2 |
|\ | | | | | all: fix go vet warnings | ||||
| * | all: fix go vet warnings | Felix Lange | 2016-04-15 | 1 | -2/+2 |
| | | |||||
* | | whisper: deflake Test*MessageExpiration | Felix Lange | 2016-04-15 | 2 | -9/+5 |
|/ | | | | | | These tests have become a common annoyance on CI. Fix them by allowing messages with expiration == now into the cache and delaying the check for expired message handling slightly. | ||||
* | all: update license information | Felix Lange | 2016-04-15 | 1 | -7/+7 |
| | |||||
* | rpc: various fixes/enhancements | Bas van Kervel | 2016-04-12 | 1 | -2/+2 |
| | | | | | | | | rpc: be less restrictive on the request id rpc: improved documentation console: upgrade web3.js to version 0.16.0 rpc: cache http connections rpc: rename wsDomains parameter to wsOrigins | ||||
* | all: Rename crypto.Sha3{,Hash}() to crypto.Keccak256{,Hash}() | Ricardo Catalinas Jiménez | 2016-02-22 | 3 | -5/+5 |
| | | | | As we aren't really using the standarized SHA-3 | ||||
* | rpc: migrated the RPC insterface to a new reflection based RPC layer | Bas van Kervel | 2016-01-26 | 2 | -2/+2 |
| | |||||
* | Merge pull request #2035 from bas-vk/rcp-v2-rebase | Felix Lange | 2015-12-15 | 2 | -0/+427 |
|\ | | | | | rpc: new RPC implementation with pub/sub support | ||||
| * | rpc: new RPC implementation with pub/sub support | Bas van Kervel | 2015-12-14 | 2 | -0/+427 |
| | | |||||
* | | crypto, crypto/ecies, crypto/secp256k1: libsecp256k1 scalar mult | Gustav Simonsson | 2015-11-30 | 1 | -4/+5 |
|/ | | | | thanks to Felix Lange (fjl) for help with design & impl | ||||
* | cmd, common, core, eth, node, rpc, tests, whisper, xeth: use protocol stacks | Péter Szilágyi | 2015-11-27 | 3 | -7/+13 |
| | |||||
* | whisper: fixed broadcast race | Jeffrey Wilcke | 2015-11-25 | 3 | -2/+19 |
| | | | | | | | | | | | | | | Whisper's expire and broadcast loops happen in two separate go routines. Whenever an envelope is being expired it's removed from the set of envelopes and it looses all information about the envelope, including the "known hash". After the envelope has been removed it can be re-accepted by a broadcasting peer putting back the envelope in the set of envelopes. Since the envelope broadcast loop is separate of the expire loop expired messages may be broadcast to other peer, resulting in messages **never** being dropped. This PR includes an expire check before adding new messages to the set of envelopes. | ||||
* | whisper: fix datarace in expiration test | Péter Szilágyi | 2015-11-05 | 1 | -2/+11 |
| | |||||
* | all: fix license headers one more time | Felix Lange | 2015-07-24 | 14 | -14/+14 |
| | | | | I forgot to update one instance of "go-ethereum" in commit 3f047be5a. | ||||
* | all: update license headers to distiguish GPL/LGPL | Felix Lange | 2015-07-23 | 14 | -56/+56 |
| | | | | | All code outside of cmd/ is licensed as LGPL. The headers now reflect this by calling the whole work "the go-ethereum library". | ||||
* | all: update license information | Felix Lange | 2015-07-07 | 14 | -0/+224 |
| | |||||
* | p2p, whisper: use glog for peer-level logging | Felix Lange | 2015-05-07 | 2 | -7/+8 |
| | |||||
* | whisper: add full filter test suite | Péter Szilágyi | 2015-04-28 | 2 | -2/+51 |
| | |||||
* | whisper: fix a small data race duirng peer connection | Péter Szilágyi | 2015-04-28 | 2 | -14/+12 |
| | |||||
* | ui/qt/qwhisper, whisper, xeth: polish topic filter, fix wildcards | Péter Szilágyi | 2015-04-28 | 5 | -43/+213 |
| | |||||
* | rpc, ui/qt/qwhisper, whisper, xeth: introduce complex topic filters | Péter Szilágyi | 2015-04-28 | 5 | -32/+313 |
| | |||||
* | whisper: fix spurious From identity with untargeted messages | Péter Szilágyi | 2015-04-28 | 1 | -1/+3 |
| | |||||
* | whisper: fix payload loss in case of plaintext decrypt | Péter Szilágyi | 2015-04-28 | 2 | -4/+109 |
| | |||||
* | whisper, xeth/whisper: surface TTL and hash to the API | Péter Szilágyi | 2015-04-28 | 4 | -5/+18 |
| | |||||
* | rpc, whisper, xeth: fix RPC message retrieval data race | Péter Szilágyi | 2015-04-28 | 3 | -2/+41 |
| | |||||
* | whisper: fix send timestamp omission during envelope opening | Péter Szilágyi | 2015-04-28 | 1 | -0/+1 |
| | |||||
* | rpc, whisper, xeth: polish whisper RPC interface | Péter Szilágyi | 2015-04-28 | 1 | -10/+3 |
| | |||||
* | whisper: fix comment for rlpenv | Felix Lange | 2015-04-17 | 1 | -4/+5 |
| | |||||
* | cmd/rlpdump, cmd/utils, eth, p2p, whisper: use rlp input limit | Felix Lange | 2015-04-17 | 1 | -1/+1 |
| | |||||
* | whisper: cleanup lefover scoping | Péter Szilágyi | 2015-04-17 | 3 | -4/+4 |
| | |||||
* | whisper: hide some internal types | Péter Szilágyi | 2015-04-17 | 1 | -3/+3 |
| | |||||
* | whisper: don't issue signature warning if none present | Péter Szilágyi | 2015-04-16 | 1 | -0/+5 |
| | |||||
* | whisper: track active peers, add peer cache expiry test | Péter Szilágyi | 2015-04-16 | 2 | -22/+86 |
| | |||||
* | whisper: remove dead code, rename a few constants | Péter Szilágyi | 2015-04-16 | 6 | -59/+7 |
| | |||||
* | whisper: use async handshakes to handle blocking peers | Péter Szilágyi | 2015-04-15 | 3 | -47/+12 |
| | |||||
* | whisper: remove some unneeded testing complexity | Péter Szilágyi | 2015-04-15 | 3 | -32/+5 |
| | |||||
* | whisper: global message expiration tests, polishes | Péter Szilágyi | 2015-04-15 | 3 | -16/+49 |
| | |||||
* | whisper: mock tests to use simulated peers | Péter Szilágyi | 2015-04-15 | 2 | -71/+55 |
| | |||||
* | whisper: add basic tests for the whiper peers | Péter Szilágyi | 2015-04-14 | 2 | -0/+221 |
| | |||||
* | whisper: shorten constants to TTL and PoW | Péter Szilágyi | 2015-04-14 | 5 | -15/+15 |
| | |||||
* | whisper, xeth/whisper, ui/qt/qwhispe: fix API polish breakages | Péter Szilágyi | 2015-04-14 | 1 | -16/+15 |
| | |||||
* | whisper: add known message expiration to peers, cleanup | Péter Szilágyi | 2015-04-14 | 2 | -95/+145 |
| | |||||
* | whisper: general cleanups, documentation | Péter Szilágyi | 2015-04-14 | 4 | -129/+146 |
| | |||||
* | whisper: fix anonymous broadcast drop, add broadcast tests | Péter Szilágyi | 2015-04-14 | 3 | -24/+99 |
| | |||||
* | whisper: add utility functions for creating topics | Péter Szilágyi | 2015-04-14 | 3 | -8/+58 |
| | |||||
* | whisper: push work in progress for bug report | Péter Szilágyi | 2015-04-13 | 2 | -6/+19 |
| | |||||
* | whisper: start adding integration tests | Péter Szilágyi | 2015-04-13 | 1 | -18/+118 |
| | |||||
* | whisper: clean up and integrate topics | Péter Szilágyi | 2015-04-13 | 7 | -43/+85 |
| | |||||
* | whisper: separate out magic number from the code | Péter Szilágyi | 2015-04-13 | 4 | -25/+29 |
| | |||||
* | whisper: fix comment entity capitalizations | Péter Szilágyi | 2015-04-12 | 2 | -7/+7 |
| | |||||
* | whisper: polish the Envelope a bit, prep for tests. | Péter Szilágyi | 2015-04-10 | 6 | -65/+75 |
| | |||||
* | whisper: polish the messages, fix some bugs, tests | Péter Szilágyi | 2015-04-10 | 6 | -88/+209 |
| | | | | | | Bugs fixed: - Use randomly generated flags as the spec required. - During envelope opening check the first bit only for signature. | ||||
* | whisper: rename test file according to Go style | Péter Szilágyi | 2015-04-10 | 1 | -0/+0 |
| | |||||
* | whisper: make the test app runnable & do something inside | Péter Szilágyi | 2015-04-10 | 1 | -12/+65 |
| | |||||
* | Merge pull request #648 from ↵ | Jeffrey Wilcke | 2015-04-08 | 1 | -1/+8 |
|\ | | | | | | | | | Gustav-Simonsson/forward_ecrecover_err_and_remove_dup_checks Forward and log EC recover err and remove dup pubkey len check | ||||
| * | Use logger.Error instead of 0 with glog | Gustav Simonsson | 2015-04-07 | 1 | -1/+2 |
| | | |||||
| * | Forward and log EC recover err and remove dup pubkey len check | Gustav Simonsson | 2015-04-07 | 1 | -1/+7 |
| | | |||||
* | | Updated logging | obscuren | 2015-04-07 | 1 | -4/+3 |
|/ | |||||
* | Moved logging to logger.Core | obscuren | 2015-04-04 | 1 | -1/+1 |
| | |||||
* | Move version to const and expose via Version() | Taylor Gerring | 2015-03-25 | 1 | -3/+8 |
| | |||||
* | whisper: use common.Hash | Felix Lange | 2015-03-21 | 4 | -41/+34 |
| | |||||
* | whisper: use package rlp | Felix Lange | 2015-03-21 | 2 | -37/+24 |
| | |||||
* | eth, whisper: adapt for RLP encoder switch in package p2p | Felix Lange | 2015-03-19 | 2 | -8/+3 |
| | | | | | I have rewritten the protocol test to use p2p.MsgPipe because p2p.NewMsg is gone. | ||||
* | Comment out whisper remove identity stubs | Taylor Gerring | 2015-03-17 | 1 | -8/+8 |
| | |||||
* | Initial support to remove Whisper identities per #491 | Taylor Gerring | 2015-03-17 | 1 | -0/+9 |
| | |||||
* | Moved ethutil => common | obscuren | 2015-03-16 | 1 | -9/+9 |
| | |||||
* | don't log whisper start ups | obscuren | 2015-03-11 | 1 | -2/+2 |
| | |||||
* | eth, whisper: fix msg.Payload reads | Felix Lange | 2015-03-04 | 1 | -17/+10 |
| | |||||
* | Properly uninstall filters. Mining issue fixed #closes #365 | obscuren | 2015-02-23 | 1 | -0/+4 |
| | | | | | | * Added an additional tx state which is used to get the current nonce * Refresh transient state each time a new canonical block is found * Properly uninstall filters. Fixes a possible crash in RPC | ||||
* | Moved ECIES to repo & added secondary title for webview | obscuren | 2015-02-14 | 2 | -2/+2 |
| | | | | | * ECIES moved from obscuren to ethereum * Added html META[name=badge] to reflect menuItem.secondaryTitle | ||||
* | Fixed "to" field | obscuren | 2015-02-10 | 2 | -0/+4 |
| | |||||
* | API changed to use Pubkey only. Reflected that change in the rest of the api | obscuren | 2015-02-06 | 3 | -3/+3 |
| | |||||
* | Fixed whisper "to" filtering. Closes #283 | obscuren | 2015-02-03 | 2 | -3/+3 |
| | |||||
* | Added missing whisper timestamp. Closes #284 | obscuren | 2015-02-03 | 1 | -0/+1 |
| | |||||
* | Fixed whisper pub key bug | obscuren | 2015-01-30 | 1 | -1/+1 |
| | | | | | * Unrecoverable messages would cause segfault when recovering invalid pub key | ||||
* | UI Updates | obscuren | 2015-01-22 | 1 | -1/+1 |
| | | | | | * Browser now has tabs * Fixed a callback issue | ||||
* | Moved `obscuren` secp256k1-go | obscuren | 2015-01-22 | 1 | -1/+1 |
| | |||||
* | fixed url bug in browser | obscuren | 2015-01-21 | 1 | -9/+0 |
| | |||||
* | Changed public whisper api not to reveal temporary private keys | obscuren | 2015-01-15 | 1 | -9/+10 |
| | |||||
* | Fixed whisper messages | obscuren | 2015-01-13 | 3 | -27/+43 |
| | | | | | | | * Whisper protocol wasn't properly suppling envelope slices * Message history wasn't properly propagated * Added 'Messages' method, filtering any current envelope with the supplied filter. | ||||
* | Added manual triggering of filters | obscuren | 2015-01-13 | 1 | -7/+30 |
| | |||||
* | merged | obscuren | 2015-01-09 | 1 | -2/+0 |
| | |||||
* | err | obscuren | 2015-01-09 | 1 | -3/+0 |
| | |||||
* | just enable by default | obscuren | 2015-01-09 | 1 | -0/+3 |
| | |||||
* | Fixed some whisper issues | obscuren | 2015-01-09 | 3 | -2/+4 |
| | |||||
* | added nil check | obscuren | 2015-01-02 | 2 | -3/+3 |
| | |||||
* | Added whisper js api | obscuren | 2014-12-22 | 1 | -1/+1 |
| | |||||
* | Whisper watches fixes | obscuren | 2014-12-17 | 3 | -5/+16 |
| | |||||
* | doc desc | obscuren | 2014-12-16 | 1 | -0/+16 |
| | |||||
* | Removed debug message | obscuren | 2014-12-16 | 1 | -1/+0 |
| | |||||
* | During env open check for pub error which indicated unencrypted payload. | obscuren | 2014-12-16 | 2 | -2/+7 |
| | |||||
* | Added whisper debug interface + whisper fixes | obscuren | 2014-12-16 | 2 | -22/+5 |
| | |||||
* | Merge branch 'develop' into poc8 | obscuren | 2014-12-15 | 1 | -0/+27 |
|\ | |||||
| * | Added topic utility functions to whisper | obscuren | 2014-12-15 | 1 | -0/+27 |
| | | |||||
* | | added whisper | obscuren | 2014-12-15 | 1 | -10/+16 |
|/ | |||||
* | Implemented watching using filter package | obscuren | 2014-12-13 | 6 | -26/+145 |
| | | | | | * Added filters / watches * Removed event dep | ||||
* | Updated whisper messages to new crypto api + added tests | obscuren | 2014-12-10 | 5 | -11/+89 |
| | |||||
* | Added encryption for messages better API for sealing messages | obscuren | 2014-12-10 | 3 | -21/+89 |
| | |||||
* | Additional checks and debug output | obscuren | 2014-12-08 | 3 | -2/+14 |
| | |||||
* | Proper start/stoping wpeers | obscuren | 2014-12-08 | 2 | -5/+24 |
| | |||||
* | First draft of Whisper messages relaying | obscuren | 2014-12-08 | 7 | -0/+472 |