ethereum-analyzer-deps-3.3.4: Stripped dependencies of ethereum-analyzer.

Safe HaskellNone
LanguageHaskell98

Blockchain.Data.RLP

Description

The RLP module provides a framework within which serializers can be built, described in the Ethereum Yellowpaper (http://gavwood.com/paper.pdf).

The RLPObject is an intermediate data container, whose serialization rules are well defined. By creating code that converts from a given type to an RLPObject, full serialization will be specified. The RLPSerializable class provides functions to do this conversion.

Synopsis

Documentation

data RLPObject Source #

An internal representation of generic data, with no type information.

End users will not need to directly create objects of this type (an RLPObject can be created using rlpEncode), however the designer of a new type will need to create conversion code by making their type an instance of the RLPSerializable class.

rlpSerialize :: RLPObject -> ByteString Source #

Converts RLPObjects to bytes.

Full serialization of an object can be obtained using rlpSerialize . rlpEncode.

rlpDeserialize :: ByteString -> RLPObject Source #

Converts bytes to RLPObjects.

Full deserialization of an object can be obtained using rlpDecode . rlpDeserialize.