Safe Haskell | None |
---|---|
Language | Haskell2010 |
Blockchain.Ethereum.RLP
- rlpSerialize :: RLPObject -> ByteString
- rlpDeserialize :: ByteString -> (Either String RLPObject, ByteString)
- class RLPSerializable a where
- data RLPObject
Documentation
rlpSerialize :: RLPObject -> ByteString Source #
Serialize RLPObject to ByteString
Examples: >>> rlpSerialize $ RLPItem B.empty "128" >>> rlpSerialize $ RLPList [] "192"
rlpDeserialize :: ByteString -> (Either String RLPObject, ByteString) Source #
Deserialize ByteString to RLPObject
Examples: >>> rlpDeserialize $ B.pack [128] (Right (RLPItem ""),"") >>> rlpDeserialize $ B.pack [192] (Right (RLPList []),"")