Felix Lange
9b0af51386
crypto: add btcec fallback for sign/recover without cgo ( #3680 )
...
* 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
8 years ago
gluk256
15a609d5d6
whisper: interface changed to simplify the transition to v5
...
* 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
8 years ago
gluk256
65ed6a9def
whisper: add tests for mailserver ( #3631 )
8 years ago
gluk256
690f6ea1d7
cmd/wnode, whisper: add whisper CLI tool and mail server ( #3580 )
8 years ago
Felix Lange
b9b3efb09f
all: fix ineffectual assignments and remove uses of crypto.Sha3
...
go get github.com/gordonklaus/ineffassign
ineffassign .
8 years ago
Péter Szilágyi
18c77744ff
all: fix spelling errors
8 years ago
Felix Lange
f2da6581ba
all: fix issues reported by honnef.co/go/simple/cmd/gosimple
8 years ago
Felix Lange
35a7dcb162
all: gofmt -w -s
8 years ago
Felix Lange
cf71f5cd60
rpc: remove HexNumber, replace all uses with hexutil types
...
This change couldn't be automated because HexNumber was used for numbers
of all sizes.
8 years ago
Felix Lange
adab2e16bd
rpc: remove HexBytes, replace all uses with hexutil.Bytes
8 years ago
gluk256
ba996f5e27
whisper: refactoring ( #3411 )
...
* 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
8 years ago
gluk256
2dcf75a722
whisper/shhapi, whisper/whisperv5: refactoring ( #3364 )
...
* 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
8 years ago
gluk256
79789af2e7
whisper: project restructured, version 5 introduced ( #3022 )
...
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.
8 years ago
Felix Lange
3a5bdef962
whisper: deflake Test*MessageExpiration
...
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.
9 years ago
Felix Lange
6fdd0893c3
all: fix go vet warnings
9 years ago
Felix Lange
d04a2e7557
all: update license information
9 years ago
Bas van Kervel
aa9fff3e68
rpc: various fixes/enhancements
...
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
9 years ago
Ricardo Catalinas Jiménez
436fc8d76a
all: Rename crypto.Sha3{,Hash}() to crypto.Keccak256{,Hash}()
...
As we aren't really using the standarized SHA-3
9 years ago
Bas van Kervel
19b2640e89
rpc: migrated the RPC insterface to a new reflection based RPC layer
9 years ago
Bas van Kervel
eae81465c1
rpc: new RPC implementation with pub/sub support
9 years ago
Gustav Simonsson
c8ad64f33c
crypto, crypto/ecies, crypto/secp256k1: libsecp256k1 scalar mult
...
thanks to Felix Lange (fjl) for help with design & impl
9 years ago
Péter Szilágyi
1e806c4c77
cmd, common, core, eth, node, rpc, tests, whisper, xeth: use protocol stacks
9 years ago
Jeffrey Wilcke
5f0a4416db
whisper: fixed broadcast race
...
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.
9 years ago
Péter Szilágyi
60e0abb595
whisper: fix datarace in expiration test
9 years ago
Felix Lange
bfbcfbe4a9
all: fix license headers one more time
...
I forgot to update one instance of "go-ethereum" in commit 3f047be5a
.
9 years ago
Felix Lange
3f047be5aa
all: update license headers to distiguish GPL/LGPL
...
All code outside of cmd/ is licensed as LGPL. The headers
now reflect this by calling the whole work "the go-ethereum library".
9 years ago
Felix Lange
ea54283b30
all: update license information
9 years ago
Felix Lange
6a2fec5309
p2p, whisper: use glog for peer-level logging
10 years ago
Péter Szilágyi
2b9fd6b40a
whisper: add full filter test suite
10 years ago
Péter Szilágyi
406e74e2af
whisper: fix a small data race duirng peer connection
10 years ago
Péter Szilágyi
db615a85ec
ui/qt/qwhisper, whisper, xeth: polish topic filter, fix wildcards
10 years ago
Péter Szilágyi
ae4bfc3cfb
rpc, ui/qt/qwhisper, whisper, xeth: introduce complex topic filters
10 years ago
Péter Szilágyi
15586368e5
whisper: fix spurious From identity with untargeted messages
10 years ago
Péter Szilágyi
87447f9f3f
whisper: fix payload loss in case of plaintext decrypt
10 years ago
Péter Szilágyi
7f48eb8737
whisper, xeth/whisper: surface TTL and hash to the API
10 years ago
Péter Szilágyi
7948cc0029
rpc, whisper, xeth: fix RPC message retrieval data race
10 years ago
Péter Szilágyi
5aa523e32b
whisper: fix send timestamp omission during envelope opening
10 years ago
Péter Szilágyi
3563c59b12
rpc, whisper, xeth: polish whisper RPC interface
10 years ago
Felix Lange
509d0a8d78
whisper: fix comment for rlpenv
10 years ago
Felix Lange
56a48101dc
cmd/rlpdump, cmd/utils, eth, p2p, whisper: use rlp input limit
10 years ago
Péter Szilágyi
4afc22ba6e
whisper: cleanup lefover scoping
10 years ago
Péter Szilágyi
bd14bd6c5b
whisper: hide some internal types
10 years ago
Péter Szilágyi
e5a03eb066
whisper: don't issue signature warning if none present
10 years ago
Péter Szilágyi
e5e91e9eb3
whisper: track active peers, add peer cache expiry test
10 years ago
Péter Szilágyi
ee6531c5ff
whisper: remove dead code, rename a few constants
10 years ago
Péter Szilágyi
6ceb253f74
whisper: use async handshakes to handle blocking peers
10 years ago
Péter Szilágyi
46ea193a49
whisper: remove some unneeded testing complexity
10 years ago
Péter Szilágyi
bcf41797ca
whisper: global message expiration tests, polishes
10 years ago
Péter Szilágyi
4fb7ab5d09
whisper: mock tests to use simulated peers
10 years ago
Péter Szilágyi
86372b20c0
whisper: add basic tests for the whiper peers
10 years ago