bitcoin-hs-0.0.1: Partial implementation of the Bitcoin protocol (as of 2013)

Safe HaskellSafe
LanguageHaskell98

Bitcoin.Misc.HexString

Contents

Description

Encoding and decoding hex strings

Synopsis

Documentation

newtype HexString Source #

The phantom type is used to encode endianness

Constructors

HexString 

Fields

encoding and decoding ByteStrings as (little-endian) hex strings

hexDecode :: HexString -> [Word8] Source #

from "4142" to [0xAB]

hexEncode :: [Word8] -> HexString Source #

from [0xAB] to "4142"