Felix Lange
96778a1c21
crypto/secp256k1: sign with deterministic K (rfc6979) ( #3561 )
8 years ago
Felix Lange
e0ceeab0d1
crypto/secp256k1: update to github.com/bitcoin-core/secp256k1 @ 9d560f9 ( #3544 )
...
- Use defined constants instead of hard-coding their integer value.
- Allocate secp256k1 structs on the C stack instead of converting []byte
- Remove dead code
8 years ago
Péter Szilágyi
18c77744ff
all: fix spelling errors
8 years ago
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
Felix Lange
02356b36d6
crypto/secp256k1: remove dependency on libgmp
...
Turns out we actually don't need it, USE_NUM_NONE works
because we also set USE_FIELD_INV_BUILTIN.
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
27a50c8f4b
core/secp256k1: update libsecp256k1 Go wrapper and tests
9 years ago
Felix Lange
e344e1d490
crypto/secp256k1: drop pkgsrc paths from CFLAGS
...
They cause compiler warnings for people who don't have these
directories. People with pkgsrc can add the directory through CGO_CFLAGS
instead.
9 years ago
Felix Lange
5159f8f649
crypto/secp256k1: raise internal errors as recoverable Go panic
9 years ago
Felix Lange
1b29aed128
crypto/secp256k1: verify recovery ID before calling libsecp256k1
...
The C library treats the recovery ID as trusted input and crashes
the process for invalid values, so it needs to be verified before
calling into C. This will inhibit the crash in #1983 .
Also remove VerifySignature because we don't use it.
9 years ago
Felix Lange
16b0bc7c3b
crypto/secp256k1: add C compiler flags for pkgsrc
...
pkgsrc is a cross-platform package manager that also
supports OS X.
9 years ago
Gustav Simonsson
f32fa075f1
core/secp256k1: update libsecp256k1 Go wrapper and tests
9 years ago
Fynn
7065ebd2ed
FreeBSD support
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
Gustav Simonsson
9918b6c84e
Remove the awesome, ever misunderstood entropy mixing
10 years ago
Maran
04e216319e
Adding flags to facilitate cross compiling to ARM
10 years ago
Gustav Simonsson
941f051358
libsecp256k1 #define NDEBUG
10 years ago
obscuren
50bbdfe582
Link GMP
10 years ago
Gustav Simonsson
d9b37b6da7
Update Go wrapper around libbsecp256k1
10 years ago
obscuren
238f39a42e
Validate seckey when generating pub key
10 years ago
Gustav Simonsson
8c056aebe1
Set both key generation and ECDSA nonce to use mixed entropy
...
* 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
10 years ago
obscuren
a008c21cf0
Fixed Sign nonce
10 years ago
obscuren
67f9783e6a
Moved `obscuren` secp256k1-go
10 years ago