Felix Lange
822dddd17e
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
2017-02-18 09:24:12 +01:00
gluk256
300d48a6b7
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
2017-02-14 16:44:47 +02:00
gluk256
e459036e78
whisper: add tests for mailserver ( #3631 )
2017-02-13 13:15:20 +01:00
gluk256
897cd4e6e2
cmd/wnode, whisper: add whisper CLI tool and mail server ( #3580 )
2017-01-31 11:16:20 +01:00
Felix Lange
9695d6c2be
all: fix ineffectual assignments and remove uses of crypto.Sha3
...
go get github.com/gordonklaus/ineffassign
ineffassign .
2017-01-09 16:24:42 +01:00
Péter Szilágyi
a390eb6fc8
all: fix spelling errors
2017-01-06 19:44:35 +02:00
Felix Lange
bd6c050a25
all: fix issues reported by honnef.co/go/simple/cmd/gosimple
2017-01-06 18:18:07 +01:00
Felix Lange
473f9a9571
all: gofmt -w -s
2017-01-06 15:52:03 +01:00
Felix Lange
3578f5b7f5
rpc: remove HexNumber, replace all uses with hexutil types
...
This change couldn't be automated because HexNumber was used for numbers
of all sizes.
2016-12-20 14:41:58 +01:00
Felix Lange
1a2c06ba3d
rpc: remove HexBytes, replace all uses with hexutil.Bytes
2016-12-20 14:35:26 +01:00
gluk256
c6839d7cef
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
2016-12-20 00:58:01 +01:00
gluk256
d7cfc042e6
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
2016-12-01 20:09:22 +01:00
gluk256
9ec4c40b57
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.
2016-10-29 14:11:37 +02:00
Felix Lange
dfbe2dc856
Merge pull request #2458 from fjl/go-vet
...
all: fix go vet warnings
2016-04-15 13:45:15 +02:00
Felix Lange
ed4d95913d
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.
2016-04-15 13:28:46 +02:00
Felix Lange
03f381385d
all: fix go vet warnings
2016-04-15 11:17:27 +02:00
Felix Lange
e32db04cb0
all: update license information
2016-04-15 09:48:05 +02:00
Bas van Kervel
d4df6d8e7e
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
2016-04-12 11:02:39 +02:00
Ricardo Catalinas Jiménez
66d2e874ba
all: Rename crypto.Sha3{,Hash}() to crypto.Keccak256{,Hash}()
...
As we aren't really using the standarized SHA-3
2016-02-21 22:34:34 +00:00
Bas van Kervel
89f151f85c
rpc: migrated the RPC insterface to a new reflection based RPC layer
2016-01-26 13:51:50 +01:00
Felix Lange
bf9e97578b
Merge pull request #2035 from bas-vk/rcp-v2-rebase
...
rpc: new RPC implementation with pub/sub support
2015-12-14 17:38:10 +01:00
Bas van Kervel
3d161ea76f
rpc: new RPC implementation with pub/sub support
2015-12-14 16:34:05 +01:00
Gustav Simonsson
95d1d1b891
crypto, crypto/ecies, crypto/secp256k1: libsecp256k1 scalar mult
...
thanks to Felix Lange (fjl) for help with design & impl
2015-11-30 13:43:32 +01:00
Péter Szilágyi
f4a2672e14
cmd, common, core, eth, node, rpc, tests, whisper, xeth: use protocol stacks
2015-11-27 11:06:12 +02:00
Jeffrey Wilcke
94435fbc73
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.
2015-11-25 12:10:47 +01:00
Péter Szilágyi
a1b9f24305
whisper: fix datarace in expiration test
2015-11-05 13:36:25 +02:00
Felix Lange
cf6d3a90a9
all: fix license headers one more time
...
I forgot to update one instance of "go-ethereum" in commit 3f047be5a.
2015-07-23 18:35:11 +02:00
Felix Lange
6c3d851763
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".
2015-07-22 18:51:45 +02:00
Felix Lange
72939fa459
all: update license information
2015-07-07 14:12:44 +02:00
Felix Lange
52d9c9de38
p2p, whisper: use glog for peer-level logging
2015-05-06 23:19:14 +02:00
Péter Szilágyi
33ab924b93
whisper: add full filter test suite
2015-04-28 10:49:05 +03:00
Péter Szilágyi
16f5dcc574
whisper: fix a small data race duirng peer connection
2015-04-28 10:49:05 +03:00
Péter Szilágyi
17baf46ee5
ui/qt/qwhisper, whisper, xeth: polish topic filter, fix wildcards
2015-04-28 10:49:04 +03:00
Péter Szilágyi
2d8bbab6f6
rpc, ui/qt/qwhisper, whisper, xeth: introduce complex topic filters
2015-04-28 10:49:04 +03:00
Péter Szilágyi
5f9a6cf972
whisper: fix spurious From identity with untargeted messages
2015-04-28 10:49:04 +03:00
Péter Szilágyi
7226d3bd29
whisper: fix payload loss in case of plaintext decrypt
2015-04-28 10:49:04 +03:00
Péter Szilágyi
ac1251f6b5
whisper, xeth/whisper: surface TTL and hash to the API
2015-04-28 10:49:04 +03:00
Péter Szilágyi
ea0dc6e1cf
rpc, whisper, xeth: fix RPC message retrieval data race
2015-04-28 10:47:35 +03:00
Péter Szilágyi
5381475b40
whisper: fix send timestamp omission during envelope opening
2015-04-28 10:47:35 +03:00
Péter Szilágyi
6ed3972ade
rpc, whisper, xeth: polish whisper RPC interface
2015-04-28 10:47:35 +03:00
Felix Lange
5ecf38a177
whisper: fix comment for rlpenv
2015-04-17 14:45:09 +02:00
Felix Lange
a97346b484
cmd/rlpdump, cmd/utils, eth, p2p, whisper: use rlp input limit
2015-04-17 14:45:09 +02:00
Péter Szilágyi
ede795bf61
whisper: cleanup lefover scoping
2015-04-17 14:11:46 +03:00
Péter Szilágyi
6f46fb7a04
whisper: hide some internal types
2015-04-17 13:25:18 +03:00
Péter Szilágyi
f47bc1dc62
whisper: don't issue signature warning if none present
2015-04-16 18:24:39 +03:00
Péter Szilágyi
fc2aa3b87e
whisper: track active peers, add peer cache expiry test
2015-04-16 13:05:35 +03:00
Péter Szilágyi
9cb90b5904
whisper: remove dead code, rename a few constants
2015-04-16 11:20:01 +03:00
Péter Szilágyi
f53eb01b40
whisper: use async handshakes to handle blocking peers
2015-04-15 13:01:22 +03:00
Péter Szilágyi
49b0698fa2
whisper: remove some unneeded testing complexity
2015-04-15 12:50:10 +03:00
Péter Szilágyi
c8e0ddb790
whisper: global message expiration tests, polishes
2015-04-15 10:50:31 +03:00