Jean-Pierre Rupp
1cbb07f959
Rework memory management
2020-07-21 23:25:20 +01:00
Jean-Pierre Rupp
4d34488fc2
Use unsafe calls
2020-07-03 18:39:11 +01:00
Jean-Pierre Rupp
eb59e5f569
Correct typo
2020-06-25 16:57:10 +01:00
Jean-Pierre Rupp
239159122c
Fix changelog
2020-06-13 22:26:23 +01:00
Jean-Pierre Rupp
5bb7ee3e15
Update Travis
2020-06-13 22:03:22 +01:00
Jean-Pierre Rupp
7084292447
Fix Travis package name
2020-06-13 21:57:36 +01:00
Jean-Pierre Rupp
f368d5ac1e
Add Travis build status
2020-06-13 21:54:48 +01:00
Jean-Pierre Rupp
0f862c2198
Remove non-standard support
...
I removed support for all non-standard features:
- ECDH
- Schnorr Signatures
- Signature Recovery
These features are rarely compiled in shared libraries avaliable
from distribution repositories. Also, they are not needed for any
Haskoin project, so there is little incentive for me to continue
maintaining them, especially when I have no good way to test this
code.
Please make your own fork of this library if you wish to add these
back.
2020-06-13 21:31:21 +01:00
Jean-Pierre Rupp
f8e9dfbed5
Reuse context aggressively
2020-06-13 12:03:55 +01:00
Jean-Pierre Rupp
747b3efa5e
Remove verbosity
2020-06-12 13:04:23 +01:00
Jean-Pierre Rupp
eea8f0fd74
Fix license file formatting
2020-06-12 12:59:40 +01:00
Jean-Pierre Rupp
cd77eb09c0
Change to MIT license
2020-06-12 12:41:51 +01:00
Jean-Pierre Rupp
b832ed935a
Fix autogen
2020-06-12 12:36:34 +01:00
Jean-Pierre Rupp
b941bb4100
Update Cabal and package version
2020-06-12 12:31:36 +01:00
Jean-Pierre Rupp
f0dbaa6739
Fix tests and improve errors
2020-06-07 18:02:19 +01:00
Jean-Pierre Rupp
ff13d39de6
Add cabal file and bump LTS Haskell
2020-05-14 09:10:05 +01:00
Jean-Pierre Rupp
4fcaca3a20
Correct some code and fix Debian 9
2020-04-14 17:41:00 +01:00
Janus Troelsen
3307b6d5dd
Avoid abort in combinePubKeys ( #31 )
...
Fixes #27 .
2020-04-11 13:04:21 +01:00
Jean-Pierre Rupp
539999933e
Do not dependen on hardcoded DER signatures in tests
...
The version of libsecp256k1 provided by Fedora adds an optional algorithm
string when computing a deterministic nonce for a signature, making it
different from the signature produced by the upstream version of libsecp256k1
from the Bitcoin Core repository.
2020-04-10 20:40:21 +01:00
Jean-Pierre Rupp
d5d01fc826
Use flag for key recovery
...
Key recovery functions need to be hidden behind a flag so that this package
compiles against the vanilla version of secp256k1 provided by Fedora.
Also fix a test that was not passing because of apparent changes in DER
signature format.
2020-04-10 15:29:59 +01:00
Janus Troelsen
76f86ad0d6
BIP-340 (Schnorr) support ( #26 )
...
Compatible with jonasnick/secp256k1@372c4555ca
2020-04-09 12:17:50 +01:00
Janus Troelsen
ae2c67e35e
Add tweak negation ( #28 )
2020-04-09 12:16:10 +01:00
Jean-Pierre Rupp
5dac083f4e
Add missing NFData instances
2020-01-15 19:28:27 +00:00
Jean-Pierre Rupp
9a69417fde
Add NFData instances for everything
2020-01-15 18:56:27 +00:00
Jean-Pierre Rupp
cd3de8e9d4
Update LTS Haskell configuration
2020-01-01 11:17:15 +00:00
Jean-Pierre Rupp
9c7e659a99
New release
2019-12-26 16:07:30 +00:00
Tomas Carnecky
ccec6d6d97
Use pkgconfig instead of extra-libraries ( #23 )
2019-12-26 15:33:36 +00:00
Jean-Pierre Rupp
68e3b33a94
Prepare for release
2019-09-19 22:01:54 +01:00
Tomas Carnecky
db2b2a1be7
Expose 'ecdh' function ( #21 )
...
This feature is behind a flag (-f ecdh) because it has to be explicitly
enabled when compiling libsecp256k1.
2019-09-19 17:39:08 +01:00
Jean-Pierre Rupp
08b044bff8
Constrain inputs to avoid clashes with QuickCheck
2018-10-25 12:42:15 +01:00
Alexander Krupenkin
c7b4919322
Optimized imports ( #14 )
...
Avoid problems with imports from QuickCheck.
2018-10-25 12:39:21 +01:00
Jean-Pierre Rupp
0e30f577f6
New Hashable instances
2018-10-13 20:09:35 +01:00
Jean-Pierre Rupp
d536c04c55
Specify packages better and remove hpack defaults
2018-09-10 20:27:19 +01:00
Jean-Pierre Rupp
592993762c
Update version for next release
2018-09-10 17:17:14 +01:00
Jean-Pierre Rupp
51b2e05f1c
Remove unneeded dependency
2018-09-10 17:15:44 +01:00
Jean-Pierre Rupp
814c47d3e0
Prepare version 0.1.1
2018-09-10 10:56:12 +01:00
Jean-Pierre Rupp
02fe56cc75
Change package name to avoid conflicts in Nix
2018-09-10 10:43:31 +01:00
Jean-Pierre Rupp
10dfb5b340
Remove Cabal file
2018-09-09 20:51:56 +01:00
Jean-Pierre Rupp
97f1c4c69e
Simplify Show/Read and bump version
2018-09-02 21:35:36 +01:00
Jean-Pierre Rupp
9e4c89fada
Fix Arbitrary and bump version
2018-09-02 13:44:34 +01:00
Jean-Pierre Rupp
7e641ad798
Correct README
2018-08-31 22:27:48 +01:00
Jean-Pierre Rupp
5d218aad79
Remove lax signatures and dynamically link
...
* No more parsing of lax signatures
* Dynamically link binaries instead of embedding
2018-08-31 21:06:24 +01:00
Jean-Pierre Rupp
f460a603fb
Better description
2018-08-31 17:34:49 +01:00
Jean-Pierre Rupp
f96c2d4a96
Update tests and show/read
2018-08-31 17:31:33 +01:00
Jean-Pierre Rupp
c2201dff23
Use Hpack (package.yaml)
2018-08-09 13:10:17 +01:00
Jean-Pierre Rupp
5a4134c9d5
Revert "Fix issue in Storable instance for CompactSig which swapped r and s" ( #13 )
...
* Revert "Update LTS Haskell"
This reverts commit a696d4b4fe
.
* Revert "Fix issue in Storable instance for CompactSig which swapped r and s (#11 )"
This reverts commit a09e48db69
.
2018-07-23 16:38:28 +01:00
Jean-Pierre Rupp
a696d4b4fe
Update LTS Haskell
2018-07-23 16:27:19 +01:00
libscott
a09e48db69
Fix issue in Storable instance for CompactSig which swapped r and s ( #11 )
...
* Fix issue in Storable instance for CompactSig which swapped r and s
* more s,r fixes, tests failing
* final s,r case, tests passing
2018-07-23 14:47:38 +01:00
Enzo Haussecker
861416a074
Export a private key in DER format. ( #10 )
...
* Export secret key
* Switch to DER encoding
* Add contrib to include dirs
* Bump version number
* Include private key parsing in source files
2018-07-23 14:47:22 +01:00
Jean-Pierre Rupp
c9b0b15adc
Add missing m4 macros
2017-10-02 14:23:08 +01:00