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

Safe HaskellNone
LanguageHaskell98

Bitcoin.Protocol.Base58

Contents

Description

Bitcoin-specific Base58 encoding, and related stuff

Synopsis

base58 encoding

newtype Base58 Source #

A raw base58 encoded octet stream (not base58-check!)

Constructors

Base58 

Fields

Instances

base58Decode :: OctetStream a => Base58 -> Maybe a Source #

WARNING: (base58Decode . base58Encode) is NOT identity, because of the leading zero bytes.

base58Encode :: OctetStream a => a -> Base58 Source #

Simple Base-58 encoding, without the leading '1'-s

base58EncodeInteger :: Integer -> String Source #

Without leading '1'-s

base58-check encoding

newtype Base58Check Source #

A base58-check encoded octet stream

Constructors

Base58Check 

version bytes