NAME
Web3::Tiny::RLP - Recursive Length Prefix encoding for Ethereum
SYNOPSIS
use Web3::Tiny::RLP qw(rlp_encode int_to_bytes);
my $encoded = rlp_encode([
int_to_bytes(9), # nonce
int_to_bytes(20e9), # gas price
int_to_bytes(21000), # gas limit
pack('H*', 'a1b2...'), # to address, 20 raw bytes
int_to_bytes(1e18), # value
'', # data
]);
DESCRIPTION
Minimal implementation of Ethereum's RLP encoding, used to serialize transactions before signing/broadcasting.