bitcoin-hs-0.0.1: Partial implementation of the Bitcoin protocol (as of 2013)
Bitcoin.Script.Serialize
Contents
Description
Parsing and serializing Bitcoin scripts
Synopsis
getOpcode :: Get Opcode Source #
putOpcode :: Opcode -> Put Source #
getMany :: Binary a => Get [a] Source #
The default Binry instance for lists (naturally) encodes the length of the list at the start, so we need this...
putMany :: Binary a => [a] -> Put Source #
parseScript :: RawScript -> Maybe Script Source #
serializeScript :: Script -> RawScript Source #
Methods
put :: Opcode -> Put #
get :: Get Opcode #
putList :: [Opcode] -> Put #
put :: Script -> Put #
get :: Get Script #
putList :: [Script] -> Put #