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

Safe HaskellSafe
LanguageHaskell98

Bitcoin.Misc.BigInt

Contents

Description

Encoding and decoding of big natural numbers as ByteString or [Word8]

Synopsis

encoding/decoding nonnegative integers

bigEndianInteger32 :: Integer -> [Word8] Source #

Always 32 byte long (if the integer was less than 2^256)

bigEndianInteger20 :: Integer -> [Word8] Source #

Always 20 byte long (if the integer was less than 2^160)