Commit Graph

81 Commits

Author SHA1 Message Date
JP Rupp
1f67df15aa
Move to crypton for now 2024-07-23 22:13:16 +01:00
JP Rupp
48d373b943
Update upstream & LTS Haskell 2024-03-14 12:41:04 +00:00
JP Rupp
529f082c0c
Prepare for release 2024-01-31 13:33:17 +00:00
JP Rupp
09f8fbbd4f
Bump secp256k1-haskell dependency 2023-11-01 12:47:03 +00:00
JP Rupp
296a8dcc30
Add compatibility with latest nightly LTS Haskell 2023-08-03 20:20:28 +01:00
JP Rupp
8fb472f60d
Backwards-incompatible modernisation of package
- Shorten all field names ignoring duplicates using DuplicateRecordFields extension.
- Use OverloadedRecordDot language extension and syntax.
- Use explicit context object from secp256k1-haskell library.
- Unify serialization into custom Marhsal and MarshalJSON classes.
- Use bytestring builders for all JSON toEncoding implementations.
- Use ormolu for formatting.
- Simplify module organisation.
- Strongly break backwards compatibility.
2023-07-28 19:48:43 +01:00
JP Rupp
64ceb860e1
Upgrade to latest secp256k1 and base16 2023-06-28 15:08:41 +01:00
JP Rupp
2a13ee8be2
Serialisation test now also checks lazy bytestrings 2022-04-13 14:23:17 +01:00
JP Rupp
19ea0cac1a
Faster Base58 2021-12-13 09:06:38 +00:00
JP Rupp
9527625d2b
Bump Stackage version 2021-09-13 21:11:49 +01:00
JP Rupp
1196c5a3ef
Use the bytes library for serialization 2021-02-22 11:31:21 +00:00
Jean-Pierre Rupp
f34b25f012
Fix broken block binary search algorithm 2020-12-03 12:01:40 +00:00
Jean-Pierre Rupp
4e4ed8163b
Drop minimum version of text dependency 2020-11-17 18:35:14 +00:00
Jean-Pierre Rupp
8c99e6981f
Update LTS Haskell 2020-11-17 11:16:13 +00:00
JP Rupp
e3d4385046
ASERT (#394)
Support Bitcoin Cash November 2020 hard fork.
2020-10-21 12:01:48 +01:00
Jean-Pierre Rupp
202dd677f3
Release new version 2020-07-23 17:24:16 +01:00
Jean-Pierre Rupp
c90b178dd4
Update secp256k1 bindings 2020-07-21 23:54:54 +01:00
Jean-Pierre Rupp
70907d1d52
Prepare v0.14.0 2020-06-14 10:52:02 +01:00
Jean-Pierre Rupp
578e506a80
Bump secp256k1-haskell dependency 2020-06-13 12:05:19 +01:00
Jean-Pierre Rupp
b7bc8dc50d
License update and package changes
- Use MIT license.
- Tests now depend on library instead of compiling code again.
- All modules exposed so that tests can work.
2020-06-12 15:44:11 +01:00
Jean-Pierre Rupp
cab65a3c25 Update packages and get ready for release 2020-05-06 11:40:43 +01:00
Jean-Pierre Rupp
39c0e927ee Use new version of secp256k1-haskell
The new library adds compatibility with the version of libsecp256k1 provided by
Fedora. The Fedora package is a fork of that library from the Bitcoin ABC
project. It computes signature nonces slightly differently, so all tests that
depend on signatures being exactly the same for a combination of message and
private key have been removed.
2020-04-10 21:27:19 +01:00
Jean-Pierre Rupp
efe643bd5d Update to LTS Haskell 15.0 2020-02-21 10:56:14 +00:00
Jean-Pierre Rupp
705990c04c Add NFData and remove Monad fail where needed 2020-01-15 21:27:27 +00:00
Jean-Pierre Rupp
b8d2f60c6b Use latest LTS Haskell 2020-01-01 11:35:29 +00:00
Jean-Pierre Rupp
dd271a045a Target LTS Haskell 13.20 2019-05-08 16:35:12 +01:00
Jean-Pierre Rupp
8a2100dd28 Bump to LTS Haskell 13.12 2019-03-14 15:34:54 +00:00
Jean-Pierre Rupp
e9c2a4f3a4 Bump LTS Haskell version 2018-11-26 14:02:27 +00:00
Jean-Pierre Rupp
2f24085430 Bump secp256k1-haskell dependency 2018-10-25 12:44:13 +01:00
Jean-Pierre Rupp
18d6bf454f Add Hashable and Generic instances where possible 2018-10-13 20:29:45 +01:00
Jean-Pierre Rupp
d7b0d60343 Use unwrapped secret keys for signing 2018-10-08 17:13:17 +01:00
Jean-Pierre Rupp
d6faee9b6d Specify dependencies better and remove Cabal file 2018-09-10 21:14:29 +01:00
Jean-Pierre Rupp
b63cac2547 Change dependency to secp256k1-haskell 2018-09-10 11:23:51 +01:00
Jean-Pierre Rupp
93feff8873 Remove unneeded dependencies and files 2018-09-09 20:45:14 +01:00
Jean-Pierre Rupp
a707bee2fe Prepare for releasing v0.5.0 2018-09-09 18:03:16 +01:00
Jean-Pierre Rupp
1f2c388501 Use Hackage secp256k1 2018-09-02 22:38:45 +01:00
Jean-Pierre Rupp
ef5f4693e6 More documentation and better show/read 2018-09-02 22:18:54 +01:00
Jean-Pierre Rupp
6fa9ee8de4 Improve address encoding and add more documentation 2018-09-02 14:17:21 +01:00
Jean-Pierre Rupp
e3a81c232a Depend on Hackage's secp256k1 2018-09-01 13:17:58 +01:00
Jean-Pierre Rupp
3bc1a5ec74 Remove non-strict signatures and script evaluator
* Remove support for script evaluation
* Remove support lax DER encoding for signatures
* Remove related tests
2018-09-01 13:08:56 +01:00
Jean-Pierre Rupp
172b6bba31 Do not make Nix default to prevent problems with IDE compatibility 2018-08-29 20:31:18 +01:00
Jean-Pierre Rupp
6fedda03a0 Make BlockNode serializable and fix some tests 2018-08-28 08:49:01 +01:00
Jean-Pierre Rupp
0f1280abd7 Pass network explicitly and migrate tests to hspec
* No more setNetwork
* Test suite now migrated completely to hspec
2018-08-27 23:07:11 +01:00
Jean-Pierre Rupp
4633903b93 Add inv types for witness data
* Support for inv messages requesting witness blocks and transactions
* Use nix with Stack for non-Haskell dependencies
2018-08-23 23:42:41 +01:00
Jean-Pierre Rupp
f2c8d75c44
Support Bitcoin Cash and other changes (#355)
* Support Bitcoin Cash
* Remove upstream dependency versions
* Use `package.yaml` (`hpack`)
* Add changelog
* Rename networks
* Update documentation
* Add minikey decoding (22 and 30 characters)
* Add `integralToNatural`
* Add more tests and simplify import statements
* Update readme file
* Move tests to better location
* Update dependencies and tests
* Bump `secp256k1` version
* Add transaction witness serialization
* Redesign the `SigHash` type
* Support Bitcoin Cash 32 MB hard fork
* Transactions with no inputs are now invalid
* Rename `Script.Parser` to `Script.Standard`
* Move some script tests to `hspec`
* Remove stale wallet readme file
2018-08-15 20:24:01 +01:00
Jean-Pierre Rupp
7b46e403e6 Remove unneeded dependencies 2018-08-09 16:20:25 +01:00
Jean-Pierre Rupp
64b75c9f1c Isolate Haskoin Core 2018-08-09 15:50:29 +01:00
Jean-Pierre Rupp
b80099c0a5
Backport from my development branch (#338)
* Refactor and improve code quality

* Backport haskoin-core

* Fixes for rebase and warnings

* Fix warnings and Travis error

* Remove encode/decode helpers from utils and fix Haddock errors
2018-01-02 20:40:15 +00:00
Jean-Pierre Rupp
504f0bfdab
Update secp256k1 dependency (#331) 2017-12-28 21:10:09 +00:00
Jean-Pierre Rupp
411771b7bc Minor changes for GHC 8.0 2017-05-03 14:44:04 +01:00