Interface RlpConverterService
- All Superinterfaces:
BesuService
RLP Serialiaztion/Deserialization service.
-
Method Summary
Modifier and TypeMethodDescriptionbuildBodyFromRlp(org.apache.tuweni.bytes.Bytes rlp) Builds a block body from RLP.buildHeaderFromRlp(org.apache.tuweni.bytes.Bytes rlp) Builds a block header from RLP.buildReceiptFromRlp(org.apache.tuweni.bytes.Bytes rlp) Builds a transaction receipt from RLP.org.apache.tuweni.bytes.BytesbuildRlpFromBody(BlockBody blockBody) RLP encodes a block body.org.apache.tuweni.bytes.BytesbuildRlpFromHeader(BlockHeader blockHeader) RLP encodes a block header.org.apache.tuweni.bytes.BytesbuildRlpFromReceipt(TransactionReceipt receipt) RLP encodes a transaction receipt.
-
Method Details
-
buildHeaderFromRlp
Builds a block header from RLP.- Parameters:
rlp- the RLP to build the block header from.- Returns:
- the block header.
-
buildBodyFromRlp
Builds a block body from RLP.- Parameters:
rlp- the RLP to build the block body from.- Returns:
- the block body.
-
buildReceiptFromRlp
Builds a transaction receipt from RLP.- Parameters:
rlp- the RLP to build the transaction receipt from.- Returns:
- the transaction receipt.
-
buildRlpFromHeader
RLP encodes a block header.- Parameters:
blockHeader- the block header to build RLP from.- Returns:
- the RLP.
-
buildRlpFromBody
RLP encodes a block body.- Parameters:
blockBody- the block body to build RLP from.- Returns:
- the RLP.
-
buildRlpFromReceipt
RLP encodes a transaction receipt.- Parameters:
receipt- the transaction receipt to build RLP from.- Returns:
- the RLP.
-