Jonas Nick
9ecd8bf38a
Merge pull request #63 from real-or-random/zkp-cflags-for-build
...
configure: Use CFLAGS_FOR_BUILD when checking native compiler
2019-05-24 20:41:52 +00:00
Jonas Nick
acc62885b5
Merge pull request #56 from romanz/arm-assembly
...
Allow field_10x26_arm.s to compile for ARMv7 architecture
2019-05-24 20:39:25 +00:00
Jonas Nick
57e6539a7b
Merge pull request #60 from romanz/ignore-benches
...
Add bench_generator and bench_rangeproof to .gitignore
2019-05-24 20:35:44 +00:00
Jonas Nick
6395289e32
Merge pull request #64 from real-or-random/zkp-arm-asm-exhaustive
...
Add $(COMMON_LIB) to exhaustive tests to fix ARM asm build
2019-05-24 20:33:28 +00:00
Gregory Maxwell
24819987d3
Add $(COMMON_LIB) to exhaustive tests to fix ARM asm build
2019-05-24 18:43:52 +02:00
Tim Ruffing
3955e62209
Actually pass CFLAGS_FOR_BUILD and LDFLAGS_FOR_BUILD to linker
2019-05-24 12:28:40 +02:00
Tim Ruffing
5a9347a721
configure: Use CFLAGS_FOR_BUILD when checking native compiler
...
This fixes a bug where configure would fail or disable static
ecmult tables because it wrongly checks the native compiler using
the target CFLAGS (instead of the native CFLAGS_FOR_BUILD), and
similar for CPPFLAGS and LDFLAGS.
Moreover, this commit adds tests to figure out whether the native
compiler supports the warning flags passed during the build, and it
contains a few minor improvements to the code that checks the native
compiler.
2019-05-24 12:28:40 +02:00
Jonas Nick
12aa65a379
Merge pull request #62 from HoOngEe/master
...
Clear a copied secret key after negation
2019-05-20 10:13:05 +00:00
Seonpyo Kim
51c21f6b9d
Clear a copied secret key after negation
2019-05-15 19:08:43 +09:00
Roman Zeyde
51a010e6ad
Add bench_generator and bench_rangeproof to .gitignore
2019-05-14 22:26:36 +03:00
Roman Zeyde
741f886bcc
Allow field_10x26_arm.s to compile for ARMv7 architecture
2019-05-07 21:31:23 +03:00
Andrew Poelstra
1c830b4c9a
Merge pull request #53 from romanz/zkp-trezor
...
Changes necessary for usage on Trezor
2019-04-12 16:42:45 +00:00
Tim Ruffing
cd364a0719
Add missing #(un)defines to base-config.h
2019-04-12 17:36:44 +02:00
practicalswift
767317cbf5
Make sure we're not using an uninitialized variable in secp256k1_wnaf_const(...)
2019-04-12 17:36:44 +02:00
Tim Ruffing
edd941c94b
Make randomization of a non-signing context a noop
...
Before this commit secp256k1_context_randomize called illegal_callback
when called on a context not initialized for signing. This is not
documented. Moreover, it is not desirable because non-signing contexts
may use randomization in the future.
This commit makes secp256k1_context_randomize a noop in this case. This
is safe because the context cannot be used for signing anyway.
This fixes #573 and it fixes rust-bitcoin/rust-secp256k1#82 .
2019-04-12 17:36:44 +02:00
Tim Ruffing
b8c1bc517e
Clean up ./configure help strings (zkp extensions)
2019-04-12 17:36:44 +02:00
Tim Ruffing
39fbe8ad3f
Clean up ./configure help strings
2019-04-12 17:36:44 +02:00
Tim Ruffing
a364c95419
Make WINDOW_G configurable
...
This makes WINDOW_G a configurable value in the range of [3..24].
The upper limit of 24 is a defensive choice. The code is probably
correct for values up to 33 but those larger values yield in huge
tables (>= 256MiB), which are i) unlikely to be really beneficial
in practice and ii) increasingly difficult to test.
2019-04-12 17:36:44 +02:00
Jonas Nick
f4f374700b
Merge pull request #54 from romanz/fix-typo
...
Fix a small typo in the generator parameter name
2019-04-11 15:59:22 +00:00
Roman Zeyde
383389a0eb
Fix a small typo in the generator parameter name
2019-04-11 17:59:58 +03:00
Jonas Nick
7bc3f29348
Merge pull request #50 from apoelstra/2019-generator-fix
...
generator: remove `CHECK` abort calls exposed by public API
2019-04-02 20:29:18 +00:00
Andrew Poelstra
2def4ace2c
generator: remove CHECK
abort calls exposed by public API
2019-04-02 18:41:08 +00:00
Tim Ruffing
9c1dda828f
Add secp256k1_ prefix to default callback functions
2019-04-01 17:53:26 +02:00
Tim Ruffing
08e2e19f24
Include stdio.h and stdlib.h explicitly in secp256k1.c
2019-04-01 17:53:26 +02:00
Tim Ruffing
9a949e5f2b
Allow usage of external default callbacks
2019-04-01 17:53:26 +02:00
Tim Ruffing
b7fca7590a
Replace CHECKs for no_precomp ctx by ARG_CHECKs without a return
2019-04-01 17:53:26 +02:00
Tim Ruffing
af2569b8a7
Explain caller's obligations for preallocated memory
2019-04-01 17:53:26 +02:00
Tim Ruffing
e4a2f8e500
Move _preallocated functions to separate header
2019-03-05 13:23:13 +01:00
Tim Ruffing
7366ab7f8c
Export _preallocated functions
2019-03-05 13:23:13 +01:00
Tim Ruffing
7a848d25cc
Add tests for contexts in preallocated memory
2019-03-05 13:23:11 +01:00
Tim Ruffing
1a1febfd86
Check arguments of _preallocated functions
2019-03-05 13:22:53 +01:00
Tim Ruffing
19debda326
Support cloning a context into preallocated memory
2019-03-05 13:22:53 +01:00
Tim Ruffing
1738dd0eb5
Switch to a single malloc call
2019-03-05 13:22:53 +01:00
Tim Ruffing
16d4a0a251
Add size constants for preallocated memory
2019-03-05 13:22:53 +01:00
Tim Ruffing
3f1a8580a2
Prepare for manual memory management in preallocated memory
...
* Determine ALIGNMENT more cleverly and move it to util.h
* Implement manual_malloc() helper function
2019-03-05 13:22:46 +01:00
Andrew Poelstra
1bbad3a04b
Merge pull request #45 from apoelstra/2019-02-musig-docs
...
musig: add user documentation
2019-02-21 17:10:21 +00:00
Andrew Poelstra
f6a6bca22f
musig: remove musig_session API docs about session ID reuse; link to Blockstream blog post
2019-02-21 15:02:13 +00:00
Andrew Poelstra
89b7f5b73b
f nits
2019-02-20 15:25:47 +00:00
Janus Troelsen
792d504315
Update musig.md
...
Use monospaced font for math expressions
2019-02-18 16:30:31 +01:00
Andrew Poelstra
9125c16622
f remove markdown indentation
2019-02-12 14:58:08 +00:00
Andrew Poelstra
0512dd2ba9
f reword adaptor signature stuf
2019-02-12 14:53:36 +00:00
Andrew Poelstra
8cab1c5cae
f more nits
2019-02-12 14:43:35 +00:00
Andrew Poelstra
0492592010
f replace C by L
2019-02-12 14:39:03 +00:00
Andrew Poelstra
6b0b22bc89
musig: add user documentation
2019-02-12 00:44:31 +00:00
Andrew Poelstra
d5e22a59f6
Merge pull request #35 from jonasnick/2018-10-musig
...
Add MuSig module
2019-02-07 00:19:41 +00:00
Jonas Nick
2fc700a943
Add 3-of-3 MuSig example
2019-02-06 11:27:46 +00:00
Jonas Nick
77d5b4ac7d
Add MuSig module which allows creating n-of-n multisignatures and adaptor signatures.
2019-02-06 11:27:37 +00:00
Andrew Poelstra
f0e4bb9283
Add schnorrsig module which implements BIP-schnorr [0] compatible signing, verification and batch verification.
...
[0] https://github.com/sipa/bips/blob/bip-schnorr/bip-schnorr.mediawiki
2019-01-29 11:02:07 +00:00
Andrew Poelstra
8260800491
add chacha20 function
2019-01-29 10:59:27 +00:00
Andrew Poelstra
43dd1f4fe7
Merge pull request #40 from instagibbs/size_t
...
use proper types for rangeproof min/max in unit test case
2019-01-03 22:56:58 +00:00