bitcoin-hash-0.1: Bitcoin hash primitives

Safe HaskellNone
LanguageHaskell2010

Bitcoin.Hash.Prim

Contents

Description

Cryptographic hash primitives used by Bitcoin.

Synopsis

Hash

ripemd160 Source #

Arguments

:: ByteString

Data to hash.

-> ByteString

20-byte long digest.

sha256 Source #

Arguments

:: ByteString

Data to hash.

-> ByteString

32-byte long digest.

HMAC

hmacSHA512 Source #

Arguments

:: ByteString

Key.

-> ByteString

Data to hash.

-> ByteString

64-byte long digest.