Implementation of the core Bitcoin protocol features.


Version on this page:0.4.2
LTS Haskell 21.22:0.21.2
Stackage Nightly 2023-12-01:1.0.2
Latest on Hackage:1.0.2

See all snapshots haskoin-core appears in

LicenseRef-PublicDomain licensed by Philippe Laprade, Jean-Pierre Rupp
Maintained by xenog@protonmail.com
This version can be pinned in stack with:haskoin-core-0.4.2@sha256:2a5784c14b99a6620cc86b78e78200dc1be3dc6fc67eda8babda40351c5e2955,7811

Haskoin is a package implementing the core functionalities of the Bitcoin protocol specifications. The following features are provided:

  • Hashing functions (sha-256, ripemd-160)

  • Base58 encoding

  • BIP32 extended key derivation and parsing (m1'2/3)

  • BIP39 mnemonic keys

  • ECDSA cryptographic primitives (using the C library libsecp256k1)

  • Script parsing and evaluation

  • Building and signing of standard transactions (regular, multisig, p2sh)

  • Parsing and manipulation of all Bitcoin protocol types

  • Bloom filters and partial merkle tree library (used in SPV wallets)

  • Comprehensive test suite

A wallet implementation is available in haskoin-wallet which uses both this package and the node implementation in haskoin-node.