Gustav Simonsson
371871d685
parmas, crypto, core, core/vm: homestead consensus protocol changes
...
* change gas cost for contract creating txs
* invalidate signature with s value greater than secp256k1 N / 2
* OOG contract creation if not enough gas to store code
* new difficulty adjustment algorithm
* new DELEGATECALL op code
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
Gustav Simonsson
3340b56593
crypto: correct sig validation, add more unit tests
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
10 years ago
Felix Lange
ad78db4d62
crypto: fix Sha3Hash and add a test for it
10 years ago
obscuren
b523441361
Moved ethutil => common
10 years ago
Felix Lange
410b35e913
crypto: make it easier to run Sha3 on multiple inputs
...
crypto.Sha3(append(foo, bar)) --> crypto.Sha3(foo, bar)
crypto.Sha3([]byte{}) --> crypto.Sha3()
10 years ago
obscuren
d4cc2d3503
Pad private key when signing & length check for hashes in sign
10 years ago
obscuren
67f9783e6a
Moved `obscuren` secp256k1-go
10 years ago
obscuren
bcb1166e52
Added 0 key proof error
...
Private key \x00\x00...\x00 returns the _exact_ same public key as \x11
\x11...\x11. Currently investigating.
10 years ago
obscuren
35fe4313d5
pre-pow
10 years ago
obscuren
fd9da72536
ethcrypto => crypto
10 years ago
Felix Lange
051af604e2
ethcrypto: fix the tests
...
The Sha3 test contained the wrong expected result. Note that the
implementation hasn't changed, the test simply contained an outdated
expected value that was valid for the previous implementation.
10 years ago
obscuren
adabd71a4a
Changed back to FIPS 180
10 years ago
obscuren
627b7c9fd7
Updated to latest sha3 implementation. Fixes #48
10 years ago